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.
Hot right now
Most stars gained in a day · Dec 1
+87lm-detector
Ikaleio/lm-detector · ★ 2.3KLM 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.
+21nanochat
karpathy/nanochat · ★ 61KA 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.
+10train-llm-from-scratch
FareedKhan-dev/train-llm-from-scratch · ★ 13.3KA 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.
deepseek-recipe
deepseek-ai/deepseek-recipe · ★ 2.9Kdeepseek-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.
The all-time top
17 projects · by stars
- 61K
#1 · karpathy/nanochatnanochat
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.
- 36.5K
#2 · hankcs/HanLPHanLP
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.
- 34.1K
#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.
- 4

toon
25.7Ktoon-format/toon · TypeScriptTOON (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.
- 5
tiktoken
19.7Kopenai/tiktoken · Pythontiktoken is a fast byte pair encoding (BPE) tokenizer built for use with OpenAI's models, converting text into tokens and back again.
- 6

nltk
14.8Knltk/nltk · PythonNLTK is a suite of open source Python modules, bundled data sets, and tutorials supporting research and development in Natural Language Processing.
- 7

train-llm-from-scratch
13.3KFareedKhan-dev/train-llm-from-scratch · PythonA 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.
- 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.
- 9

minbpe
11.1Kkarpathy/minbpe · Pythonminbpe 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.
- 10
natural
10.9KNaturalNode/natural · JavaScriptNatural is a general-purpose natural language processing library for Node.js that bundles tokenizers, stemmers, classifiers and other NLP utilities into one package.
- 11
gigatoken
4.2Kmarcelroed/gigatoken · RustGigatoken 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.
- 12
deepseek-recipe
2.9Kdeepseek-ai/deepseek-recipe · Rustdeepseek-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.
- 13

lm-detector
2.3KIkaleio/lm-detector · TypeScriptLM 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.
- 14

non-fungible-agents-BAP-578
423ChatAndBuild/non-fungible-agents-BAP-578 · JavaScriptBAP-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.
- 15
manaca-1b-base
255Instituto-IA-LNCC/manaca-1b-base · PythonAn 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.
- 16

twinkleplop
248pngwn/twinkleplop · TypeScriptTwinkleplop 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.
- 17

qxotic
197qxoticai/qxotic · JavaQxotic 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.
Related topics
Often tagged together
- open-source5,458
- library1,339
- llm1,587
- mit3,168
- python2,382
- developer-tools2,874
- machine-learning766
- nlp170
- deep-learning581
- research691
- ai2,005
- gpu798
- large-language-models209
- linux4,252
- api1,043
- benchmark463
- cli2,314
- huggingface349
- macos3,655
- natural-language-processing73
- text-processing37
- apache-2.01,439
- artificial-intelligence234
- cross-platform2,650