Tool
tiktoken
Fast BPE tokenizer library; reference for counting tokens in mixes.
How to use it
Count tokens with the target tokenizer, not a proxy, before setting mixing ratios.
Caveats
Different tokenizers inflate or shrink code token counts (indentation, identifiers); recount per tokenizer.
Related
- Apptainer: HPC container runtime that runs without root; needed on clusters like Berzelius where Docker is unavailable....
- DCLM (DataComp-LM): Framework and baselines for data curation experiments including fastText quality classifier filtering of web...
- Data-Juicer: One-stop data processing system with 100+ operators for text, code and multimodal data, including code...
- Docker (Moby): Container runtime standard for SWE task images; shares the host kernel so isolation is weaker than microVMs....
- Dolma toolkit: Ai2 data toolkit: fast Rust tagger/mixer, Bloom filter dedup and mixing used for OLMo...
- E2B: Open-source cloud sandboxes for agents (isolation technology not verified...
