karpathy / minbpe
Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
☆9,400Updated 7 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☆3,869Updated 6 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆5,784Updated 2 months ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆11,568Updated 2 weeks ago
- PyTorch native post-training library☆4,834Updated this week
- ☆4,058Updated 8 months ago
- The official PyTorch implementation of Google's Gemma models☆5,351Updated last month
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,242Updated 8 months ago
- Go ahead and axolotl questions☆8,620Updated this week
- Train transformer language models with reinforcement learning.☆11,688Updated this week
- llama3 implementation one matrix multiplication at a time☆14,134Updated 8 months ago
- Tools for merging pretrained large language models.☆5,249Updated last week
- A PyTorch native library for large model training☆3,300Updated this week
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,201Updated 9 months ago
- Examples in the MLX framework☆6,939Updated this week
- Modeling, training, eval, and inference code for OLMo☆5,173Updated this week
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,034Updated 5 months ago
- Inference Llama 2 in one file of pure C☆18,027Updated 6 months ago
- [ICLR 2024] Efficient Streaming Language Models with Attention Sinks☆6,792Updated 7 months ago
- Accessible large language models via k-bit quantization for PyTorch.☆6,658Updated this week
- Robust recipes to align language models with human and AI preferences☆4,994Updated 2 months ago
- SGLang is a fast serving framework for large language models and vision language models.☆9,679Updated this week
- MLX: An array framework for Apple silicon☆19,097Updated this week
- DSPy: The framework for programming—not prompting—language models☆21,882Updated this 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…☆16,206Updated this week
- Structured Text Generation☆10,702Updated this week
- tiktoken is a fast BPE tokeniser for use with OpenAI's models.☆13,406Updated this week
- A framework for few-shot evaluation of language models.☆7,825Updated this week
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆17,319Updated this week
- Fast and memory-efficient exact attention☆15,503Updated this week
- A high-throughput and memory-efficient inference and serving engine for LLMs☆38,093Updated this week