Downloads · 30 days
4
5% of all-time downloads
Yash221203/Llama-2-7b-chat-hf-customMHByash
Llama-2-7b-chat-hf-customMHByash is a text generation model from Yash221203. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama2.
This model is a LoRA fine-tuned version of meta-llama/Llama-2-7b-chat-hf, designed to act as a supportive conversational assistant for mental health–related discussions.
Downloads · 30 days
4
5% of all-time downloads
All-time downloads
87
Public
Repo size
17.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors16.8 MB · 80%
From the Hugging Face model README
This model is a LoRA fine-tuned version of meta-llama/Llama-2-7b-chat-hf, designed to act as a supportive conversational assistant for mental health–related discussions.
The model was trained using Supervised Fine-Tuning (SFT) on publicly available mental health conversation datasets to improve empathy, conversational flow, and instruction-following behavior.
This project was developed strictly for academic and research purposes.
⚠️ This model is not a licensed medical professional and must not be used as a replacement for professional mental health care.
❌ Medical diagnosis
❌ Therapy or psychiatric treatment
❌ Crisis intervention or suicide prevention
❌ Any real-world deployment without professional supervision
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "meta-llama/Llama-2-7b-chat-hf"
adapter_model = "your-username/your-model-name"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_model)
model.eval()