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,196May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,998May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,740Nov 24, 2025Updated 11 months ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆821Oct 30, 2024Updated 2 years ago
- Building a 2.3M-parameter LLM from scratch with LLaMA 1 architecture.☆214May 12, 2024Updated 2 years ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆11,068Jul 1, 2024Updated 2 years ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,274Aug 22, 2025Updated last year
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,757Nov 10, 2026Updated last week
- Inference Llama 2 in one file of pure C☆20,304Aug 6, 2024Updated 2 years ago
- Training and Fine-tuning an llm in Python and PyTorch.☆43Aug 30, 2023Updated 3 years ago
- LLM training in simple, raw C/CUDA☆31,515Jun 26, 2025Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆64,973Nov 12, 2025Updated last year
- llama3.np is a pure NumPy implementation for Llama 3 model.☆996Apr 27, 2025Updated last year
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,912Updated this week
- 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.
- AllenAI's post-training codebase☆3,942Updated this week
- NanoGPT (124M) in 90 seconds☆6,058Sep 28, 2026Updated last month
- Robust recipes to align language models with human and AI preferences☆5,716Sep 23, 2026Updated last month
- Machine Learning Engineering Open Book☆19,738Updated this week
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,485Apr 24, 2023Updated 3 years ago
- Explanation to key concepts in ML☆8,932Jun 30, 2025Updated last year
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆25,044Aug 15, 2024Updated 2 years ago
- Official inference library for Mistral models☆10,816Jun 16, 2026Updated 5 months ago
- LLM training code for Databricks foundation models☆4,460Mar 25, 2026Updated 7 months ago
- 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.
- 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,595May 19, 2026Updated 6 months ago
- [ICLR 2024] Fine-tuning LLaMA to follow Instructions within 1 Hour and 1.2M Parameters☆5,909Mar 14, 2024Updated 2 years ago
- QLoRA: Efficient Finetuning of Quantized LLMs☆11,071Jun 10, 2024Updated 2 years ago
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 3 years ago
- This repository contains demos I made with the Transformers library by HuggingFace.☆11,787Sep 17, 2026Updated 2 months ago
- Minimalistic large language model 3D-parallelism training☆2,869Oct 8, 2026Updated last month
- A playbook for systematically maximizing the performance of deep learning models.☆30,461Jun 18, 2024Updated 2 years ago
- Structured Outputs☆16,017Sep 21, 2026Updated 2 months ago
- [🍼 BabyLM Challenge] Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models☆17Jan 10, 2025Updated 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.
- Code and documentation to train Stanford's Alpaca models, and generate the data.☆30,221Jul 17, 2024Updated 2 years ago
- Go ahead and axolotl questions☆12,742Updated this week
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,079Jul 1, 2025Updated last year
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,772Jul 18, 2025Updated last year
- [ACL 2024] Novel reranking method to select the best solutions for code generation☆16Jun 9, 2024Updated 2 years ago
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆108,751Updated this week
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆85,171Feb 5, 2026Updated 9 months ago
Are these results useful?