Solace-3B
a compact companion for empathetic conversation and reflection
2 min read
The Solace-3B model is built on Qwen2.5-3B-Instruct for friendly, supportive dialogue free of cold robotic clichés and forced lists. Thanks to multi-stage training (including SFT (supervised fine-tuning) and DPO (direct preference optimization)), the model generates concise replies in human language, knows how to validate emotions, and asks gentle questions. It is a great fit for developers of local chatbots, mental wellness applications, and personal assistants that require emotional intelligence rather than just dry productivity.
Key features
- Based on the efficient
Qwen2.5-3B-Instructarchitecture (~6.8 GB VRAM inbfloat16). - Underwent a three-stage training process (SFT, DPO, and Therapist-Voice Polish) to tune its tone.
- Trained with strict safety boundaries and redirects to hotlines during crisis states.
- Responds briefly (2–4 sentences), avoiding clichés and redundant lists.
What you can do
- Run an interactive local chat via the terminal using the
chat.pyscript. - Deploy a Gradio-based graphical web interface using the
app.pyfile (compatible with Hugging Face Spaces). - Integrate the model into custom applications for psychological relief or reflection.
- Run it on consumer hardware thanks to its compact size (~6.8 GB in
bfloat16or smaller with quantization).
Example
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "proman007/solace-therapist-3b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "user", "content": "I feel completely burned out and don't know where to start."},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
out = model.generate(**inputs, max_new_tokens=160, do_sample=True, temperature=0.7)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Read more
DetailsValidation loss during the SFT stage dropped from 4.3845 to 2.3190.
During the DPO stage, preference accuracy reached 88.0%–90.0%, and the reward margin grew to +24.517.
Hardware requirements: about 6.8 GB VRAM in the native
bfloat16 format.The model is not a replacement for a licensed therapist and does not provide medical diagnoses.










Comments