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,234May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,963May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,512Nov 24, 2025Updated 6 months ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆804Oct 30, 2024Updated last year
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,496Jul 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.
- 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,383May 1, 2026Updated 3 weeks ago
- Inference Llama 2 in one file of pure C☆19,548Aug 6, 2024Updated last year
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆58,753Nov 12, 2025Updated 6 months ago
- ☆14Mar 16, 2023Updated 3 years ago
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,187May 22, 2026Updated last week
- NanoGPT (124M) in 90 seconds☆5,307Updated this week
- AllenAI's post-training codebase☆3,729Updated this week
- Just collections of notebooks playing around diffusion models.☆13Nov 20, 2022Updated 3 years ago
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- LLM training in simple, raw C/CUDA☆29,997Jun 26, 2025Updated 11 months ago
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,212Aug 22, 2025Updated 9 months ago
- Official inference library for Mistral models☆10,806Apr 20, 2026Updated last month
- Machine Learning Engineering Open Book☆18,006May 18, 2026Updated last week
- 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☆96,148May 23, 2026Updated last week
- [ACL 2024] Novel reranking method to select the best solutions for code generation☆16Jun 9, 2024Updated last year
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,463Apr 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
- 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.
- Experiments on speculative sampling with Llama models☆128Jun 8, 2023Updated 2 years ago
- Explanation to key concepts in ML☆8,561Jun 30, 2025Updated 11 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- Structured Outputs☆13,891May 18, 2026Updated last week
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆79,544Feb 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,428Aug 15, 2024Updated last year
- 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,911Jun 10, 2024Updated last year
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- Robust recipes to align language models with human and AI preferences☆5,605Apr 8, 2026Updated last month
- 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☆81,099Updated this week
- 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 10 months ago
- Go ahead and axolotl questions☆11,964Updated this week
- 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