Llama Model Implementations Transformer Models
Educational and production implementations of the Llama model architecture from scratch in various frameworks (PyTorch, JAX, NumPy). Includes simplified variants, language-specific adaptations, and training/inference code. Does NOT include fine-tuning frameworks, detection tools, or applications built on top of Llama.
There are 35 llama model implementations models tracked. The highest-rated is hkproj/pytorch-llama at 42/100 with 366 stars.
Get all 35 projects as JSON
curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=transformers&subcategory=llama-model-implementations&limit=20"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
| # | Model | Score | Tier |
|---|---|---|---|
| 1 |
hkproj/pytorch-llama
LLaMA 2 implemented from scratch in PyTorch |
|
Emerging |
| 2 |
harleyszhang/lite_llama
A light llama-like llm inference framework based on the triton kernel. |
|
Emerging |
| 3 |
4AI/LS-LLaMA
A Simple but Powerful SOTA NER Model | Official Code For Label Supervised... |
|
Emerging |
| 4 |
luchangli03/export_llama_to_onnx
export llama to onnx |
|
Emerging |
| 5 |
ayaka14732/llama-2-jax
JAX implementation of the Llama 2 model |
|
Emerging |
| 6 |
liangyuwang/zo2
ZO2 (Zeroth-Order Offloading): Full Parameter Fine-Tuning 175B LLMs with... |
|
Emerging |
| 7 |
tpoisonooo/llama.onnx
LLaMa/RWKV onnx models, quantization and testcase |
|
Emerging |
| 8 |
Nkluge-correa/TeenyTinyLlama
A pair of tiny foundational models trained in Brazilian Portuguese.🦙🦙 |
|
Emerging |
| 9 |
hscspring/llama.np
Inference Llama/Llama2/Llama3 Modes in NumPy |
|
Emerging |
| 10 |
p-nordmann/eqx-llama
LLaMA implementation with Jax and Equinox |
|
Emerging |
| 11 |
sh0416/llama-classification
Text classification with Foundation Language Model LLaMA |
|
Experimental |
| 12 |
ASSERT-KTH/repairllama
RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program... |
|
Experimental |
| 13 |
Nondzu/LlamaTor
LlamaTor: Decentralized AI model sharing via BitTorrent for efficient,... |
|
Experimental |
| 14 |
akanyaani/miniLLAMA
A simplified LLAMA implementation for training and inference tasks. |
|
Experimental |
| 15 |
Riccorl/llama-trainer
Llama Trainer Utility |
|
Experimental |
| 16 |
Esmail-ibraheem/Tinyllamas-pytorch
Tinyllamas🦙 is an Extensible advanced language model framework, inspired by... |
|
Experimental |
| 17 |
ES7/LLaMA-from-Scratch
In this repository, I have explained the working of the LLaMA Model,... |
|
Experimental |
| 18 |
ntropy-network/enrichment_models
This repository benchmark Ntropy API against different Large Language Models... |
|
Experimental |
| 19 |
dhakalnirajan/LLaMA-BitNet
LLaMA-BitNet is a repository dedicated to empowering users to train their... |
|
Experimental |
| 20 |
MoFHeka/LLaMA-Megatron
A LLaMA1/LLaMA12 Megatron implement. |
|
Experimental |
| 21 |
frikishaan/glama-124m
GLaMA is a small-scale autoregressive transformer model inspired by... |
|
Experimental |
| 22 |
cbacary/MoDeGPT
An implementation of the MoDeGPT LLM compression from the ICLR 2025... |
|
Experimental |
| 23 |
aju22/LLaMA2
This repository contains an implementation of the LLaMA 2 (Large Language... |
|
Experimental |
| 24 |
JamesVorder/python-tddpp
This LLM generates code based on tests, and makes sure they pass. |
|
Experimental |
| 25 |
nuochenpku/LLaMA_Analysis
This is official project in our paper: Is Bigger and Deeper Always Better?... |
|
Experimental |
| 26 |
longday1102/VietAI-experiment-LLaMA2
âš¡ LLaMA-2 model experiment |
|
Experimental |
| 27 |
gitctrlx/llama.np
Llama from scratch in NumPy. |
|
Experimental |
| 28 |
kimtth/pytorch-vis-llama-trial
💥Hello Pytorch! Llama |
|
Experimental |
| 29 |
maris205/llama-gene
A General-purpose Gene Task Large Language Model Based on Instruction Fine-tuning |
|
Experimental |
| 30 |
shreyanmitra/CandyLLM
A simple, easy-to-use framework for HuggingFace and OpenAI text-generation... |
|
Experimental |
| 31 |
jerrypan617/LightLlama
Build a light-weight Llama from scratch, based on course Stanford CS336 2025. |
|
Experimental |
| 32 |
dt-3t/TeGu
Official implementation of "Temporal Guidance for Large Language Models". A... |
|
Experimental |
| 33 |
adithyab94/Attiri
Attiri: An Instruction-following LLaMa and Alpaca model for Tamil |
|
Experimental |
| 34 |
rlucatoor/llama3
A Pytorch implementation of Llama 3 🦙 |
|
Experimental |
| 35 |
Brownwang0426/Cullama
Customize Your Own Llama Attention! No peft, no lora, only customizing your... |
|
Experimental |