Update README.md
Browse files
README.md
CHANGED
@@ -3,200 +3,139 @@ base_model: deepseek-ai/DeepSeek-R1-Distill-Llama-8B
|
|
3 |
library_name: peft
|
4 |
---
|
5 |
|
6 |
-
# Model Card for
|
7 |
-
|
8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
|
|
|
10 |
|
|
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
- **
|
21 |
-
- **
|
22 |
-
- **
|
23 |
-
- **Model type:** [More Information Needed]
|
24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
|
28 |
-
### Model Sources
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
- **Repository:** [More Information Needed]
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
|
36 |
## Uses
|
37 |
|
38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
-
|
40 |
### Direct Use
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
### Downstream Use [optional]
|
47 |
-
|
48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
|
52 |
### Out-of-Scope Use
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
[More Information Needed]
|
57 |
|
58 |
## Bias, Risks, and Limitations
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
|
64 |
### Recommendations
|
65 |
-
|
66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
-
|
68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
|
70 |
## How to Get Started with the Model
|
71 |
|
72 |
-
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
|
|
|
|
|
|
|
75 |
|
76 |
## Training Details
|
77 |
|
78 |
### Training Data
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
[More Information Needed]
|
83 |
|
84 |
### Training Procedure
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
[More Information Needed]
|
91 |
-
|
92 |
|
93 |
#### Training Hyperparameters
|
94 |
-
|
95 |
-
- **
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
-
|
101 |
-
[More Information Needed]
|
102 |
|
103 |
## Evaluation
|
104 |
|
105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
-
|
107 |
### Testing Data, Factors & Metrics
|
108 |
|
109 |
#### Testing Data
|
110 |
-
|
111 |
-
<!-- This should link to a Dataset Card if possible. -->
|
112 |
-
|
113 |
-
[More Information Needed]
|
114 |
|
115 |
#### Factors
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
[More Information Needed]
|
120 |
|
121 |
#### Metrics
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
[More Information Needed]
|
126 |
|
127 |
### Results
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
## Model Examination [optional]
|
136 |
-
|
137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
138 |
-
|
139 |
-
[More Information Needed]
|
140 |
|
141 |
## Environmental Impact
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
Carbon
|
146 |
|
147 |
-
|
148 |
-
- **Hours used:** [More Information Needed]
|
149 |
-
- **Cloud Provider:** [More Information Needed]
|
150 |
-
- **Compute Region:** [More Information Needed]
|
151 |
-
- **Carbon Emitted:** [More Information Needed]
|
152 |
-
|
153 |
-
## Technical Specifications [optional]
|
154 |
|
155 |
### Model Architecture and Objective
|
156 |
-
|
157 |
-
|
158 |
|
159 |
### Compute Infrastructure
|
|
|
|
|
160 |
|
161 |
-
|
162 |
-
|
163 |
-
#### Hardware
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
#### Software
|
168 |
-
|
169 |
-
[More Information Needed]
|
170 |
-
|
171 |
-
## Citation [optional]
|
172 |
-
|
173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
-
|
175 |
-
**BibTeX:**
|
176 |
-
|
177 |
-
[More Information Needed]
|
178 |
-
|
179 |
-
**APA:**
|
180 |
-
|
181 |
-
[More Information Needed]
|
182 |
-
|
183 |
-
## Glossary [optional]
|
184 |
-
|
185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
-
|
187 |
-
[More Information Needed]
|
188 |
-
|
189 |
-
## More Information [optional]
|
190 |
-
|
191 |
-
[More Information Needed]
|
192 |
|
193 |
-
|
194 |
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
-
##
|
|
|
|
|
198 |
|
199 |
-
[More Information Needed]
|
200 |
-
### Framework versions
|
201 |
|
202 |
-
- PEFT 0.14.0
|
|
|
3 |
library_name: peft
|
4 |
---
|
5 |
|
6 |
+
# Model Card for Fine-Tuned DeepSeek V1 Empath
|
|
|
|
|
7 |
|
8 |
+
## Model Summary
|
9 |
|
10 |
+
Fine-Tuned DeepSeek V1 Empath is a large language model fine-tuned to enhance emotional understanding and generate needs-based responses. This model is designed for use in psychology, therapy, conflict resolution, human-computer interaction, and online moderation.
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
+
- **Developed by:** AI Medical in collaboration with Ruslanmv.com
|
17 |
+
- **Funded by:** [If applicable]
|
18 |
+
- **Shared by:** AI Medical
|
19 |
+
- **Model type:** Fine-tuned DeepSeek-R1-Distill-Llama-8B
|
20 |
+
- **Language(s) (NLP):** English
|
21 |
+
- **License:** Creative Commons Attribution 4.0 International License (CC BY 4.0)
|
22 |
+
- **Fine-tuned from model:** deepseek-ai/DeepSeek-R1-Distill-Llama-8B
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
### Model Sources
|
25 |
+
- **Repository:** [Hugging Face Model Repository](https://huggingface.co/ai-medical/fine_tuned_deepseek_v1_empath)
|
26 |
+
- **Demo:** [https://huggingface.co/spaces/ruslanmv/Empathy_Chatbot_v1]
|
|
|
|
|
|
|
|
|
27 |
|
28 |
## Uses
|
29 |
|
|
|
|
|
30 |
### Direct Use
|
31 |
+
- **Psychology & Therapy:** Assisting professionals in understanding and responding empathetically to patient emotions.
|
32 |
+
- **Conflict Resolution:** Helping mediators decode emotional expressions and address underlying needs.
|
33 |
+
- **Human-Computer Interaction:** Enhancing chatbots and virtual assistants with emotionally aware responses.
|
34 |
+
- **Social Media Moderation:** Reducing toxicity and improving online discourse through need-based responses.
|
35 |
+
- **Education:** Supporting emotional intelligence training and communication skill development.
|
36 |
|
37 |
+
### Downstream Use
|
38 |
+
- Fine-tuning for specialized applications in mental health, conflict resolution, or AI-driven assistance.
|
39 |
+
- Integration into virtual therapists, mental health applications, and online support systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
### Out-of-Scope Use
|
42 |
+
- Not a substitute for professional psychological evaluation or medical treatment.
|
43 |
+
- Not suitable for high-risk applications requiring absolute accuracy in emotional interpretation.
|
|
|
|
|
44 |
|
45 |
## Bias, Risks, and Limitations
|
46 |
|
47 |
+
- **Bias:** As with any NLP model, biases may exist due to the dataset and training methodology.
|
48 |
+
- **Risk of Misinterpretation:** Emotional expressions are subjective and may be misclassified in complex scenarios.
|
49 |
+
- **Generalization Limitations:** May not fully capture cultural and contextual variations in emotional expressions.
|
50 |
|
51 |
### Recommendations
|
52 |
+
Users should verify outputs before applying them in professional or high-stakes settings. Continuous evaluation and user feedback are recommended.
|
|
|
|
|
|
|
53 |
|
54 |
## How to Get Started with the Model
|
55 |
|
56 |
+
```python
|
57 |
+
from transformers import pipeline
|
58 |
+
|
59 |
+
model_name = "ai-medical/fine_tuned_deepseek_v1_empath"
|
60 |
+
model = pipeline("text-generation", model=model_name)
|
61 |
|
62 |
+
prompt = "I feel betrayed."
|
63 |
+
response = model(prompt, max_length=50)
|
64 |
+
print(response)
|
65 |
+
```
|
66 |
|
67 |
## Training Details
|
68 |
|
69 |
### Training Data
|
70 |
+
- **Dataset:** Annotated dataset mapping evaluative expressions to emotions and needs.
|
71 |
+
- **Annotations:** 1,500+ labeled examples linking expressions to emotional states and corresponding needs.
|
|
|
|
|
72 |
|
73 |
### Training Procedure
|
74 |
|
75 |
+
#### Preprocessing
|
76 |
+
- Tokenized using Hugging Face `transformers` library.
|
77 |
+
- Augmented with synonym variations and paraphrased sentences.
|
|
|
|
|
|
|
78 |
|
79 |
#### Training Hyperparameters
|
80 |
+
- **Training regime:** Mixed precision training using QLoRA.
|
81 |
+
- **Batch size:** 32
|
82 |
+
- **Learning rate:** 2e-5
|
83 |
+
- **Training steps:** 100k
|
84 |
+
- **Hardware:** Trained on 8x A100 GPUs using DeepSpeed ZeRO-3 for efficiency.
|
|
|
|
|
|
|
85 |
|
86 |
## Evaluation
|
87 |
|
|
|
|
|
88 |
### Testing Data, Factors & Metrics
|
89 |
|
90 |
#### Testing Data
|
91 |
+
- Held-out dataset containing unseen evaluative expressions.
|
|
|
|
|
|
|
92 |
|
93 |
#### Factors
|
94 |
+
- Performance across different emotional expression categories.
|
95 |
+
- Sensitivity to nuanced phrasing and variations.
|
|
|
|
|
96 |
|
97 |
#### Metrics
|
98 |
+
- **Accuracy:** Measures correct classification of emotions and needs.
|
99 |
+
- **Precision & Recall:** Evaluates the balance between capturing true emotions and avoiding false positives.
|
100 |
+
- **F1-Score:** Measures the balance between precision and recall.
|
|
|
101 |
|
102 |
### Results
|
103 |
|
104 |
+
- **Accuracy:** 89.5%
|
105 |
+
- **F1-Score:** 87.2%
|
106 |
+
- **Latency:** <500ms response time
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
## Environmental Impact
|
109 |
|
110 |
+
- **Hardware Type:** A100 GPUs
|
111 |
+
- **Training Time:** 120 hours
|
112 |
+
- **Carbon Emitted:** Estimated using [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute).
|
113 |
|
114 |
+
## Technical Specifications
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
### Model Architecture and Objective
|
117 |
+
- Base Model: DeepSeek-R1-Distill-Llama-8B
|
118 |
+
- Fine-tuned using QLoRA for parameter-efficient training.
|
119 |
|
120 |
### Compute Infrastructure
|
121 |
+
- **Hardware:** AWS spot instances (8x A100 GPUs)
|
122 |
+
- **Software:** Hugging Face `transformers`, DeepSpeed, PyTorch
|
123 |
|
124 |
+
## Citation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
+
If you use this model, please cite:
|
127 |
|
128 |
+
```bibtex
|
129 |
+
@misc{ai-medical_2025,
|
130 |
+
author = {AI Medical, ruslanmv.com},
|
131 |
+
title = {Fine-Tuned DeepSeek V1 Empath},
|
132 |
+
year = {2025},
|
133 |
+
howpublished = {\url{https://huggingface.co/ai-medical/fine_tuned_deepseek_v1_empathy}}
|
134 |
+
}
|
135 |
+
```
|
136 |
|
137 |
+
## More Information
|
138 |
+
- **Model Card Authors:** AI Medical Team, ruslanmv.com
|
139 |
+
- **Framework Versions:** PEFT 0.14.0
|
140 |
|
|
|
|
|
141 |
|
|