Improve language tag
#7
by
lbourdois
- opened
README.md
CHANGED
|
@@ -1,82 +1,57 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
language:
|
| 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 |
-
|
| 39 |
-
|
| 40 |
-
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
Thanks for evveryone in the open community.
|
| 58 |
-
|
| 59 |
-
how to use:
|
| 60 |
-
```
|
| 61 |
-
from vllm import LLM, SamplingParams
|
| 62 |
-
from transformers import AutoTokenizer
|
| 63 |
-
|
| 64 |
-
model = LLM(
|
| 65 |
-
"Amu/t1-1.5B"
|
| 66 |
-
)
|
| 67 |
-
tok = AutoTokenizer.from_pretrained("simplescaling/s1-32B")
|
| 68 |
-
|
| 69 |
-
stop_token_ids = tok("<|im_end|>")["input_ids"]
|
| 70 |
-
|
| 71 |
-
sampling_params = SamplingParams(
|
| 72 |
-
max_tokens=32768,
|
| 73 |
-
min_tokens=0,
|
| 74 |
-
stop_token_ids=stop_token_ids,
|
| 75 |
-
)
|
| 76 |
-
|
| 77 |
-
prompt = "How many r in raspberry"
|
| 78 |
-
prompt = "<|im_start|>system\nYou are t1, created by Amu. You are a helpful assistant.<|im_end|>\n<|im_start|>user\n" + prompt + "<|im_end|>\n<|im_start|>assistant\n"
|
| 79 |
-
|
| 80 |
-
o = model.generate(prompt, sampling_params=sampling_params)
|
| 81 |
-
print(o[0].outputs[0].text)
|
| 82 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- zho
|
| 5 |
+
- eng
|
| 6 |
+
- fra
|
| 7 |
+
- spa
|
| 8 |
+
- por
|
| 9 |
+
- deu
|
| 10 |
+
- ita
|
| 11 |
+
- rus
|
| 12 |
+
- jpn
|
| 13 |
+
- kor
|
| 14 |
+
- vie
|
| 15 |
+
- tha
|
| 16 |
+
- ara
|
| 17 |
+
datasets:
|
| 18 |
+
- simplescaling/s1K
|
| 19 |
+
- lightblue/reasoning-multilingual-R1-Llama-70B-train
|
| 20 |
+
base_model:
|
| 21 |
+
- Qwen/Qwen2.5-1.5B-Instruct
|
| 22 |
+
library_name: transformers
|
| 23 |
+
---
|
| 24 |
+
It's a 1.5B model.
|
| 25 |
+
|
| 26 |
+
It's a distill model like s1 and deepseek-r1-distill.
|
| 27 |
+
|
| 28 |
+
It's test model. I hope I can reproduce a rl model like RL-Zero.
|
| 29 |
+
|
| 30 |
+
This model is a mini-step.
|
| 31 |
+
|
| 32 |
+
Thanks for evveryone in the open community.
|
| 33 |
+
|
| 34 |
+
how to use:
|
| 35 |
+
```
|
| 36 |
+
from vllm import LLM, SamplingParams
|
| 37 |
+
from transformers import AutoTokenizer
|
| 38 |
+
|
| 39 |
+
model = LLM(
|
| 40 |
+
"Amu/t1-1.5B"
|
| 41 |
+
)
|
| 42 |
+
tok = AutoTokenizer.from_pretrained("simplescaling/s1-32B")
|
| 43 |
+
|
| 44 |
+
stop_token_ids = tok("<|im_end|>")["input_ids"]
|
| 45 |
+
|
| 46 |
+
sampling_params = SamplingParams(
|
| 47 |
+
max_tokens=32768,
|
| 48 |
+
min_tokens=0,
|
| 49 |
+
stop_token_ids=stop_token_ids,
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
prompt = "How many r in raspberry"
|
| 53 |
+
prompt = "<|im_start|>system\nYou are t1, created by Amu. You are a helpful assistant.<|im_end|>\n<|im_start|>user\n" + prompt + "<|im_end|>\n<|im_start|>assistant\n"
|
| 54 |
+
|
| 55 |
+
o = model.generate(prompt, sampling_params=sampling_params)
|
| 56 |
+
print(o[0].outputs[0].text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
```
|