lbourdois commited on
Commit
13290f3
·
verified ·
1 Parent(s): 9b6675a

Improve language tag

Browse files

Hi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.

Files changed (1) hide show
  1. README.md +130 -146
README.md CHANGED
@@ -1,147 +1,131 @@
1
- ---
2
- license: other
3
- license_name: qwen-research
4
- license_link: https://huggingface.co/Qwen/Qwen2.5-3B-Instruct/blob/main/LICENSE
5
- base_model:
6
- - Qwen/Qwen2.5-3B-Instruct
7
- library_name: transformers
8
- language:
9
- - en
10
- - zh
11
- - fr
12
- - es
13
- - pt
14
- - de
15
- - it
16
- - ru
17
- - ja
18
- - ko
19
- - vi
20
- - th
21
- - ar
22
- - fa
23
- - he
24
- - tr
25
- - cs
26
- - pl
27
- - hi
28
- - bn
29
- - ur
30
- - id
31
- - ms
32
- - lo
33
- - my
34
- - ceb
35
- - km
36
- - tl
37
- - nl
38
- tags:
39
- - trl
40
- - Reasoning
41
- - open-llm
42
- - synthetic-data
43
- - Deepseek-R1
44
- - Qwen2.5
45
- - fine-tune
46
- - unsloth
47
- - Conversational
48
- - Agentic
49
- ---
50
- # **Kyro-n1: A powerful family of models made for reasoning**
51
- > [!IMPORTANT]
52
- > This model uses some features from **AIDC-AI/Marco-o1** tokenizer and this model is a Qwen2.5-3B fine-tune.
53
-
54
- Kyro-n1 is a lightweight and fast reasoning model based on **Qwen/Qwen2.5-3B-Instruct**. We have further increased the quality of reasoning in certain aspects such as maths and science, but in this version, our main goal was maths and reasoning in general conversations. We intend to expand on this in future models. The whole purpose of Kyro is so that almost every device can run a reasoning model no matter their compute. This is why we are releasing 3B, 7B and 14B variants to achieve this goal.
55
-
56
- ## **Model Details**
57
- - Developed by: [Spestly (Open-Neo)](https://x.com/Spestly) & [Kazex (Open-Neo)](https://x.com/32GIGABYTES_YT)
58
- - Type: Causal Language Models
59
- - Training Stage: Pretraining & Post-training
60
- - Architecture: transformers with RoPE, SwiGLU, RMSNorm, Attention QKV bias and tied word embeddings
61
- - Number of Parameters: 3.09B
62
- - Number of Paramaters (Non-Embedding): 2.77B
63
- - Number of Layers: 36
64
- - Number of Attention Heads (GQA): 16 for Q and 2 for KV
65
- - Context Length: Full 32,768 tokens and generation 8192 tokens
66
-
67
- ## **Model Downloads**
68
-
69
- ### Kyro-n1 Models
70
-
71
- <div align="center">
72
-
73
- | | **Training Data** | **Params** | **Input modalities** | **Output modalities** | **Context length** | **Download Link** |
74
- |--------------|------------------------------------|---------|------------------|----------------------|----------------|----------------|
75
- | **Kyro (text only)** | A new mix of publicly available online data. | **3B** | Multilingual Text | Multilingual Text and code | 128k | [🤗 HuggingFace](https://huggingface.co/open-neo/Kyro-n1-3B) |
76
- | | | **7B** | Multilingual Text | Multilingual Text and code | 128k | [🤗 HuggingFace](https://huggingface.co/open-neo/Kyro-n1-7B) |
77
- | | | **14B** | Multilingual Text | Multilingual Text and code | 128k | [🤗 HuggingFace](https://huggingface.co/open-neo/Kyro-n1-14B) |
78
-
79
- </div>
80
-
81
- ### Kyro-1 Models
82
-
83
- ## **Usage**
84
-
85
- The code of Kyro-n1 (Qwen2.5) has been in the latest Hugging face `transformers` and we advise you to use the latest version of `transformers`.
86
-
87
- With `transformers<4.37.0`, you will encounter the following error:
88
- ```
89
- KeyError: 'qwen2'
90
- ```
91
-
92
- ### **Quickstart**
93
-
94
- ```python
95
- from transformers import AutoModelForCausalLM, AutoTokenizer
96
- model_name = "open-neo/Kyro-n1-3B"
97
- model = AutoModelForCausalLM.from_pretrained(
98
- model_name,
99
- torch_dtype="auto",
100
- device_map="auto"
101
- )
102
- tokenizer = AutoTokenizer.from_pretrained(model_name)
103
- prompt = "What do you think about CRISPR and its effect on the future of humanity?"
104
- messages = [
105
- {"role": "user", "content": prompt}
106
- ]
107
- text = tokenizer.apply_chat_template(
108
- messages,
109
- tokenize=False,
110
- add_generation_prompt=True
111
- )
112
- model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
113
- generated_ids = model.generate(
114
- **model_inputs,
115
- max_new_tokens=2048
116
- )
117
- generated_ids = [
118
- output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
119
- ]
120
- response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
121
- ```
122
-
123
- ## Citation
124
-
125
- If you find our work helpful, feel free to give us a cite.
126
-
127
- ```
128
- @misc{qwen2.5,
129
- title = {Qwen2.5: A Party of Foundation Models},
130
- url = {https://qwenlm.github.io/blog/qwen2.5/},
131
- author = {Qwen Team},
132
- month = {September},
133
- year = {2024}
134
- }
135
- @article{qwen2,
136
- title={Qwen2 Technical Report},
137
- author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
138
- journal={arXiv preprint arXiv:2407.10671},
139
- year={2024}
140
- }
141
- @misc{kyro-n1,
142
- title={Kyro-n1: A powerful family of models made for reasoning},
143
- author={Aayan Mishra and Krish Thumar},
144
- howpublished={https://huggingface.co/collections/open-neo/kyro-n1-67ab2e7bbc76a9aab3030c21},
145
- year={2025}
146
- }
147
  ```
 
1
+ ---
2
+ license: other
3
+ license_name: qwen-research
4
+ license_link: https://huggingface.co/Qwen/Qwen2.5-3B-Instruct/blob/main/LICENSE
5
+ base_model:
6
+ - Qwen/Qwen2.5-3B-Instruct
7
+ library_name: transformers
8
+ language:
9
+ - zho
10
+ - eng
11
+ - fra
12
+ - spa
13
+ - por
14
+ - deu
15
+ - ita
16
+ - rus
17
+ - jpn
18
+ - kor
19
+ - vie
20
+ - tha
21
+ - ara
22
+ tags:
23
+ - trl
24
+ - Reasoning
25
+ - open-llm
26
+ - synthetic-data
27
+ - Deepseek-R1
28
+ - Qwen2.5
29
+ - fine-tune
30
+ - unsloth
31
+ - Conversational
32
+ - Agentic
33
+ ---
34
+ # **Kyro-n1: A powerful family of models made for reasoning**
35
+ > [!IMPORTANT]
36
+ > This model uses some features from **AIDC-AI/Marco-o1** tokenizer and this model is a Qwen2.5-3B fine-tune.
37
+
38
+ Kyro-n1 is a lightweight and fast reasoning model based on **Qwen/Qwen2.5-3B-Instruct**. We have further increased the quality of reasoning in certain aspects such as maths and science, but in this version, our main goal was maths and reasoning in general conversations. We intend to expand on this in future models. The whole purpose of Kyro is so that almost every device can run a reasoning model no matter their compute. This is why we are releasing 3B, 7B and 14B variants to achieve this goal.
39
+
40
+ ## **Model Details**
41
+ - Developed by: [Spestly (Open-Neo)](https://x.com/Spestly) & [Kazex (Open-Neo)](https://x.com/32GIGABYTES_YT)
42
+ - Type: Causal Language Models
43
+ - Training Stage: Pretraining & Post-training
44
+ - Architecture: transformers with RoPE, SwiGLU, RMSNorm, Attention QKV bias and tied word embeddings
45
+ - Number of Parameters: 3.09B
46
+ - Number of Paramaters (Non-Embedding): 2.77B
47
+ - Number of Layers: 36
48
+ - Number of Attention Heads (GQA): 16 for Q and 2 for KV
49
+ - Context Length: Full 32,768 tokens and generation 8192 tokens
50
+
51
+ ## **Model Downloads**
52
+
53
+ ### Kyro-n1 Models
54
+
55
+ <div align="center">
56
+
57
+ | | **Training Data** | **Params** | **Input modalities** | **Output modalities** | **Context length** | **Download Link** |
58
+ |--------------|------------------------------------|---------|------------------|----------------------|----------------|----------------|
59
+ | **Kyro (text only)** | A new mix of publicly available online data. | **3B** | Multilingual Text | Multilingual Text and code | 128k | [🤗 HuggingFace](https://huggingface.co/open-neo/Kyro-n1-3B) |
60
+ | | | **7B** | Multilingual Text | Multilingual Text and code | 128k | [🤗 HuggingFace](https://huggingface.co/open-neo/Kyro-n1-7B) |
61
+ | | | **14B** | Multilingual Text | Multilingual Text and code | 128k | [🤗 HuggingFace](https://huggingface.co/open-neo/Kyro-n1-14B) |
62
+
63
+ </div>
64
+
65
+ ### Kyro-1 Models
66
+
67
+ ## **Usage**
68
+
69
+ The code of Kyro-n1 (Qwen2.5) has been in the latest Hugging face `transformers` and we advise you to use the latest version of `transformers`.
70
+
71
+ With `transformers<4.37.0`, you will encounter the following error:
72
+ ```
73
+ KeyError: 'qwen2'
74
+ ```
75
+
76
+ ### **Quickstart**
77
+
78
+ ```python
79
+ from transformers import AutoModelForCausalLM, AutoTokenizer
80
+ model_name = "open-neo/Kyro-n1-3B"
81
+ model = AutoModelForCausalLM.from_pretrained(
82
+ model_name,
83
+ torch_dtype="auto",
84
+ device_map="auto"
85
+ )
86
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
87
+ prompt = "What do you think about CRISPR and its effect on the future of humanity?"
88
+ messages = [
89
+ {"role": "user", "content": prompt}
90
+ ]
91
+ text = tokenizer.apply_chat_template(
92
+ messages,
93
+ tokenize=False,
94
+ add_generation_prompt=True
95
+ )
96
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
97
+ generated_ids = model.generate(
98
+ **model_inputs,
99
+ max_new_tokens=2048
100
+ )
101
+ generated_ids = [
102
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
103
+ ]
104
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
105
+ ```
106
+
107
+ ## Citation
108
+
109
+ If you find our work helpful, feel free to give us a cite.
110
+
111
+ ```
112
+ @misc{qwen2.5,
113
+ title = {Qwen2.5: A Party of Foundation Models},
114
+ url = {https://qwenlm.github.io/blog/qwen2.5/},
115
+ author = {Qwen Team},
116
+ month = {September},
117
+ year = {2024}
118
+ }
119
+ @article{qwen2,
120
+ title={Qwen2 Technical Report},
121
+ author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
122
+ journal={arXiv preprint arXiv:2407.10671},
123
+ year={2024}
124
+ }
125
+ @misc{kyro-n1,
126
+ title={Kyro-n1: A powerful family of models made for reasoning},
127
+ author={Aayan Mishra and Krish Thumar},
128
+ howpublished={https://huggingface.co/collections/open-neo/kyro-n1-67ab2e7bbc76a9aab3030c21},
129
+ year={2025}
130
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  ```