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,202May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆9,009May 3, 2024Updated 2 years ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆820Oct 30, 2024Updated last year
- Modeling, training, eval, and inference code for OLMo☆6,717Nov 24, 2025Updated 11 months ago
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,917Jul 1, 2024Updated 2 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.
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,266Aug 22, 2025Updated last year
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,735Updated this week
- Building a 2.3M-parameter LLM from scratch with LLaMA 1 architecture.☆213May 12, 2024Updated 2 years ago
- Training and Fine-tuning an llm in Python and PyTorch.☆43Aug 30, 2023Updated 3 years ago
- Inference Llama 2 in one file of pure C☆20,222Aug 6, 2024Updated 2 years ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,855Updated this week
- LLM training in simple, raw C/CUDA☆31,276Jun 26, 2025Updated last year
- llama3.np is a pure NumPy implementation for Llama 3 model.☆994Apr 27, 2025Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆64,188Nov 12, 2025Updated 11 months ago
- 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.
- NanoGPT (124M) in 90 seconds☆5,976Sep 28, 2026Updated last month
- AllenAI's post-training codebase☆3,915Updated this week
- Machine Learning Engineering Open Book☆19,628Updated this week
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,480Apr 24, 2023Updated 3 years ago
- LLaMA 3 is one of the most promising open-source model after Mistral, we will recreate it's architecture in a simpler manner.☆218Aug 23, 2024Updated 2 years ago
- Robust recipes to align language models with human and AI preferences☆5,702Sep 23, 2026Updated last month
- Official inference library for Mistral models☆10,824Jun 16, 2026Updated 4 months ago
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,985Aug 15, 2024Updated 2 years ago
- LLM training code for Databricks foundation models☆4,461Mar 25, 2026Updated 7 months 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.
- [ICLR 2024] Fine-tuning LLaMA to follow Instructions within 1 Hour and 1.2M Parameters☆5,912Mar 14, 2024Updated 2 years ago
- Explanation to key concepts in ML☆8,914Jun 30, 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,578May 19, 2026Updated 5 months ago
- QLoRA: Efficient Finetuning of Quantized LLMs☆11,058Jun 10, 2024Updated 2 years ago
- An implementation of the transformer architecture onto an Nvidia CUDA kernel☆203Sep 24, 2023Updated 3 years ago
- Minimalistic large language model 3D-parallelism training☆2,848Oct 8, 2026Updated 3 weeks ago
- This repository contains demos I made with the Transformers library by HuggingFace.☆11,776Sep 17, 2026Updated last month
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 3 years ago
- Go ahead and axolotl questions☆12,640Updated this week
- 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.
- A PyTorch native platform for training generative AI models☆5,856Updated this week
- 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
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,772Jul 18, 2025Updated last year
- [🍼 BabyLM Challenge] Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models☆17Jan 10, 2025Updated last year
- Code and documentation to train Stanford's Alpaca models, and generate the data.☆30,232Jul 17, 2024Updated 2 years ago
- Customizable implementation of the self-instruct paper.☆1,053Mar 7, 2024Updated 2 years ago
- LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions☆820May 6, 2023Updated 3 years ago