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☆29,054Jun 26, 2025Updated 8 months ago
- llama3 implementation one matrix multiplication at a time☆15,242May 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,232Aug 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,432Aug 1, 2024Updated last year
- tiktoken is a fast BPE tokeniser for use with OpenAI's models.☆17,473Feb 8, 2026Updated last month
- 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,206Mar 1, 2026Updated last week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,185Aug 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,353Nov 24, 2025Updated 3 months ago
- Train transformer language models with reinforcement learning.☆17,523Updated this week
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,902May 3, 2024Updated last year
- PyTorch native post-training library☆5,697Updated this week
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆23,845Aug 15, 2024Updated last year
- Official inference library for Mistral models☆10,690Feb 26, 2026Updated last 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,234Updated this week
- 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☆87,151Updated this 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,776Aug 13, 2024Updated last year
- DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.☆41,759Updated 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,223Updated this week
- Tools for merging pretrained large language models.☆6,826Feb 28, 2026Updated last week
- LLM inference in C/C++☆96,322Mar 2, 2026Updated last week
- SGLang is a high-performance serving framework for large language models and multimodal models.☆24,216Updated 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,286Feb 21, 2026Updated 2 weeks ago
- [ICLR 2024] Efficient Streaming Language Models with Attention Sinks☆7,196Jul 11, 2024Updated last year
- lightweight, standalone C++ inference engine for Google's Gemma models.☆6,742Mar 2, 2026Updated last week
- Robust recipes to align language models with human and AI preferences☆5,510Sep 8, 2025Updated 6 months ago
- LlamaIndex is the leading document agent and OCR platform☆47,374Updated this week
- Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities☆22,030Jan 23, 2026Updated last month