Llama from scratch, or How to implement a paper without crying
☆581May 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. 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,246May 23, 2024Updated last year
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,955May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,495Nov 24, 2025Updated 5 months ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆802Oct 30, 2024Updated last year
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,462Jul 1, 2024Updated last year
- 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.
- Building a 2.3M-parameter LLM from scratch with LLaMA 1 architecture.☆207May 12, 2024Updated last year
- Training and Fine-tuning an llm in Python and PyTorch.☆43Aug 30, 2023Updated 2 years ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,337May 1, 2026Updated last week
- Inference Llama 2 in one file of pure C☆19,480Aug 6, 2024Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆57,469Nov 12, 2025Updated 5 months ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,052May 1, 2026Updated last week
- NanoGPT (124M) in 90 seconds☆5,200Updated this week
- AllenAI's post-training codebase☆3,708May 3, 2026Updated last week
- Just collections of notebooks playing around diffusion models.☆13Nov 20, 2022Updated 3 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- LLM training in simple, raw C/CUDA☆29,842Jun 26, 2025Updated 10 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,206Aug 22, 2025Updated 8 months ago
- Official inference library for Mistral models☆10,798Apr 20, 2026Updated 2 weeks ago
- Machine Learning Engineering Open Book☆17,854Mar 16, 2026Updated last month
- llama3.np is a pure NumPy implementation for Llama 3 model.☆991Apr 27, 2025Updated last year
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆91,948Apr 16, 2026Updated 3 weeks ago
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,462Apr 24, 2023Updated 3 years ago
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 3 years ago
- Experiments on speculative sampling with Llama models☆128Jun 8, 2023Updated 2 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Explanation to key concepts in ML☆8,556Jun 30, 2025Updated 10 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- Structured Outputs☆13,776Apr 16, 2026Updated 3 weeks ago
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆79,075Feb 5, 2026Updated 3 months ago
- 🍼 Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models (BabyLM Challenge)☆17Jan 10, 2025Updated last year
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,331Aug 15, 2024Updated last year
- Simple repository for training small reasoning models☆50Feb 17, 2026Updated 2 months ago
- Official repository for "BLEUBERI: BLEU is a surprisingly effective reward for instruction following"☆32Jun 5, 2025Updated 11 months ago
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,901Jun 10, 2024Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Robust recipes to align language models with human and AI preferences☆5,593Apr 8, 2026Updated last month
- A high-throughput and memory-efficient inference and serving engine for LLMs☆78,979Updated this week
- Nano Prot GPT: NanoGPT on protein sequences☆20Mar 10, 2023Updated 3 years ago
- Go ahead and axolotl questions☆11,842May 1, 2026Updated last week
- 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 10 months ago
- A minimum example of aligning language models with RLHF similar to ChatGPT☆226Sep 26, 2023Updated 2 years ago
- An implementation of the base GPT-3 Model architecture from the paper by OPENAI "Language Models are Few-Shot Learners"☆21Jun 29, 2024Updated last year