YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
π§ LLaMA 2 7B - Mental Therapy (Quantized, Instruction-Tuned)
Welcome to the repository for the LLaMA 2 7B Mental Therapy Quantized model β a safe and supportive conversational AI fine-tuned on mental health and therapy-related dialogues. Built on Metaβs LLaMA 2 7B, this model has been trained to generate empathetic, context-aware, and non-judgmental responses for users seeking emotional support and motivation.
β οΈ This model is not a replacement for professional mental health care. Use responsibly and always consult a licensed expert in case of serious mental health concerns.
π‘ Model Highlights
- π§ Base model:
meta-llama/Llama-2-7b-hf - π§ Fine-tuning objective: Mental health and supportive conversation
- π§± Quantization: 4-bit (QLoRA) using
bitsandbytes - π§Ύ Instruction format: Chat-like structure with
### Userand### Assistantprompts - π Safe & empathetic responses: Fine-tuned with filtered mental health-related corpora
- π« Very low toxicity: Evaluated with Detoxify and manual audits
π§ͺ Intended Use
This model is ideal for:
- Emotional wellness chatbots
- AI journaling assistants
- Motivational and CBT-style coaching tools
- Empathetic conversational agents for non-critical use
It is not suitable for:
- Diagnosing or treating mental illnesses
- Emergency or crisis intervention
- Replacing human therapists or counselors
π How to Use
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "your-username/llama-2-7b-mental-therapy-quantized"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.float16
)
prompt = """### User: I'm feeling overwhelmed and anxious all the time. What should I do?
### Assistant:"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
- Downloads last month
- 2