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,241May 23, 2024Updated last year
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,939May 3, 2024Updated last year
- Modeling, training, eval, and inference code for OLMo☆6,477Nov 24, 2025Updated 4 months ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆801Oct 30, 2024Updated last year
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,417Jul 1, 2024Updated last year
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- 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,297Apr 10, 2026Updated last week
- Inference Llama 2 in one file of pure C☆19,418Aug 6, 2024Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆56,599Nov 12, 2025Updated 5 months ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆20,929Apr 10, 2026Updated last week
- NanoGPT (124M) in 2 minutes☆5,095Apr 13, 2026Updated last week
- AllenAI's post-training codebase☆3,683Apr 13, 2026Updated last week
- LLM training in simple, raw C/CUDA☆29,624Jun 26, 2025Updated 9 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,190Aug 22, 2025Updated 7 months ago
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Official inference library for Mistral models☆10,773Feb 26, 2026Updated last month
- Machine Learning Engineering Open Book☆17,702Mar 16, 2026Updated last month
- llama3.np is a pure NumPy implementation for Llama 3 model.☆992Apr 27, 2025Updated 11 months ago
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆90,803Apr 11, 2026Updated last week
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,459Apr 24, 2023Updated 2 years ago
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 2 years ago
- Experiments on speculative sampling with Llama models☆128Jun 8, 2023Updated 2 years ago
- Explanation to key concepts in ML☆8,546Jun 30, 2025Updated 9 months ago
- Structured Outputs☆13,657Mar 26, 2026Updated 3 weeks ago
- Wordpress hosting with auto-scaling - Free Trial • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 2 years ago
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆78,379Feb 5, 2026Updated 2 months ago
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,178Aug 15, 2024Updated last year
- Simple repository for training small reasoning models☆50Feb 17, 2026Updated 2 months ago
- QLoRA: Efficient Finetuning of Quantized LLMs☆10,870Jun 10, 2024Updated last year
- Robust recipes to align language models with human and AI preferences☆5,558Apr 8, 2026Updated last week
- Go ahead and axolotl questions☆11,688Updated this week
- A high-throughput and memory-efficient inference and serving engine for LLMs☆76,536Updated 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 9 months ago
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- 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"☆20Jun 29, 2024Updated last year
- LLaMA 3 is one of the most promising open-source model after Mistral, we will recreate it's architecture in a simpler manner.☆207Aug 23, 2024Updated last year
- What would you do with 1000 H100s...☆1,172Jan 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,286Apr 1, 2026Updated 2 weeks ago
- [ICLR 2024] Fine-tuning LLaMA to follow Instructions within 1 Hour and 1.2M Parameters☆5,925Mar 14, 2024Updated 2 years ago
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,755Jul 18, 2025Updated 9 months ago