karpathy / minbpe
Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
☆9,611Updated 10 months ago
Alternatives and similar repositories for minbpe:
Users that are interested in minbpe are comparing it to the libraries listed below
- Video+code lecture on building nanoGPT from scratch☆4,077Updated 8 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆5,940Updated 3 weeks ago
- PyTorch native post-training library☆5,138Updated this week
- llama3 implementation one matrix multiplication at a time☆14,909Updated 11 months ago
- ☆4,077Updated 11 months ago
- A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API☆11,745Updated 8 months ago
- LLM training in simple, raw C/CUDA☆26,483Updated 7 months ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆12,064Updated last week
- Large World Model -- Modeling Text and Video with Millions Context☆7,272Updated 6 months ago
- An autoregressive character-level language model for making more things☆3,042Updated 11 months ago
- Inference Llama 2 in one file of pure C☆18,321Updated 9 months ago
- Train transformer language models with reinforcement learning.☆13,559Updated this week
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆40,976Updated 4 months ago
- Tools for merging pretrained large language models.☆5,614Updated this week
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆21,817Updated 8 months ago
- A PyTorch native library for large-scale model training☆3,665Updated this week
- The official PyTorch implementation of Google's Gemma models☆5,430Updated last month
- [ICLR 2024] Efficient Streaming Language Models with Attention Sinks☆6,872Updated 9 months ago
- ☆3,944Updated last year
- Go ahead and axolotl questions☆9,258Updated this week
- LLM101n: Let's build a Storyteller☆33,358Updated 9 months ago
- MLX: An array framework for Apple silicon☆20,457Updated this week
- Fast and memory-efficient exact attention☆17,192Updated this week
- lightweight, standalone C++ inference engine for Google's Gemma models.☆6,370Updated last week
- Machine Learning Engineering Open Book☆13,590Updated this week
- nanoGPT style version of Llama 3.1☆1,361Updated 8 months ago
- NanoGPT (124M) in 3 minutes☆2,520Updated last week
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,463Updated last year
- Modeling, training, eval, and inference code for OLMo☆5,560Updated this week
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,052Updated 8 months ago