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,224May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆9,019May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,622Nov 24, 2025Updated 8 months ago
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,675Jul 1, 2024Updated 2 years ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆811Oct 30, 2024Updated 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.
- Training and Fine-tuning an llm in Python and PyTorch.☆43Aug 30, 2023Updated 2 years ago
- Building a 2.3M-parameter LLM from scratch with LLaMA 1 architecture.☆214May 12, 2024Updated 2 years ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,610Jul 20, 2026Updated 3 weeks ago
- Inference Llama 2 in one file of pure C☆19,958Aug 6, 2024Updated 2 years ago
- NanoGPT (124M) in 90 seconds☆5,658Updated this week
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,522Updated 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,005Nov 12, 2025Updated 8 months ago
- AllenAI's post-training codebase☆3,826Updated this week
- 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.
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,244Aug 22, 2025Updated 11 months ago
- LLM training in simple, raw C/CUDA☆30,771Jun 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,838Jun 16, 2026Updated last month
- Machine Learning Engineering Open Book☆18,575Updated this week
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 3 years ago
- [ACL 2024] Novel reranking method to select the best solutions for code generation☆16Jun 9, 2024Updated 2 years ago
- LLM training code for Databricks foundation models☆4,437Mar 25, 2026Updated 4 months ago
- Explanation to key concepts in ML☆8,588Jun 30, 2025Updated last year
- 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.
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,473Apr 24, 2023Updated 3 years ago
- Experiments on speculative sampling with Llama models☆129Jun 8, 2023Updated 3 years ago
- 🍼 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,556May 19, 2026Updated 2 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,787Aug 15, 2024Updated last year
- 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,086Jul 1, 2025Updated last year
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- Robust recipes to align language models with human and AI preferences☆5,657May 26, 2026Updated 2 months ago
- Simple repository for training small reasoning models☆51Updated this week
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,985Jun 10, 2024Updated 2 years ago
- Go ahead and axolotl questions☆12,332Updated this week
- A minimum example of aligning language models with RLHF similar to ChatGPT☆226Sep 26, 2023Updated 2 years ago
- What would you do with 1000 H100s...☆1,188Jan 10, 2024Updated 2 years ago
- Structured Outputs☆15,560Updated this week