Downloads · 30 days
31
45% of all-time downloads
ArminBurkhardt/DeepSeek-V4-Pro-tokenizer-65536
DeepSeek-V4-Pro-tokenizer-65536 is a machine learning model from ArminBurkhardt. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Compact remap of DeepSeek-V4-Pro's tokenizer down to a 65,536-entry vocab (fits uint16), for smaller embedding tables.
Downloads · 30 days
31
45% of all-time downloads
All-time downloads
69
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json3.2 MB · 99%
From the Hugging Face model README
Compact remap of DeepSeek-V4-Pro's tokenizer down to a 65,536-entry vocab (fits uint16), for smaller embedding tables.
tokenizer.json: BPE model, vocab + merges, pre/post-processing, added tokens.tokenizer_config.json: HF PreTrainedTokenizerFast config (special token strings, no auto BOS/EOS).config.json: full DeepSeek-V4 model config (architecture, MoE, MLA, YaRN RoPE, FP8 quant) : reference only, not part of tokenizer itself.chat_template.jinja: chat prompt template.id_remap.json: old-id → new-id mapping (65,536 entries) used to build this compact vocab from the original.\p{N}{1,3} digit split + CJK isolation + GPT-style punctuation/word split.<|place▁holder▁no▁N|> filling unused ids)| id | token |
|---|---|
| 0 | <|begin▁of▁sentence|> (BOS) |
| 1 | <|end▁of▁sentence|> (EOS / PAD) |
| 2 | <|▁pad▁|> |
| 65102 | <|end_of_query|> |
| 65518/65519 | <|rl_image_pad|> / <|rl_image_start|> |
| 65527–65535 | vision/grounding tags: <|polygon|>, <|point|>, <|box|>, <|ref|>, <|image|> (open/close pairs) |
| 64256 | <think> (repurposed placeholder) |
| 64257 | </think> (repurposed placeholder) |
add_bos_token / add_eos_token are both false, the caller must add them explicitly.
Two previously-unused placeholder ids were repurposed as reasoning-trace delimiters:
64256: <|place▁holder▁no▁0|> → <think>64257: <|place▁holder▁no▁1|> → </think>Changed in tokenizer.json (added_tokens entries) and tokenizer_config.json (added_tokens_decoder + additional_special_tokens). These ids were not part of model.vocab/merges, so the base BPE vocab is untouched — only the added-token layer changed. chat_template.jinja was not modified; wrap reasoning content in <think>...</think> manually or update the template if the chat format should emit it automatically.
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("<this dir>")
tok.encode("hello world")
id_remap.json documents provenance only; not needed at inference time; tokenizer.json is self-contained.