File size: 1,596 Bytes
e8e570b 6749314 6c4d407 2622f08 0a268da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
---
license: apache-2.0
datasets:
- cognitivecomputations/samantha-data
tags:
- qwen
- chat
- samantha
language:
- en
- zh
---
This my first attempt at finetuning the [Qwen 1.8B](https://huggingface.co/Qwen/Qwen-1_8B-Chat) model on samantha dataset. I've added a bit of my own stuff as well.
Give it a go and tell me what you think.
## Example:
```
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
tokenizer = AutoTokenizer.from_pretrained("qwen-1_8b-samantha-chat", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("qwen-1_8b-samantha-chat", device_map="auto", trust_remote_code=True).eval()
response, history = model.chat(tokenizer, "How can we take care of our mental health every day?", history=None)
print(response)
```
## Response:
```
It's important to remember that everyone's needs and circumstances are different, so some strategies may work better for one person than another. However, there are several simple things you can do to help improve your mental well-being:
1. Establish healthy boundaries and prioritize self-care activities like exercise, meditation, or spending time with friends.
2. Practice active listening and empathize with others, as it can foster strong connections.
3. Build positive relationships by being open-minded and supportive in your interactions.
4. Engage in activities that bring you joy, such as creative pursuits, hobbies, or exploring new places.
By implementing these tips, you'll be able to maintain an optimal balance between personal development and your overall emotional well-being.
``` |