kgrabko commited on
Commit
371b467
·
verified ·
1 Parent(s): 5fa8ed0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +219 -0
README.md ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - multilingual
5
+ tags:
6
+ - tokenizer
7
+ - bpe
8
+ - byte-level-bpe
9
+ - chatml
10
+ - routing
11
+ - moe
12
+ - robotics
13
+ - qwen
14
+ - qwen3
15
+ - jirack
16
+ ---
17
+
18
+ # 💎 Qwen Robotics & Routing Tokenizer
19
+ - Qwen Pro Tokenizer . Fully compatible with Qwen3 models.
20
+ - Size {
21
+ Vocab size: 262251
22
+ pad_token_id: 0
23
+ eos_token_id: 1
24
+ }
25
+ - Compatible with Qwen 3 • Optimized for Code . Use resize function without adaptation, see examples below
26
+ - It needs 100k example to fully adapt routing features for RAG Routing model . So check Qwen modification tokenizer rules
27
+ - A Qwen 3-based tokenizer enhanced with FIM markers from Microsoft datasets (
28
+ <|fim_prefix|>,
29
+ <|fim_middle|>,
30
+ <f|im_suffix|>
31
+ )
32
+ - Added Robotics & Embodiment tags (
33
+ "<|action_start|>",
34
+ "<|action_end|>",
35
+ "<|trajectory_start|>",
36
+ "<|trajectory_end|>",
37
+ "<|joint_start|>",
38
+ "<|joint_end|>",
39
+ "<|sensor_start|>",
40
+ "<|sensor_end|>",
41
+ "<|command_start|>",
42
+ "<|command_end|>",
43
+ "<|state_start|>",
44
+ "<|state_end|>",
45
+ "<|pose|>",
46
+ "<|velocity|>",
47
+ "<|force|>",
48
+ "<|torque|>",
49
+ "<|gripper|>",
50
+ "<|navigation|>",
51
+ "<|obstacle|>",
52
+ "<|task_start|>",
53
+ "<|task_end|>",
54
+ "<|plan_start|>",
55
+ "<|plan_end|>",
56
+ "<|behavior_start|>",
57
+ "<|behavior_end|>",
58
+ "<|skill_start|>",
59
+ "<|skill_end|>",
60
+ "<|motor|>",
61
+ "<|servo|>",
62
+ "<|imu|>",
63
+ "<|lidar|>",
64
+ "<|camera|>",
65
+ "<|depth|>",
66
+ "<|waypoint|>",
67
+ "<|path|>",
68
+ "<|collision|>",
69
+ "<|grasp|>",
70
+ "<|release|>",
71
+ "<|homing|>",
72
+ "<|emergency_stop|>",
73
+ "<|calibration|>",
74
+ "<|manipulation|>",
75
+ "<|locomotion|>",
76
+ "<|feedback|>",
77
+ "<|control_loop|>",)
78
+
79
+ - Added Multi models support (
80
+ "<|image|>",
81
+ "<|video|>",
82
+ "<|sound|>",
83
+ "<|voice|>",
84
+ "<|listening|>",
85
+ "<|vision|>",)
86
+
87
+ - Added Human mood tags (
88
+ "<|mood_happy|>",
89
+ "<|mood_sad|>",
90
+ "<|mood_angry|>",
91
+ "<|mood_neutral|>",
92
+ )
93
+
94
+ - Added RAG routing tags for RAG MoE Systems (
95
+ "__SCIENCE__",
96
+ "__CODING__",
97
+ "__STOCK_EXCHANGE__",
98
+ "__MEDICINE__",
99
+ "__GOVERNMENT__",
100
+ "__NEWS__",
101
+ "__GENERAL__",
102
+ "__MATERIAL_SCIENCE__",
103
+ "__ELECTRONICS__",
104
+ "__MICROELECTRONICS__",
105
+ "__ENGINEERING__",
106
+ "__ROBOTICS__",
107
+ "__ENERGY__",
108
+ "__AUTOMOTIVE__",
109
+ "__AVIATION__",
110
+ "__MATH__",
111
+ "__PYTHON__",
112
+ "__C__",
113
+ "__CPP__",
114
+ "__C_SHARP__",
115
+ "__JAVA__",
116
+ "__JAVASCRIPT__",
117
+ "__TYPESCRIPT__",
118
+ "__RUST__",
119
+ "__GO__",
120
+ "__RUBY__",
121
+ "__PHP__",
122
+ "__SWIFT__",
123
+ "__KOTLIN__",
124
+ "__BASH__",
125
+ "__SQL__",
126
+ "__ASSEMBLY__",
127
+ "__PHILOSOPHY__",
128
+ "__LITERATURE__",
129
+ "__SOCIOLOGY__",
130
+ "__PSYCHOLOGY__",
131
+ "__POLITICAL_SCIENCE__",
132
+ "__CULTURAL_STUDIES__",
133
+ "__ETHNOGRAPHY__",
134
+ "__HUMAN_RIGHTS__",
135
+ "__COMPLIANCE__",
136
+ "__MILITARY__",
137
+ "__BANKING__",
138
+ "__OIL_INDUSTRY__",
139
+ "__LIGHT_INDUSTRY__",
140
+ "__NATURE__",
141
+ "__OCEAN__",
142
+ "__SPORT__",
143
+ "__CULINARY__",
144
+ "__TRAVEL__",
145
+ "__HOBBY__"
146
+ )
147
+
148
+ - Fully compatible with Microsoft BigCode datasets including The Stack, StarCoder, and NextCoder.
149
+ - Enables efficient training on large-scale coding data for superior code generation and understanding.
150
+
151
+
152
+ **Inventor:** Konstantin Vladimirovich Grabko
153
+ **Organization:** CMS Manhattan JiRack Technology
154
+ **Official Site:** [www.cmsmanhattan.com](http://www.cmsmanhattan.com)
155
+ Designed for Banking and Fintech Institutions
156
+
157
+ **Banks and Fintech** JiRack Architecture: Build Sovereign Financial Models from Scratch
158
+ - Leveraging the JiRack Tokenizer and our Open Dataset, we enable financial institutions to develop secure, internal AI models from the ground up. This approach ensures maximum data privacy and model sovereignty for high-stakes banking operations.
159
+ - There is fix price for FinTech
160
+ - I recommend initializing the model with a 4K context window for initial stability, followed by scaling to 8K context using specialized JiRack 8K datasets. This two-stage approach ensures robust positional encoding before extending the model's long-range dependency.
161
+
162
+
163
+ **JiRack Corp Tokenizer solution**
164
+ - Use JiRack models with trusted, high-quality coding datasets while maintaining full control over your code and data privacy.
165
+ - Excellent fit for Banks, Fintech companies, and any organization that requires strict data confidentiality and security.
166
+ - Update JiRack model for corp privacy coding.
167
+
168
+ **JiRack Tokenizer Subcription**
169
+ - All subscribed members will receive regular tokenizer updates optimized for the latest high-quality coding datasets.
170
+
171
+ ### Open Robot platform
172
+
173
+ - **Tiangong** : https://english.www.gov.cn/english.www.gov.cn/news/202411/13/content_WS673406e2c6d0868f4e8ece33.html
174
+ - **Unitree g1** https://a.co/d/0e4A8YVc
175
+ - **LimX Oli** https://www.limxdynamics.com/en/products/oli?channel=option_google_advertising__c-
176
+ - **ubtrobot** https://www.ubtrobot.com/en/
177
+ - **x-humanoid** https://www.x-humanoid.com/detail/hskw.html
178
+
179
+
180
+
181
+ ### Key Features
182
+
183
+ - **Algorithm**: Byte-Level BPE
184
+ - **Vocabulary Size**: **128,000** tokens — excellent balance between precision and efficiency
185
+ - **Multilingual & Technical Strength**: Optimized for English, Russian, code, scientific literature, and technical documentation
186
+ - **Domain Specialization**: Strong performance on programming languages, engineering, robotics, and scientific texts
187
+
188
+ ### Special Tokens Support
189
+
190
+ - Full **Qwen3 compatible format** dialogue format
191
+ - FIM (Fill-in-the-Middle) support for code generation
192
+ - Rich set of domain routing tokens (`__CODING__`, `__PYTHON__`, `__ROBOTICS__`, `__SCIENCE__`, etc.)
193
+ - Extended robotics and control tokens
194
+
195
+
196
+
197
+ **Install for Llamma compatible models in your chat script**
198
+
199
+ - from transformers import AutoModelForCausalLM
200
+
201
+ - model = AutoModelForCausalLM.from_pretrained(your model)
202
+
203
+ - # The Must !
204
+ - model.resize_token_embeddings(len(tokenizer.tokenizer)) # или просто len(tokenizer.tokenizer)
205
+
206
+ - print("New Embedding size for you chat script:", model.get_input_embeddings().weight.shape[0])
207
+
208
+ - # Tesr Tokenizer size !
209
+ (venv_ji) root@jirack2:# python -c '
210
+ from transformers import AutoTokenizer
211
+ tok = AutoTokenizer.from_pretrained("./QwenRoboticsTokenizer")
212
+ print("Vocab size:", len(tok))
213
+ print("pad_token_id:", tok.pad_token_id)
214
+ print("eos_token_id:", tok.eos_token_id)
215
+ '
216
+
217
+ Vocab size: 262251
218
+ pad_token_id: 0
219
+ eos_token_id: 1