Back to directory

Gigatoken

A fast tokenizer for language models, written in Rust, that aims to match HuggingFace Tokenizers output while running at multi-gigabyte-per-second throughput.

Gigatoken

Gigatoken is a tokenizer for language modeling that supports a wide range of CPU hardware and most commonly used tokenizer formats, including compatibility modes for HuggingFace Tokenizers and Tiktoken. It can be used through its own API for maximum throughput or through a compatibility mode whose output closely matches HuggingFace Tokenizers, at some cost to performance.

Its own API lets the Rust implementation read text data directly from files, skipping much of the overhead of passing data through Python, and supports loading tokenizers by HuggingFace model name. Benchmarks in the README report encoding throughput across models such as GPT-2, Phi-4, GPT-OSS, Llama and Qwen, compared against HuggingFace tokenizers and Tiktoken on a multi-socket AMD EPYC server.

It installs as a Python package and is licensed under MIT.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.