kgrabko commited on
Commit
59a51b2
·
verified ·
1 Parent(s): 63adf7a

Create README.md

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