Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
☆10,598Jul 1, 2024Updated 2 years ago
Alternatives and similar repositories for minbpe
Users that are interested in minbpe are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- llama3 implementation one matrix multiplication at a time☆15,222May 23, 2024Updated 2 years ago
- LLM training in simple, raw C/CUDA☆30,362Jun 26, 2025Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆60,304Nov 12, 2025Updated 7 months ago
- Inference Llama 2 in one file of pure C☆19,682Aug 6, 2024Updated last year
- Large World Model -- Modeling Text and Video with Millions Context☆7,423Oct 19, 2024Updated last year
- End-to-end encrypted email - Proton Mail • AdSpecial offer: 40% Off Yearly / 80% Off First Month. All Proton services are open source and independently audited for security.
- LLM101n: Let's build a Storyteller☆37,383Aug 1, 2024Updated last year
- tiktoken is a fast BPE tokeniser for use with OpenAI's models.☆18,627May 24, 2026Updated last month
- The official PyTorch implementation of Google's Gemma models☆5,703May 30, 2025Updated last year
- A high-throughput and memory-efficient inference and serving engine for LLMs☆84,877Updated this week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,224Aug 22, 2025Updated 10 months ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,449Jun 26, 2026Updated last week
- Fast and memory-efficient exact attention☆24,304Updated this week
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,628Aug 15, 2024Updated last year
- Modeling, training, eval, and inference code for OLMo☆6,559Nov 24, 2025Updated 7 months ago
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,999May 3, 2024Updated 2 years ago
- Train transformer language models with reinforcement learning.☆18,735Updated this week
- Video+code lecture on building nanoGPT from scratch☆5,318Aug 13, 2024Updated last year
- PyTorch native post-training library☆5,777Updated this week
- ☆4,120Apr 15, 2026Updated 2 months ago
- A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API☆16,483Aug 8, 2024Updated last year
- DSPy: The framework for programming—not prompting—language models☆35,605Jun 25, 2026Updated last week
- Official inference library for Mistral models☆10,823Jun 16, 2026Updated 2 weeks ago
- 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,378May 19, 2026Updated last month
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆98,270Jun 2, 2026Updated last month
- MLX: An array framework for Apple silicon☆27,375Updated this week
- Unsloth Studio is a web UI for training and running open models like Gemma 4, Qwen3.6, DeepSeek, gpt-oss locally.☆67,571Updated this week
- [NeurIPS'23 Oral] Visual Instruction Tuning (LLaVA) built towards GPT-4V level capabilities and beyond.☆24,896Aug 12, 2024Updated last year
- Inference code for Llama models☆59,475Jan 26, 2025Updated last year
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,337Updated this week
- LLM inference in C/C++☆118,422Updated this week
- DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.☆42,586Updated this week
- Tools for merging pretrained large language models.☆7,190Jun 17, 2026Updated 2 weeks ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Machine Learning Engineering Open Book☆18,203Updated this week
- Robust recipes to align language models with human and AI preferences☆5,623May 26, 2026Updated last month
- lightweight, standalone C++ inference engine for Google's Gemma models.☆6,971Updated this week
- SGLang is a high-performance serving framework for large language models and multimodal models.☆29,694Updated this week
- LlamaIndex is the leading document agent and OCR platform☆50,533Updated this week
- [ICLR 2024] Efficient Streaming Language Models with Attention Sinks☆7,239Jul 11, 2024Updated last year
- A PyTorch native platform for training generative AI models☆5,466Jun 26, 2026Updated last week