SentencePiece Lite ships: 50KB binary, 20-30x faster tokenization for edge devices
heiga_zen · x · 2026-09-16
Taku Kudo released SentencePiece Lite Runtime, a zero-dependency C++ tokenizer (50KB binary, <2k LOC) that runs Unigram/BPE directly on memory-mapped FlatBuffers models, achieving zero-copy startup, 20-30x faster throughput and far fewer heap allocations. It retains normalization, byte fallback, stochastic sampling and offset tracking with 100% compatibility, ships as a single .cc amalgamation, and will become SentencePiece's next-gen core engine.
More from Infra
- Palmer Luckey asks: can you use datacenter RAM for things prohibited by the operator's terms of service? — avaitopiper · 2026-11-02
- Disable MTP for 20-30% faster local LLM inference on limited RAM — InternalMode8159 · 2026-11-02
- Kioxia up 216% in a year but down 68% from its June 2026 peak — zephyr_z9 · 2026-11-02
- Intel plunges 29%, worst day since the 1970s, wiping $12B off US government stake — emmanuelvivier · 2026-11-02
- Researcher hoards nearly 1TB of DRAM, refuses to sell a stick to data centers — kevinnbass · 2026-11-02
- Self-Hosting LLMs at a Law Firm: Infra and Data Governance Harder Than the Model — EducationalGroup7245 · 2026-11-02