karpathy / minbpe
Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
☆9,195Updated 4 months ago
Related projects ⓘ
Alternatives and complementary repositories for minbpe
- ☆4,035Updated 5 months ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆10,734Updated last week
- PyTorch native finetuning library☆4,336Updated this week
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆7,919Updated 6 months ago
- Scripts for fine-tuning Meta Llama with composable FSDP & PEFT methods to cover single/multi-node GPUs. Supports default & custom dataset…☆15,222Updated this week
- llama3 implementation one matrix multiplication at a time☆13,741Updated 5 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆5,669Updated last month
- Tools for merging pretrained large language models.☆4,816Updated 2 weeks ago
- Supercharge Your LLM Application Evaluations 🚀☆7,261Updated this week
- Inference Llama 2 in one file of pure C☆17,476Updated 3 months ago
- Video+code lecture on building nanoGPT from scratch☆3,611Updated 3 months ago
- Go ahead and axolotl questions☆7,930Updated this week
- [EMNLP'23, ACL'24] To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV-Cache, which ach…☆4,653Updated this week
- Finetune Llama 3.2, Mistral, Phi, Qwen 2.5 & Gemma LLMs 2-5x faster with 80% less memory☆18,263Updated this week
- SGLang is a fast serving framework for large language models and vision language models.☆6,127Updated this week
- A high-throughput and memory-efficient inference and serving engine for LLMs☆30,423Updated this week
- The official PyTorch implementation of Google's Gemma models☆5,290Updated 3 months ago
- LLM training in simple, raw C/CUDA☆24,460Updated last month
- Large Language Model Text Generation Inference☆9,122Updated this week
- Train transformer language models with reinforcement learning.☆10,086Updated this week
- Machine Learning Engineering Open Book☆11,655Updated last week
- The n-gram Language Model☆1,342Updated 3 months ago
- Examples in the MLX framework☆6,235Updated last week
- A framework for few-shot evaluation of language models.☆6,990Updated this week
- tiktoken is a fast BPE tokeniser for use with OpenAI's models.☆12,427Updated last month
- A native PyTorch Library for large model training☆2,623Updated this week
- Official implementation for the paper: "Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering""☆3,639Updated 3 weeks ago
- Modeling, training, eval, and inference code for OLMo☆4,645Updated this week
- Unified Efficient Fine-Tuning of 100+ LLMs (ACL 2024)☆34,589Updated this week
- The paper list of the 86-page paper "The Rise and Potential of Large Language Model Based Agents: A Survey" by Zhiheng Xi et al.☆6,852Updated 3 months ago