Llama from scratch, or How to implement a paper without crying
☆584May 29, 2024Updated last year
Alternatives and similar repositories for llama-from-scratch
Users that are interested in llama-from-scratch are comparing it to the libraries listed below
Sorting:
- llama3 implementation one matrix multiplication at a time☆15,242May 23, 2024Updated last year
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,896May 3, 2024Updated last year
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,347Jul 1, 2024Updated last year
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆790Oct 30, 2024Updated last year
- Modeling, training, eval, and inference code for OLMo☆6,353Nov 24, 2025Updated 3 months ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,206Updated this week
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆54,071Nov 12, 2025Updated 3 months ago
- Inference Llama 2 in one file of pure C☆19,213Aug 6, 2024Updated last year
- Official inference library for Mistral models☆10,690Feb 26, 2026Updated last week
- NanoGPT (124M) in 2 minutes☆4,734Feb 27, 2026Updated last week
- AllenAI's post-training codebase☆3,605Updated this week
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,452Apr 24, 2023Updated 2 years ago
- LLM training in simple, raw C/CUDA☆28,993Jun 26, 2025Updated 8 months ago
- Simple repository for training small reasoning models☆49Feb 17, 2026Updated 2 weeks ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆20,717Updated this week
- Structured Outputs☆13,488Updated this week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,184Aug 22, 2025Updated 6 months ago
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆87,151Updated this week
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 2 years ago
- A sample pattern for running CI tests on Modal☆19Apr 12, 2025Updated 10 months ago
- Machine Learning Engineering Open Book☆17,286Feb 21, 2026Updated 2 weeks ago
- Go ahead and axolotl questions☆11,395Updated this week
- Explanation to key concepts in ML☆8,532Jun 30, 2025Updated 8 months 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,234Updated this week
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 2 years ago
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,843Jun 10, 2024Updated last year
- llama3.np is a pure NumPy implementation for Llama 3 model.☆993Apr 27, 2025Updated 10 months ago
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,754Jul 18, 2025Updated 7 months ago
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,082Jul 1, 2025Updated 8 months ago
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆75,865Feb 5, 2026Updated last month
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆23,746Aug 15, 2024Updated last year
- A high-throughput and memory-efficient inference and serving engine for LLMs☆71,883Updated this week
- Robust recipes to align language models with human and AI preferences☆5,510Sep 8, 2025Updated 5 months ago
- 🍼 Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models (BabyLM Challenge)☆17Jan 10, 2025Updated last year
- ☆18Feb 7, 2021Updated 5 years ago
- Serving Example of CodeGen-350M-Mono-GPTJ on Triton Inference Server with Docker and Kubernetes☆20May 30, 2023Updated 2 years ago
- [ICLR 2024] Fine-tuning LLaMA to follow Instructions within 1 Hour and 1.2M Parameters☆5,933Mar 14, 2024Updated last year
- A guidance language for controlling large language models.☆21,327Feb 13, 2026Updated 3 weeks ago
- SGLang is a high-performance serving framework for large language models and multimodal models.☆23,905Updated this week