Update README.md
Browse files
README.md
CHANGED
|
@@ -22,9 +22,9 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
| 22 |
```python
|
| 23 |
from transformers import pipeline
|
| 24 |
|
| 25 |
-
question = "
|
| 26 |
generator = pipeline("text-generation", model="RohanSardar/mental-health-qa", device="cuda")
|
| 27 |
-
output = generator([{"role": "user", "content": question}], max_new_tokens=
|
| 28 |
print(output["generated_text"])
|
| 29 |
```
|
| 30 |
|
|
@@ -39,9 +39,9 @@ This model was trained with SFT.
|
|
| 39 |
|
| 40 |
- TRL: 0.21.0
|
| 41 |
- Transformers: 4.55.2
|
| 42 |
-
- Pytorch: 2.
|
| 43 |
-
- Datasets:
|
| 44 |
-
- Tokenizers: 0.21.
|
| 45 |
|
| 46 |
## Citations
|
| 47 |
|
|
|
|
| 22 |
```python
|
| 23 |
from transformers import pipeline
|
| 24 |
|
| 25 |
+
question = "Hey how to deal with anxiousness, like I feel anxious everytime ?"
|
| 26 |
generator = pipeline("text-generation", model="RohanSardar/mental-health-qa", device="cuda")
|
| 27 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=300, return_full_text=False)[0]
|
| 28 |
print(output["generated_text"])
|
| 29 |
```
|
| 30 |
|
|
|
|
| 39 |
|
| 40 |
- TRL: 0.21.0
|
| 41 |
- Transformers: 4.55.2
|
| 42 |
+
- Pytorch: 2.8.0+cu128
|
| 43 |
+
- Datasets: 4.0.0
|
| 44 |
+
- Tokenizers: 0.21.4
|
| 45 |
|
| 46 |
## Citations
|
| 47 |
|