Llama from scratch, or How to implement a paper without crying
☆581May 29, 2024Updated 2 years ago
Alternatives and similar repositories for llama-from-scratch
Users that are interested in llama-from-scratch are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- llama3 implementation one matrix multiplication at a time☆15,219May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆9,020May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,669Nov 24, 2025Updated 9 months ago
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,710Jul 1, 2024Updated 2 years ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆814Oct 30, 2024Updated last year
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Training and Fine-tuning an llm in Python and PyTorch.☆43Aug 30, 2023Updated 3 years ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,654Updated this week
- Inference Llama 2 in one file of pure C☆20,059Aug 6, 2024Updated 2 years ago
- NanoGPT (124M) in 90 seconds☆5,764Aug 9, 2026Updated 3 weeks ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,641Updated this week
- Just collections of notebooks playing around diffusion models.☆13Nov 20, 2022Updated 3 years ago
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆62,848Nov 12, 2025Updated 9 months ago
- AllenAI's post-training codebase☆3,858Updated this week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,254Aug 22, 2025Updated last year
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- LLM training in simple, raw C/CUDA☆30,938Jun 26, 2025Updated last year
- llama3.np is a pure NumPy implementation for Llama 3 model.☆993Apr 27, 2025Updated last year
- Official inference library for Mistral models☆10,830Jun 16, 2026Updated 2 months ago
- Machine Learning Engineering Open Book☆18,928Updated this week
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 3 years ago
- LLM training code for Databricks foundation models☆4,443Mar 25, 2026Updated 5 months ago
- Explanation to key concepts in ML☆8,597Jun 30, 2025Updated last year
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,471Apr 24, 2023Updated 3 years ago
- Experiments on speculative sampling with Llama models☆129Jun 8, 2023Updated 3 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- 🍼 Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models [BabyLM Challenge]☆17Jan 10, 2025Updated last year
- 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,558May 19, 2026Updated 3 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,865Aug 15, 2024Updated 2 years ago
- Nano Prot GPT: NanoGPT on protein sequences☆20Mar 10, 2023Updated 3 years ago
- An implementation of the base GPT-3 Model architecture from the paper by OPENAI "Language Models are Few-Shot Learners"☆22Jun 29, 2024Updated 2 years ago
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,084Jul 1, 2025Updated last year
- Robust recipes to align language models with human and AI preferences☆5,674May 26, 2026Updated 3 months ago
- Simple repository for training small reasoning models☆51Aug 4, 2026Updated last month
- Serverless GPU API endpoints on Runpod - Get Bonus Credits • AdSkip the infrastructure headaches. Auto-scaling, pay-as-you-go, no-ops approach lets you focus on innovating your application.
- QLoRA: Efficient Finetuning of Quantized LLMs☆11,009Jun 10, 2024Updated 2 years ago
- Go ahead and axolotl questions☆12,448Updated this week
- What would you do with 1000 H100s...☆1,194Jan 10, 2024Updated 2 years ago
- Structured Outputs☆15,759Updated this week
- [ICLR 2024] Fine-tuning LLaMA to follow Instructions within 1 Hour and 1.2M Parameters☆5,914Mar 14, 2024Updated 2 years ago
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,764Jul 18, 2025Updated last year
- Minimalistic large language model 3D-parallelism training☆2,811May 26, 2026Updated 3 months ago