kgrabko commited on
Commit
e6a9db9
·
verified ·
1 Parent(s): 219f5d4

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +334 -0
README.md ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
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.8
15
+ - jirack
16
+ ---
17
+
18
+ # 💎 JiRack Precision is Robotics & Routing & Tool calls Tokenizer
19
+ - JiRack Precision Tokenizer . Fully compatible with Qwen3.8 models.
20
+
21
+ ## NEW FOR JiRack Tokenizers family
22
+
23
+ 1. Added DeekSeek resoning tags
24
+
25
+ 2. So Do not use tool in system prompt that kills context size see what people do below !
26
+ - Native Tool Integration vs. Dynamic Context Injection
27
+ - Tokenizer-level tool calling yields higher precision and reliability than dynamically injecting schemas into RAG context windows, significantly optimizing both latency and token efficiency.
28
+
29
+ ## SIZE
30
+ - Added Tool calls tags (
31
+ "<|tool_call_start|>",
32
+ "<|tool_call_end|>",
33
+ "<|tool_result_start|>",
34
+ "<|tool_result_end|>",
35
+ )
36
+
37
+ - Size {
38
+ Vocab size: 151779
39
+ pad_token_id: 151643
40
+ eos_token_id: 151643
41
+ }
42
+ - Compatible with Qwen 2.5 and DeekSeek R1 • Optimized for Code . Use resize function without adaptation, see examples below
43
+ - It needs 100k example to fully adapt routing features for RAG Routing model . So check Qwen modification tokenizer rules
44
+ - A DeekSeek R1-based tokenizer enhanced with FIM markers from Microsoft datasets and other tags for ML (
45
+ <|fim_prefix|>,
46
+ <|fim_middle|>,
47
+ <f|im_suffix|>
48
+ )
49
+ - Added Robotics & Embodiment tags (
50
+ "<|action_start|>",
51
+ "<|action_end|>",
52
+ "<|trajectory_start|>",
53
+ "<|trajectory_end|>",
54
+ "<|joint_start|>",
55
+ "<|joint_end|>",
56
+ "<|sensor_start|>",
57
+ "<|sensor_end|>",
58
+ "<|command_start|>",
59
+ "<|command_end|>",
60
+ "<|state_start|>",
61
+ "<|state_end|>",
62
+ "<|pose|>",
63
+ "<|velocity|>",
64
+ "<|force|>",
65
+ "<|torque|>",
66
+ "<|gripper|>",
67
+ "<|navigation|>",
68
+ "<|obstacle|>",
69
+ "<|task_start|>",
70
+ "<|task_end|>",
71
+ "<|plan_start|>",
72
+ "<|plan_end|>",
73
+ "<|behavior_start|>",
74
+ "<|behavior_end|>",
75
+ "<|skill_start|>",
76
+ "<|skill_end|>",
77
+ "<|motor|>",
78
+ "<|servo|>",
79
+ "<|imu|>",
80
+ "<|lidar|>",
81
+ "<|camera|>",
82
+ "<|depth|>",
83
+ "<|waypoint|>",
84
+ "<|path|>",
85
+ "<|collision|>",
86
+ "<|grasp|>",
87
+ "<|release|>",
88
+ "<|homing|>",
89
+ "<|emergency_stop|>",
90
+ "<|calibration|>",
91
+ "<|manipulation|>",
92
+ "<|locomotion|>",
93
+ "<|feedback|>",
94
+ "<|control_loop|>",)
95
+
96
+ - Added Multi models support (
97
+ "<|image|>",
98
+ "<|video|>",
99
+ "<|sound|>",
100
+ "<|voice|>",
101
+ "<|listening|>",
102
+ "<|vision|>",)
103
+
104
+ - Added Human mood tags (
105
+ "<|mood_happy|>",
106
+ "<|mood_sad|>",
107
+ "<|mood_angry|>",
108
+ "<|mood_neutral|>",
109
+ )
110
+
111
+ - Added Tool calls tags (
112
+ "<|tool_call_start|>",
113
+ "<|tool_call_end|>",
114
+ "<|tool_result_start|>",
115
+ "<|tool_result_end|>",
116
+ )
117
+
118
+
119
+ - Added RAG routing tags for RAG MoE Systems (
120
+ "__SCIENCE__",
121
+ "__CODING__",
122
+ "__STOCK_EXCHANGE__",
123
+ "__MEDICINE__",
124
+ "__GOVERNMENT__",
125
+ "__NEWS__",
126
+ "__GENERAL__",
127
+ "__MATERIAL_SCIENCE__",
128
+ "__ELECTRONICS__",
129
+ "__MICROELECTRONICS__",
130
+ "__ENGINEERING__",
131
+ "__ROBOTICS__",
132
+ "__ENERGY__",
133
+ "__AUTOMOTIVE__",
134
+ "__AVIATION__",
135
+ "__MATH__",
136
+ "__PYTHON__",
137
+ "__C__",
138
+ "__CPP__",
139
+ "__C_SHARP__",
140
+ "__JAVA__",
141
+ "__JAVASCRIPT__",
142
+ "__TYPESCRIPT__",
143
+ "__RUST__",
144
+ "__GO__",
145
+ "__RUBY__",
146
+ "__PHP__",
147
+ "__SWIFT__",
148
+ "__KOTLIN__",
149
+ "__BASH__",
150
+ "__SQL__",
151
+ "__ASSEMBLY__",
152
+ "__PHILOSOPHY__",
153
+ "__LITERATURE__",
154
+ "__SOCIOLOGY__",
155
+ "__PSYCHOLOGY__",
156
+ "__POLITICAL_SCIENCE__",
157
+ "__CULTURAL_STUDIES__",
158
+ "__ETHNOGRAPHY__",
159
+ "__HUMAN_RIGHTS__",
160
+ "__COMPLIANCE__",
161
+ "__MILITARY__",
162
+ "__BANKING__",
163
+ "__OIL_INDUSTRY__",
164
+ "__LIGHT_INDUSTRY__",
165
+ "__NATURE__",
166
+ "__OCEAN__",
167
+ "__SPORT__",
168
+ "__CULINARY__",
169
+ "__TRAVEL__",
170
+ "__HOBBY__"
171
+ )
172
+
173
+ - Fully compatible with Microsoft BigCode datasets including The Stack, StarCoder, and NextCoder.
174
+ - Enables efficient training on large-scale coding data for superior code generation and understanding.
175
+
176
+
177
+ **Inventor:** Konstantin Vladimirovich Grabko
178
+ **Organization:** CMS Manhattan JiRack Technology
179
+ **Official Site:** [www.cmsmanhattan.com](http://www.cmsmanhattan.com)
180
+ Designed for Banking and Fintech Institutions
181
+
182
+ **Banks and Fintech** JiRack Architecture: Build Sovereign Financial Models from Scratch
183
+ - 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.
184
+ - There is fix price for FinTech
185
+ - 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.
186
+
187
+
188
+ **JiRack Corp Tokenizer solution**
189
+ - Use JiRack models with trusted, high-quality coding datasets while maintaining full control over your code and data privacy.
190
+ - Excellent fit for Banks, Fintech companies, and any organization that requires strict data confidentiality and security.
191
+ - Update JiRack model for corp privacy coding.
192
+
193
+ **JiRack Tokenizer Subcription**
194
+ - All subscribed members will receive regular tokenizer updates optimized for the latest high-quality coding datasets.
195
+
196
+ ### Open Robot platform
197
+
198
+ - **Tiangong** : https://english.www.gov.cn/english.www.gov.cn/news/202411/13/content_WS673406e2c6d0868f4e8ece33.html
199
+ - **Unitree g1** https://a.co/d/0e4A8YVc
200
+ - **LimX Oli** https://www.limxdynamics.com/en/products/oli?channel=option_google_advertising__c-
201
+ - **ubtrobot** https://www.ubtrobot.com/en/
202
+ - **x-humanoid** https://www.x-humanoid.com/detail/hskw.html
203
+ - **Drone** https://arrowair.com/quiver/
204
+
205
+
206
+ ### Key Features
207
+
208
+ - **Algorithm**: Byte-Level BPE
209
+ - **Vocabulary Size**: **128,000** tokens — excellent balance between precision and efficiency
210
+ - **Multilingual & Technical Strength**: Optimized for English, Russian, code, scientific literature, and technical documentation
211
+ - **Domain Specialization**: Strong performance on programming languages, engineering, robotics, and scientific texts
212
+
213
+
214
+ ### Tool calling
215
+ - Here's a concrete example of the Qwen 2.5 / Hermes-style tool-calling format: https://huggingface.co/datasets/NousResearch/hermes-function-calling-v1
216
+
217
+ - System message (defines available tools):
218
+
219
+ ```bash
220
+ <|im_start|>system
221
+ You are a helpful assistant with access to the following functions. Use them if required:
222
+ <tools>
223
+ {
224
+ "type": "function",
225
+ "function": {"name": "get_weather", "description": "Get current weather for a location",
226
+ "parameters":
227
+ {"type": "object", "properties":
228
+ {
229
+ "location":{"type": "string", "description": "City name"},
230
+ "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["location"]
231
+ }
232
+ }
233
+ }
234
+ </tools>
235
+ For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
236
+ <tool_call>
237
+ {"name": <function-name>, "arguments": <args-json-object>}
238
+ </tool_call>
239
+ <|im_end|>
240
+ ```
241
+
242
+ - User message:
243
+
244
+ ```bash
245
+ <|im_start|>user What's the weather like in Tokyo right now?<|im_end|>
246
+ ```
247
+
248
+ - Assistant message (model emits the tool call instead of a normal answer):
249
+
250
+ ```bash
251
+ <|im_start|>assistant
252
+ <tool_call>
253
+ {"name": "get_weather", "arguments": {"location": "Tokyo", "unit": "celsius"}}
254
+ </tool_call>
255
+ <|im_end|>
256
+ ```
257
+
258
+ - Tool result message (your agent code executes the function and feeds the result back):
259
+
260
+ ```bash
261
+ <|im_start|>tool
262
+ <tool_response>
263
+ {"temperature": 22, "condition": "clear sky", "humidity": 48}
264
+ </tool_response>
265
+ <|im_end|>
266
+ ```
267
+
268
+ - Final assistant message (model now answers using the result):
269
+
270
+ ```bash
271
+ <|im_start|>assistant It's currently 22°C and clear in Tokyo, with 48% humidity.<|im_end|>
272
+ ```
273
+
274
+ ```bash
275
+ That's the exact skeleton your Hermes dataset entries need to be mapped into
276
+ — system prompt with <tools>...</tools>, <tool_call> in assistant turns, <tool_response> in tool turns.
277
+ If you apply Qwen 2.5's tokenizer chat template via apply_chat_template() with a tools=[...] argument,
278
+ it generates this structure automatically — you don't have to hand-write the tags yourself for training data prep,
279
+ as long as your data is in the standard role/content/tool_calls message-list format first
280
+ ```
281
+
282
+ ### Special Tokens Support
283
+
284
+ - Full **Qwen2 compatible format** dialogue format
285
+ - FIM (Fill-in-the-Middle) support for code generation
286
+ - Rich set of domain routing tokens (`__CODING__`, `__PYTHON__`, `__ROBOTICS__`, `__SCIENCE__`, etc.)
287
+ - Extended robotics and control tokens
288
+
289
+
290
+ ### CMS Manhattan Service & Support
291
+
292
+ - Jirack patent guards your technology for competitors
293
+ - Redesign Llama , Qwen , Gemma to Ternary model
294
+ - Re-tain and replace embeddings for Llama , Qwen , Gemma to extend langeages to 347
295
+ - Accelerate inference via high compression 256K tokenizer and replace multiplication with sum operations via Ternary weights
296
+
297
+
298
+
299
+ **Install for Llamma compatible models in your chat script**
300
+
301
+ - from transformers import AutoModelForCausalLM
302
+
303
+ - model = AutoModelForCausalLM.from_pretrained(your model)
304
+
305
+ - # The Must !
306
+ - model.resize_token_embeddings(len(tokenizer.tokenizer)) # или просто len(tokenizer.tokenizer)
307
+
308
+ - print("New Embedding size for you chat script:", model.get_input_embeddings().weight.shape[0])
309
+
310
+ - # Tesr Tokenizer size !
311
+ (venv_ji) root@jirack2:# python -c '
312
+ from transformers import AutoTokenizer
313
+ tok = AutoTokenizer.from_pretrained("./QwenRoboticsTokenizer")
314
+ print("Vocab size:", len(tok))
315
+ print("pad_token_id:", tok.pad_token_id)
316
+ print("eos_token_id:", tok.eos_token_id)
317
+ '
318
+
319
+ Vocab size: 151778
320
+ pad_token_id: 151643
321
+ eos_token_id: 151645
322
+
323
+ ## 📧 Contact & Licensing
324
+
325
+ For joint ventures, hardware integration, or licensing inquiries:
326
+
327
+ - **Email:** grabko@cmsmanhattan.com
328
+ - **Phone:** +1 (516) 777-0945
329
+ - **Location:** New York, USA
330
+
331
+ ## 📧 Copyright 2026 CMS Manhattan . All rights reserved
332
+
333
+ ## License
334
+ MIT License