Update README.md
Browse files
README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
---
|
2 |
-
base_model:
|
3 |
tags:
|
4 |
- text-generation-inference
|
5 |
- transformers
|
6 |
-
- unsloth
|
7 |
- qwen3
|
8 |
- trl
|
9 |
- sft
|
@@ -12,12 +11,29 @@ language:
|
|
12 |
- en
|
13 |
---
|
14 |
|
15 |
-
|
|
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
This qwen3 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
22 |
|
23 |
-
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
|
|
1 |
---
|
2 |
+
base_model: Qwen/Qwen3-0.6B
|
3 |
tags:
|
4 |
- text-generation-inference
|
5 |
- transformers
|
|
|
6 |
- qwen3
|
7 |
- trl
|
8 |
- sft
|
|
|
11 |
- en
|
12 |
---
|
13 |
|
14 |
+
## Goal:
|
15 |
+
Fine-tuning model for detection emotional from natural lanugage.
|
16 |
|
17 |
+
## Usage:
|
18 |
+
```python
|
19 |
+
messages = [
|
20 |
+
{"role" : "user", "content" : "I want to play this game"}
|
21 |
+
]
|
22 |
+
text = tokenizer.apply_chat_template(
|
23 |
+
messages,
|
24 |
+
tokenize = False,
|
25 |
+
add_generation_prompt = True
|
26 |
+
enable_thinking = False, # you can set this to True but it won't get thinking!
|
27 |
+
)
|
28 |
+
|
29 |
+
from transformers import TextStreamer
|
30 |
+
_ = model.generate(
|
31 |
+
**tokenizer(text, return_tensors = "pt").to("cuda"),
|
32 |
+
streamer = TextStreamer(tokenizer, skip_prompt = True),
|
33 |
+
)
|
34 |
+
```
|
35 |
+
|
36 |
+
|
37 |
+
Base model: Qwen3-0.6B
|
38 |
|
|
|
39 |
|
|