karpathy / minbpeLinks
Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
☆10,242Updated last year
Alternatives and similar repositories for minbpe
Users that are interested in minbpe are comparing it to the libraries listed below
Sorting:
- Video+code lecture on building nanoGPT from scratch☆4,648Updated last year
- llama3 implementation one matrix multiplication at a time☆15,219Updated last year
- ☆4,110Updated last year
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,171Updated 4 months ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,071Updated last week
- Inference Llama 2 in one file of pure C☆19,089Updated last year
- PyTorch native post-training library☆5,646Updated this week
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,859Updated last year
- LLM training in simple, raw C/CUDA☆28,559Updated 6 months ago
- The official PyTorch implementation of Google's Gemma models☆5,589Updated 7 months ago
- Go ahead and axolotl questions☆11,024Updated this week
- An autoregressive character-level language model for making more things☆3,553Updated last year
- NanoGPT (124M) in 3 minutes☆4,085Updated this week
- Robust recipes to align language models with human and AI preferences☆5,466Updated 4 months ago
- A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API☆14,206Updated last year
- ☆4,449Updated last year
- Modeling, training, eval, and inference code for OLMo☆6,266Updated last month
- Tools for merging pretrained large language models.☆6,647Updated 3 weeks ago
- ☆3,056Updated last month
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆23,250Updated last year
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,807Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆51,606Updated last month
- Train transformer language models with reinforcement learning.☆16,844Updated this week
- A PyTorch native platform for training generative AI models☆4,924Updated this week
- lightweight, standalone C++ inference engine for Google's Gemma models.☆6,663Updated this week
- Efficient Triton Kernels for LLM Training☆6,002Updated this week
- A framework for few-shot evaluation of language models.☆11,069Updated 2 weeks ago
- Fast and memory-efficient exact attention☆21,401Updated last week
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,093Updated 6 months ago
- Accessible large language models via k-bit quantization for PyTorch.☆7,867Updated 3 weeks ago