π Llama Robotics & Routing Tokenizer
Llama Pro Tokenizer from JiRack team . Fully compatible with Llama3 models from META Inc.
Size { Vocab size: 128256 (same as Llama 3, no embedding resize needed) bos_token_id: 128000 (<|begin_of_text|>) eos_token_id: 128009 (<|eot_id|>) }
Compatible with Llama 3 β’ Optimized for Code . All tags live in Llama 3 reserved slots, so the vocabulary keeps the native 128256 size
It needs 100k example to fully adapt routing features for RAG Routing model . So check llama modification tokenizer rules
A Llama 3-based tokenizer enhanced with FIM markers from Microsoft datasets ( <|fim_prefix|>, <|fim_middle|>, <f|im_suffix|> )
Added Robotics & Embodiment tags ( "<|action_start|>", "<|action_end|>", "<|trajectory_start|>", "<|trajectory_end|>", "<|joint_start|>", "<|joint_end|>", "<|sensor_start|>", "<|sensor_end|>", "<|command_start|>", "<|command_end|>", "<|state_start|>", "<|state_end|>", "<|pose|>", "<|velocity|>", "<|force|>", "<|torque|>", "<|gripper|>", "<|navigation|>", "<|obstacle|>", "<|task_start|>", "<|task_end|>", "<|plan_start|>", "<|plan_end|>", "<|behavior_start|>", "<|behavior_end|>", "<|skill_start|>", "<|skill_end|>", "<|motor|>", "<|servo|>", "<|imu|>", "<|lidar|>", "<|camera|>", "<|depth|>", "<|waypoint|>", "<|path|>", "<|collision|>", "<|grasp|>", "<|release|>", "<|homing|>", "<|emergency_stop|>", "<|calibration|>", "<|manipulation|>", "<|locomotion|>", "<|feedback|>", "<|control_loop|>",)
Added Multi models support ( "<|image|>", "<|video|>", "<|sound|>", "<|voice|>", "<|listening|>", "<|vision|>",)
Added Human mood tags ( "<|mood_happy|>", "<|mood_sad|>", "<|mood_angry|>", "<|mood_neutral|>", )
Added RAG routing tags for RAG MoE Systems ( "SCIENCE", "CODING", "STOCK_EXCHANGE", "MEDICINE", "GOVERNMENT", "NEWS", "GENERAL", "MATERIAL_SCIENCE", "ELECTRONICS", "MICROELECTRONICS", "ENGINEERING", "ROBOTICS", "ENERGY", "AUTOMOTIVE", "AVIATION", "MATH", "PYTHON", "C", "CPP", "C_SHARP", "JAVA", "JAVASCRIPT", "TYPESCRIPT", "RUST", "GO", "RUBY", "PHP", "SWIFT", "KOTLIN", "BASH", "SQL", "ASSEMBLY", "PHILOSOPHY", "LITERATURE", "SOCIOLOGY", "PSYCHOLOGY", "POLITICAL_SCIENCE", "CULTURAL_STUDIES", "ETHNOGRAPHY", "HUMAN_RIGHTS", "COMPLIANCE", "MILITARY", "BANKING", "OIL_INDUSTRY", "LIGHT_INDUSTRY", "NATURE", "OCEAN", "SPORT", "CULINARY", "TRAVEL", "HOBBY" )
Fully compatible with Microsoft BigCode datasets including The Stack, StarCoder, and NextCoder.
Enables efficient training on large-scale coding data for superior code generation and understanding.
Inventor: Konstantin Vladimirovich Grabko Organization: CMS Manhattan JiRack Technology Official Site: www.cmsmanhattan.com Designed for Banking and Fintech Institutions
Banks and Fintech JiRack Architecture: Build Sovereign Financial Models from Scratch
- 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.
- There is fix price for FinTech
- 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.
JiRack Corp Tokenizer solution
- Use JiRack models with trusted, high-quality coding datasets while maintaining full control over your code and data privacy.
- Excellent fit for Banks, Fintech companies, and any organization that requires strict data confidentiality and security.
- Update JiRack model for corp privacy coding.
JiRack Tokenizer Subcription
- All subscribed members will receive regular tokenizer updates optimized for the latest high-quality coding datasets.
Open Robot platform
- Tiangong : https://english.www.gov.cn/english.www.gov.cn/news/202411/13/content_WS673406e2c6d0868f4e8ece33.html
- Unitree g1 https://a.co/d/0e4A8YVc
- LimX Oli https://www.limxdynamics.com/en/products/oli?channel=option_google_advertising__c-
- ubtrobot https://www.ubtrobot.com/en/
- x-humanoid https://www.x-humanoid.com/detail/hskw.html
ROBOS HUMANOID Project
Robot dataset example
{"messages":[{"role":"system","content":"You are the robot's brain. Use tags and . ROBOTICS"},{"role":"user","content":"Scene: a table in front of me, with a red mug on it. Command: pick up the mug."},{"role":"assistant","content":"reach(x=0.4,y=0.0,z=0.3)"}]}
{"messages":[{"role":"system","content":"You are the robot's brain. Use tags and .ROBOTICS"},{"role":"user","content":"Scene: hand near the mug, distance 2 cm. Command: grasp."},{"role":"assistant","content":"grasp(force=60)"}]}
{"messages":[{"role":"system","content":"You are the robot's brain. Use tags and . ROBOTICS"},{"role":"user","content":"Scene: mug in hand, stable. Command: lift 20 cm."},{"role":"assistant","content":"lift(z=0.2)"}]}
{
"messages": [
{
"role": "system",
"content": "You are a robot. Use tags and . ROBOTICS"
},
{
"role": "user",
"content": "Scene: a table in front of me, with a red mug on it. Command: pick up the mug."
},
{
"role": "assistant",
"content": "reach(x=0.4,y=0.0,z=0.3)"
}
]
}
Version 2 (current): tags in Llama 3 reserved slots
Since commit dd9c19ba all tags are placed into the Llama 3 reserved special-token slots instead of being appended
after the vocabulary. The vocabulary stays at 128,256 β exactly the Llama 3 embedding size, so any Llama 3 model
loads it without resize_token_embeddings.
| IDs | Tokens |
|---|---|
| 128141 β 128146 | multimodal: <|image|> β¦ <|vision|> |
| 128147 β 128150 | mood: <|mood_happy|> β¦ <|mood_neutral|> |
| 128151 β 128153 | FIM: <fim_prefix>, <fim_middle>, <fim_suffix> |
| 128154 β 128198 | robotics: <|action_start|> β¦ <|control_loop|> |
| 128199 β 128249 | RAG routing: __SCIENCE__ β¦ __HOBBY__ |
| 128250 / 128251 | <think> / </think> |
| 128252 / 128253 | <tool_call> / </tool_call> |
| 128254 / 128255 | <tool_response> / </tool_response> |
Used by Llama3Ternary 2B (CMSManhattan/Llama3TernaryPro_2b).
The previous version (vocab 128,365, tags appended at IDs 128256+, needs resize_token_embeddings) is still
available as revision 703ce8f1:
tok = AutoTokenizer.from_pretrained("CMSManhattan/LlamaRoboticsTokenizer", revision="703ce8f1")
Key Features
- Algorithm: Byte-Level BPE
- Vocabulary Size: 128,256 tokens β excellent balance between precision and efficiency
- Multilingual & Technical Strength: Optimized for English, Russian, code, scientific literature, and technical documentation
- Domain Specialization: Strong performance on programming languages, engineering, robotics, and scientific texts
Special Tokens Support
- Full Llama3 compatible format dialogue format
- FIM (Fill-in-the-Middle) support for code generation
- Rich set of domain routing tokens (
__CODING__,__PYTHON__,__ROBOTICS__,__SCIENCE__, etc.) - Extended robotics and control tokens
CMS Manhattan Service & Support
- Jirack patent guards your technology for competitors
- Redesign Llama , Qwen , Gemma to Ternary model
- Re-tain and replace embeddings for Llama , Qwen , Gemma to extend langeages to 347
- Accelerate inference via high compression 256K tokenizer and replace multiplication with sum operations via Ternary weights
Install for Llamma compatible models in your chat script
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(your model)
Version 2: no resize needed for Llama 3 models (vocab 128256). Only for the old revision 703ce8f1:
model.resize_token_embeddings(len(tokenizer))
print("Embedding size:", model.get_input_embeddings().weight.shape[0])
Tesr Tokenizer size !
(venv_ji) root@jirack2:# python -c ' from transformers import AutoTokenizer tok = AutoTokenizer.from_pretrained("CMSManhattan/LlamaRoboticsTokenizer") print("Vocab size:", len(tok)) print("bos_token_id:", tok.bos_token_id) print("eos_token_id:", tok.eos_token_id) print(":", tok.convert_tokens_to_ids("")) '
Vocab size: 128256 bos_token_id: 128000 eos_token_id: 128009 : 128252
π§ Contact & Licensing
For joint ventures, hardware integration, or licensing inquiries:
- Email: grabko@cmsmanhattan.com
- Phone: +1 (516) 777-0945
- Location: New York, USA