Downloads · 30 days
9
10% of all-time downloads
andong90/DeepSeek-R1-Distill-Qwen-7B-student-mental-health-json
DeepSeek-R1-Distill-Qwen-7B-student-mental-health-json is a text generation model from andong90. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Downloads · 30 days
9
10% of all-time downloads
All-time downloads
92
Public
Parameters
7.6B
58.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors30.5 GB · 100%
From the Hugging Face model README
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Developed by: [an.dong90]
Model type: [Fine tuned distilled Deepseek R1 Qwen 7B model]
Language(s) (NLP): [English]
License: [MIT]
**Finetuned from model [deepseek-ai/DeepSeek-R1-Distill-Qwen-7B]
Traning process: https://github.com/dojian/mental_health_chatbot/blob/main/notebooks/Json_conv.ipynb
prompt_test = """Given a student's Conversation History and Current Message, extract the relevant metadata, including emotion type, emotion intensity (1-5), problem type, and counseling strategy. Then answer the student's Current Message as a counselor based on the metadata. Keep it concise but affirmative. The counselor must return a Structured JSON Response with these fields: "emotion_type","emotion_intensity", "problem_type", "counseling_strategy","answer".
Conversation History: {user_history}
Current Message: {user_text}
"""
FastLanguageModel.for_inference(model)
inputs = tokenizer([prompt_test.format(user_history=user_history,user_text=user_text)], return_tensors="pt").to("cuda")
outputs = model.generate(
input_ids=inputs.input_ids,
attention_mask=inputs.attention_mask,
max_new_tokens=250,
eos_token_id=tokenizer.eos_token_id,
num_return_sequences=1,
temperature=0.6, # deepseek doc recommended 0.6 to balance creativity and coherence, avoiding repetitive or nonsensical outputs.
top_p=0.9, # Reduces repeated phrases
use_cache=True,
)
response = tokenizer.decode(outputs[0],skip_special_tokens=True)
[More Information Needed]
https://huggingface.co/datasets/jordanfan/esconv_processed
[More Information Needed]
[More Information Needed]
3 LLMs as judges DeepSeek R1 Distilled Llama 8B DeepSeek R1 Distilled Qwen 7B Mistral 7B v0.3
Assessed generated responses based on empathy, appropriateness, and relevance on scale of 1-5 Metrics proposed on Medium article in similar mental health setting*
Averaged score across judges
Median Empathy-4.00 Appropriateness-5.00 Relevance-4.33
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]