Llama from scratch, or How to implement a paper without crying
☆579May 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,229May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,985May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,560Nov 24, 2025Updated 6 months ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆809Oct 30, 2024Updated last year
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,573Jul 1, 2024Updated 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.
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,425Jun 9, 2026Updated last week
- Inference Llama 2 in one file of pure C☆19,631Aug 6, 2024Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆59,723Nov 12, 2025Updated 7 months ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,273Updated this week
- NanoGPT (124M) in 90 seconds☆5,409Updated this week
- AllenAI's post-training codebase☆3,751Updated this week
- LLM training in simple, raw C/CUDA☆30,209Jun 26, 2025Updated 11 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,219Aug 22, 2025Updated 9 months ago
- Official inference library for Mistral models☆10,817Apr 20, 2026Updated last month
- 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.
- Machine Learning Engineering Open Book☆18,137May 18, 2026Updated last month
- llama3.np is a pure NumPy implementation for Llama 3 model.☆992Apr 27, 2025Updated last year
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆97,332Jun 2, 2026Updated 2 weeks ago
- [ACL 2024] Novel reranking method to select the best solutions for code generation☆16Jun 9, 2024Updated 2 years ago
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,461Apr 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☆129Jun 8, 2023Updated 3 years ago
- Explanation to key concepts in ML☆8,568Jun 30, 2025Updated 11 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- 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.
- Structured Outputs☆13,964May 18, 2026Updated last month
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆80,079Feb 5, 2026Updated 4 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,533Aug 15, 2024Updated last year
- Official repository for "BLEUBERI: BLEU is a surprisingly effective reward for instruction following"☆32Jun 5, 2025Updated last year
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,927Jun 10, 2024Updated 2 years ago
- Robust recipes to align language models with human and AI preferences☆5,613May 26, 2026Updated 3 weeks ago
- Nano Prot GPT: NanoGPT on protein sequences☆20Mar 10, 2023Updated 3 years ago
- A high-throughput and memory-efficient inference and serving engine for LLMs☆83,135Updated this week
- 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.
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,081Jul 1, 2025Updated 11 months ago
- Go ahead and axolotl questions☆12,061Updated this week
- An implementation of the base GPT-3 Model architecture from the paper by OPENAI "Language Models are Few-Shot Learners"☆22Jun 29, 2024Updated last year
- What would you do with 1000 H100s...☆1,178Jan 10, 2024Updated 2 years ago
- 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,368May 19, 2026Updated last month
- Simple repository for training small reasoning models☆52Feb 17, 2026Updated 4 months ago
- [ICLR 2024] Fine-tuning LLaMA to follow Instructions within 1 Hour and 1.2M Parameters☆5,921Mar 14, 2024Updated 2 years ago