EveryDev.ai
Subscribe
Home
Tools

3,277+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2189
  • Coding1574
  • Infrastructure698
  • Marketing534
  • Projects498
  • Research456
  • Design416
  • Analytics389
  • Testing296
  • MCP290
  • Security286
  • Data262
  • Integration197
  • Prompts189
  • Communication183
  • Extensions173
  • Learning170
  • Voice151
  • Commerce135
  • DevOps123
  • Web86
  • Finance26
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. Gigatoken
    Gigatoken icon

    Gigatoken

    AI Development Libraries
    Featured

    An open-source Python library that tokenizes language model text data at GB/s speeds, claiming up to ~1000x faster throughput than HuggingFace tokenizers, with drop-in compatibility.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open-source under the MIT License. Install via pip and use without restrictions.

    Engagement

    Available On

    Windows
    macOS
    API
    SDK
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    AI Development LibrariesAI InfrastructureData Processing

    Alternatives

    DaftBambooAIscikit-learn
    Developer
    Marcel RødMarcel Rød builds high-performance systems software for mach…

    Listed Jul 2026

    About Gigatoken

    Gigatoken is an open-source tokenization library for language models, written primarily in Rust and published under the MIT License by Marcel Rød. It installs via pip install gigatoken and offers both a native API and drop-in compatibility modes for HuggingFace Tokenizers and tiktoken. The project has accumulated over 3,400 GitHub stars since its creation in November 2025.

    What It Is

    Gigatoken is a high-performance byte-pair encoding (BPE) tokenizer designed to replace the tokenization step in LLM training and data preprocessing pipelines. It targets the CPU-bound bottleneck of pretokenization — the regex-heavy step that splits raw text before BPE merges — and replaces it with a custom SIMD-accelerated implementation. The result is a library that processes text at gigabytes per second rather than megabytes per second, while producing outputs that match HuggingFace Tokenizers exactly in compatibility mode.

    How the Speed Is Achieved

    The README describes three main sources of speedup:

    • SIMD pretokenization: The regex-based pretokenizer used by nearly all tokenizers is replaced with a hand-optimized SIMD implementation (AVX-512, AVX2, and NEON), eliminating the regex engine overhead entirely.
    • Pretoken caching: A heavily optimized cache maps previously seen words to their encoded tokens. Because pretoken distributions are long-tailed, cache hit rates are high, and the cache hierarchy is tuned to minimize lookup cost as the cache grows.
    • Minimized Python and thread overhead: The Rust implementation reads file data directly, avoids unnecessary Python object creation, and uses concurrent data structures to maximize parallelism without inter-thread communication.

    Benchmark Results

    The project publishes detailed throughput numbers across three CPU platforms on an 11.9 GB OpenWebText file. On a dual-socket AMD EPYC 9565 (144 cores), Gigatoken encodes GPT-2 tokens at 24.53 GB/s versus 24.8 MB/s for HuggingFace tokenizers — a 989× speedup. On an Apple M4 Max (16 cores), the same comparison yields 8.79 GB/s versus 6.9 MB/s (1,268×). On an AMD Ryzen 7 9800X3D (16 cores), GPT-2 reaches 6.27 GB/s versus 59.0 MB/s (106×). The library supports a wide range of modern tokenizers including GPT-2, Llama 3/3.1/3.2/3.3/4, Qwen 2/3, DeepSeek V3/R1, Phi-4, Gemma, GLM, Kimi K2, and more.

    Supported Tokenizers and Compatibility

    Gigatoken accepts HuggingFace model names directly (e.g., gt.Tokenizer("Qwen/Qwen3-8B")) and wraps existing HuggingFace or tiktoken tokenizer objects. In compatibility mode, outputs are validated to match HuggingFace Tokenizers exactly. The native encode_files API allows the Rust layer to read files directly for maximum throughput. Known limitations include no WordPiece support, limited optimization for SentencePiece-based tokenizers (used by Gemma and BERT-style models), and limited Windows testing (WSL recommended).

    Current Status and Known Issues

    The repository was created in November 2025 and was last pushed in July 2026, indicating active development. The project is tagged with topics: llm, nlp, tokenization, tokenizer. The author notes several open issues and planned improvements, including Python version-specific ABI specialization (expected to yield ~2× additional speedup for overhead-bound cases), file sink support in the native API, and broader WordPiece support. SentencePiece optimization is explicitly marked as low priority. The project can be tested without installation using uvx gigatoken bench against any HuggingFace model repo.

    Gigatoken - 1

    Community Discussions

    Be the first to start a conversation about Gigatoken

    Share your experience with Gigatoken, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open-source under the MIT License. Install via pip and use without restrictions.

    • Full tokenization library
    • HuggingFace and tiktoken compatibility modes
    • Native file-reading API
    • CLI benchmarking tool
    • SIMD-accelerated pretokenization

    Capabilities

    Key Features

    • Up to ~1000x faster tokenization than HuggingFace tokenizers
    • Drop-in compatibility with HuggingFace Tokenizers and tiktoken APIs
    • SIMD-accelerated pretokenization (AVX-512, AVX2, NEON)
    • Pretoken caching for long-tailed token distributions
    • Native file-reading API for maximum throughput
    • Supports GPT-2, Llama 3/4, Qwen 2/3, DeepSeek, Phi-4, Gemma, GLM, Kimi K2, and more
    • Multithreaded Rust implementation with minimal Python overhead
    • CLI benchmarking tool via uvx
    • Exact output matching with HuggingFace Tokenizers in compatibility mode
    • Supports modern x86 and ARM CPUs

    Integrations

    HuggingFace Tokenizers
    tiktoken
    Python
    Rust
    pip
    uvx
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Gigatoken and help others make informed decisions.

    Developer

    Marcel Rød

    Marcel Rød builds high-performance systems software for machine learning infrastructure. He created Gigatoken, a Rust-based tokenization library that achieves GB/s throughput through SIMD optimization and custom caching strategies. The project is open-source under the MIT License and actively maintained on GitHub.

    Read more about Marcel Rød
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    Daft icon

    Daft

    Open-source, high-performance data engine for AI and multimodal workloads, enabling processing of images, audio, video, and structured data at any scale using a Python dataframe API.

    BambooAI icon

    BambooAI

    An open-source Python library that enables natural language-based conversational data analysis using Large Language Models, supporting both local datasets and external data sources.

    scikit-learn icon

    scikit-learn

    An open-source Python library providing simple and efficient tools for predictive data analysis, including classification, regression, clustering, and more.

    Browse all tools

    Related Topics

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    263 tools

    AI Infrastructure

    Infrastructure designed for deploying and running AI models.

    321 tools

    Data Processing

    AI-enhanced ETL (Extract, Transform, Load) tools and data pipelines that automate the processing, cleaning, and transformation of large datasets with intelligent optimizations.

    127 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions