Topics / #tokenization

Tokenization projects on GitHub

Text tokenization for NLP pipelines and model inputs.

As of , the most-starred Tokenization projects on GitHub are nanochat (61K stars), HanLP (36.5K stars) and spaCy (34.1K stars). GitHub.Locker tracks 17 Tokenization repositories with 249.8K stars combined. The fastest-growing on December 1 was lm-detector, with +87 stars in a day.

17Projects
249.8KStars in total
+158Stars in a day

Hot right now

Most stars gained in a day · Dec 1

The all-time top

17 projects · by stars

  1. #1 · karpathy/nanochat

    nanochat

    A minimal, hackable harness for training your own LLM end to end (tokenization, pretraining, finetuning, evaluation, inference) on a single GPU node, ending in a chatbot you talk to over a CLI.

    61K
  2. #2 · hankcs/HanLP

    HanLP

    HanLP is a production-oriented, multilingual NLP toolkit built on dual PyTorch/TensorFlow 2.x engines, supporting 130 languages with ten joint tasks such as tokenization, POS tagging, NER, dependency and constituency parsing, semantic role labeling, and text classification.

    36.5K
  3. #3 · explosion/spaCy

    spaCy

    spaCy is a library for advanced Natural Language Processing in Python and Cython, designed from day one for real products. It ships pretrained pipelines and supports tokenization and training for 70+ languages.

    34.1K
  1. 4

    toon

    25.7Ktoon-format/toon · TypeScript

    TOON (Token-Oriented Object Notation) is a compact, human-readable way to serialize JSON data so it spends fewer tokens in LLM prompts. The repo ships a TypeScript SDK, a CLI, and benchmarks.

  2. 5

    tiktoken

    19.7Kopenai/tiktoken · Python

    tiktoken is a fast byte pair encoding (BPE) tokenizer built for use with OpenAI's models, converting text into tokens and back again.

  3. 6

    nltk

    14.8Knltk/nltk · Python

    NLTK is a suite of open source Python modules, bundled data sets, and tutorials supporting research and development in Natural Language Processing.

  4. 7

    train-llm-from-scratch

    13.3KFareedKhan-dev/train-llm-from-scratch · Python

    A from-scratch tutorial and codebase for training your own LLM end to end: tokenizing raw text, pretraining a GPT-style Transformer, and then post-training it with SFT, a reward model, DPO/ORPO/KTO, PPO and GRPO into an aligned, reasoning-style assistant.

  5. 8

    sentencepiece

    12.2Kgoogle/sentencepiece · C++

    SentencePiece is a fast, lightweight, unsupervised text tokenizer and detokenizer built for neural-network text generation systems like LLMs, where vocabulary size is fixed before training. It implements BPE and the unigram language model as subword units and trains directly from raw sentences.

  6. 9

    minbpe

    11.1Kkarpathy/minbpe · Python

    minbpe is a minimal, clean implementation of the Byte Pair Encoding (BPE) algorithm that modern LLMs like GPT, Llama and Mistral use to train their tokenizers.

  7. 10

    natural

    10.9KNaturalNode/natural · JavaScript

    Natural is a general-purpose natural language processing library for Node.js that bundles tokenizers, stemmers, classifiers and other NLP utilities into one package.

  8. 11

    gigatoken

    4.2Kmarcelroed/gigatoken · Rust

    Gigatoken is an extremely fast tokenizer for language models, built as a near drop-in replacement for HuggingFace Tokenizers and tiktoken, encoding text at multi-GB/s speeds.

  9. 12

    deepseek-recipe

    2.9Kdeepseek-ai/deepseek-recipe · Rust

    deepseek-recipe is a set of Rust libraries (with Python bindings) that convert API requests in different formats into DeepSeek's internal Conversation format, render that into prompts, encode conversations into token IDs, and convert model output back into responses matching the original request format.

  10. 13

    lm-detector

    2.3KIkaleio/lm-detector · TypeScript

    LM Fingerpoint Detector figures out which large language model is really answering behind an API by asking it to write about 300 random integers between 1 and 355, then comparing the statistical pattern of those numbers against a reference bank of known models (GPT, Claude, Gemini, Grok, Qwen, DeepSeek, etc.) to find the closest match.

  11. 14

    non-fungible-agents-BAP-578

    423ChatAndBuild/non-fungible-agents-BAP-578 · JavaScript

    BAP-578 is a Non-Fungible Agent (NFA) token standard for BNB Chain: programmable, autonomous tokens that act as on-chain agents capable of executing tasks, maintaining state, and optionally learning and evolving over time.

  12. 15

    manaca-1b-base

    255Instituto-IA-LNCC/manaca-1b-base · Python

    An open ~1.72B-parameter language model trained from scratch for Brazilian Portuguese. The repo holds the whole reproducible pipeline: Docker environment, corpus pipeline, tokenizer training, Megatron-LM pretraining, and a Portuguese benchmark suite.

  13. 16

    twinkleplop

    248pngwn/twinkleplop · TypeScript

    Twinkleplop is a small, fast syntax highlighter and code authoring toolkit for the web: you install just the languages you need, generate HTML or tokens from your code, and style the output with CSS.

  14. 17

    qxotic

    197qxoticai/qxotic · Java

    Qxotic is an open-source AI stack built specifically for the JVM, giving Java applications local AI inference — chat, vision, audio, embeddings, reranking and text-to-speech — without needing Python or ONNX.

Often tagged together