Llama from scratch, or How to implement a paper without crying
☆581May 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,216May 23, 2024Updated 2 years ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆9,017May 3, 2024Updated 2 years ago
- Modeling, training, eval, and inference code for OLMo☆6,672Nov 24, 2025Updated 9 months ago
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,716Jul 1, 2024Updated 2 years ago
- From scratch implementation of a sparse mixture of experts language model inspired by Andrej Karpathy's makemore :)☆814Oct 30, 2024Updated last year
- Simple, predictable pricing with DigitalOcean hosting • AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- Training and Fine-tuning an llm in Python and PyTorch.☆43Aug 30, 2023Updated 3 years ago
- Building a 2.3M-parameter LLM from scratch with LLaMA 1 architecture.☆212May 12, 2024Updated 2 years ago
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,655Updated this week
- Inference Llama 2 in one file of pure C☆20,068Aug 6, 2024Updated 2 years ago
- NanoGPT (124M) in 90 seconds☆5,778Aug 9, 2026Updated last month
- 🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.☆21,649Updated this week
- ☆14Mar 16, 2023Updated 3 years ago
- Just collections of notebooks playing around diffusion models.☆13Nov 20, 2022Updated 3 years ago
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆62,954Nov 12, 2025Updated 9 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.
- AllenAI's post-training codebase☆3,860Updated this week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,251Aug 22, 2025Updated last year
- LLM training in simple, raw C/CUDA☆30,962Jun 26, 2025Updated last year
- llama3.np is a pure NumPy implementation for Llama 3 model.☆993Apr 27, 2025Updated last year
- Official inference library for Mistral models☆10,829Jun 16, 2026Updated 2 months ago
- Machine Learning Engineering Open Book☆18,956Updated this week
- Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings☆15May 3, 2023Updated 3 years ago
- [ACL 2024] Novel reranking method to select the best solutions for code generation☆16Jun 9, 2024Updated 2 years ago
- LLM training code for Databricks foundation models☆4,443Mar 25, 2026Updated 5 months 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.
- Explanation to key concepts in ML☆8,597Jun 30, 2025Updated last year
- An unnecessarily tiny implementation of GPT-2 in NumPy.☆3,472Apr 24, 2023Updated 3 years ago
- Experiments on speculative sampling with Llama models☆129Jun 8, 2023Updated 3 years ago
- 🍼 Baby's CoThought: Leveraging LLMs for Enhanced Reasoning in Compact Models [BabyLM Challenge]☆17Jan 10, 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,560May 19, 2026Updated 3 months ago
- 사전에서 대화 예문만 추출한 데이터☆16Apr 24, 2023Updated 3 years ago
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆24,878Aug 15, 2024Updated 2 years ago
- Nano Prot GPT: NanoGPT on protein sequences☆20Mar 10, 2023Updated 3 years ago
- An implementation of the base GPT-3 Model architecture from the paper by OPENAI "Language Models are Few-Shot Learners"☆22Jun 29, 2024Updated 2 years ago
- Serverless GPU API endpoints on Runpod - Get Bonus Credits • AdSkip the infrastructure headaches. Auto-scaling, pay-as-you-go, no-ops approach lets you focus on innovating your application.
- Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Ad…☆6,084Jul 1, 2025Updated last year
- Robust recipes to align language models with human and AI preferences☆5,676May 26, 2026Updated 3 months ago
- Simple repository for training small reasoning models☆51Aug 4, 2026Updated last month
- QLoRA: Efficient Finetuning of Quantized LLMs☆11,011Jun 10, 2024Updated 2 years ago
- Go ahead and axolotl questions☆12,459Updated this week
- A minimum example of aligning language models with RLHF similar to ChatGPT☆226Sep 26, 2023Updated 2 years ago
- What would you do with 1000 H100s...☆1,196Jan 10, 2024Updated 2 years ago