Mesosfer v2 Tokenizer (96K)

Custom BPE tokenizer (vocab_size = 98,304) trained with rustbpe (tiktoken-compatible) for the Mesosfer v2 (d24 3.36B) bilingual English + Indonesian, code, cybersecurity, and reasoning foundation model.

Overview

  • Vocabulary Size: 98,304 (96 * 1024, 256 byte tokens + 98,037 BPE merges + 11 special tokens)
  • Format: tokenizer.pkl (serialized tiktoken.Encoding) + token_bytes.pt (UTF-8 byte length lookup table for BPB evaluation)
  • Training Corpus: 2B characters sampled from the balanced 40.2B-token Mesosfer v2 pretraining mix:
    • 50% General (English + Indonesian)
    • 25% Code
    • 15% Cybersecurity
    • 10% Reasoning / Math

Special Tokens (11)

Token ID
`< bos
`< user_start
`< user_end
`< assistant_start
`< assistant_end
`< think_start
`< think_end
`< output_start
`< output_end
`< tool_start
`< tool_end

Usage

Download directly into Mesosfer's default tokenizer cache directory:

hf download Dummy9898/mesosfer-v2-tokenizer-96k --local-dir ~/.cache/mesosfer/tokenizer

Or load with Python inside the Mesosfer repository:

from mesosfer.data.tokenizer import RustBPETokenizer

tok = RustBPETokenizer.from_directory("~/.cache/mesosfer/tokenizer")
ids = tok.encode("Hello Mesosfer!")
print(tok.decode(ids))
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support