Llama from scratch, or How to implement a paper without crying
☆582May 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,207May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆9,013May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,688Nov 24, 2025Updated 10 months ago
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,751Jul 1, 2024Updated 2 years ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆818Oct 30, 2024Updated last year
- Open source password manager - Proton Pass • AdSecurely store, share, and autofill your credentials with Proton Pass, the end-to-end encrypted password manager trusted by millions.
- 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,690Sep 14, 2026Updated 2 weeks ago
- Inference Llama 2 in one file of pure C☆20,141Aug 6, 2024Updated 2 years ago
- NanoGPT (124M) in 90 seconds☆5,895Updated this week
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,748Updated this week
- ☆14Mar 16, 2023Updated 3 years ago
- Just collections of notebooks playing around diffusion models.☆13Nov 20, 2022Updated 3 years ago
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆63,498Nov 12, 2025Updated 10 months ago
- AllenAI's post-training codebase☆3,880Updated this week
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,259Aug 22, 2025Updated last year
- LLM training in simple, raw C/CUDA☆31,085Jun 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,821Jun 16, 2026Updated 3 months ago
- Machine Learning Engineering Open Book☆19,080Updated this week
- implement minimal pytorch from scratch☆22Apr 5, 2021Updated 5 years ago
- 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,448Mar 25, 2026Updated 6 months ago
- Explanation to key concepts in ML☆8,841Jun 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
- [🍼 BabyLM Challenge] Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models☆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,560May 19, 2026Updated 4 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,921Aug 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,082Jul 1, 2025Updated last year
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Robust recipes to align language models with human and AI preferences☆5,685Sep 23, 2026Updated last week
- Simple repository for training small reasoning models☆51Aug 4, 2026Updated last month
- QLoRA: Efficient Finetuning of Quantized LLMs☆11,030Jun 10, 2024Updated 2 years ago
- Go ahead and axolotl questions☆12,512Updated this week
- A minimum example of aligning language models with RLHF similar to ChatGPT☆226Sep 26, 2023Updated 3 years ago
- What would you do with 1000 H100s...☆1,196Jan 10, 2024Updated 2 years ago
- Structured Outputs☆15,895Sep 21, 2026Updated last week