Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
☆10,347Jul 1, 2024Updated last year
Alternatives and similar repositories for minbpe
Users that are interested in minbpe are comparing it to the libraries listed below
Sorting:
- LLM training in simple, raw C/CUDA☆28,993Jun 26, 2025Updated 8 months ago
- llama3 implementation one matrix multiplication at a time☆15,243May 23, 2024Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆54,071Nov 12, 2025Updated 3 months ago
- Inference Llama 2 in one file of pure C☆19,213Aug 6, 2024Updated last year
- Large World Model -- Modeling Text and Video with Millions Context☆7,399Oct 19, 2024Updated last year
- LLM101n: Let's build a Storyteller☆36,390Aug 1, 2024Updated last year
- tiktoken is a fast BPE tokeniser for use with OpenAI's models.☆17,384Feb 8, 2026Updated 3 weeks ago
- A high-throughput and memory-efficient inference and serving engine for LLMs☆71,883Updated this week
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,206Updated this week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,184Aug 22, 2025Updated 6 months ago
- Fast and memory-efficient exact attention☆22,460Updated this week
- The official PyTorch implementation of Google's Gemma models☆5,606May 30, 2025Updated 9 months ago
- Modeling, training, eval, and inference code for OLMo☆6,326Nov 24, 2025Updated 3 months ago
- Train transformer language models with reinforcement learning.☆17,460Feb 26, 2026Updated last week
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,896May 3, 2024Updated last year
- PyTorch native post-training library☆5,691Updated this week
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆23,746Aug 15, 2024Updated last year
- Official inference library for Mistral models☆10,690Updated this week
- Welcome to the Llama Cookbook! This is your go to guide for Building with Llama: Getting started with Inference, Fine-Tuning, RAG. We als…☆18,220Nov 3, 2025Updated 4 months ago
- DSPy: The framework for programming—not prompting—language models☆32,519Updated this week
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆86,149Feb 19, 2026Updated last week
- ☆4,110Jun 4, 2024Updated last year
- Fine-tuning & Reinforcement Learning for LLMs. 🦥 Train OpenAI gpt-oss, DeepSeek, Qwen, Llama, Gemma, TTS 2x faster with 70% less VRAM.☆53,029Updated this week
- [NeurIPS'23 Oral] Visual Instruction Tuning (LLaVA) built towards GPT-4V level capabilities and beyond.☆24,500Aug 12, 2024Updated last year
- Video+code lecture on building nanoGPT from scratch☆4,763Aug 13, 2024Updated last year
- DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.☆41,706Updated this week
- A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API☆14,842Aug 8, 2024Updated last year
- MLX: An array framework for Apple silicon☆24,066Feb 26, 2026Updated last week
- Tools for merging pretrained large language models.☆6,826Updated this week
- LLM inference in C/C++☆96,322Updated this week
- SGLang is a high-performance serving framework for large language models and multimodal models.☆23,905Updated this week
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆20,717Updated this week
- Inference code for Llama models☆59,183Jan 26, 2025Updated last year
- Machine Learning Engineering Open Book☆17,162Feb 21, 2026Updated last week
- [ICLR 2024] Efficient Streaming Language Models with Attention Sinks☆7,187Jul 11, 2024Updated last year
- lightweight, standalone C++ inference engine for Google's Gemma models.☆6,742Updated this week
- Robust recipes to align language models with human and AI preferences☆5,510Sep 8, 2025Updated 5 months ago
- LlamaIndex is the leading document agent and OCR platform☆47,210Feb 26, 2026Updated last week
- Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities☆22,030Jan 23, 2026Updated last month