train-llm-from-scratch vs LlamaFactory
train-llm-from-scratch and LlamaFactory share 5 technologies: torchaudio, torchvision, torch, tiktoken, and datasets. Both are written in Python.
What they share and what sets them apart
FareedKhan-dev
train-llm-from-scratch
A straightforward method for training your LLM, from downloading data to generating text.
Python13.2kRead on November 10, 2026, at commit bdd480aWhat is train-llm-from-scratch built with?Only in train-llm-from-scratch
h5py
In common
hiyouga
LlamaFactory
Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)
Python76kRead on November 9, 2026, at commit 28462f1What is LlamaFactory built with?Only in LlamaFactory
- FastAPI
uvicorn
- Gradio
matplotlib
- aqlm
- eetq
- einops
- gptqmodel
hqq
ktransformers
- sentencepiece
triton-ascend
- vector-quantize-pytorch
- vocos
- transformers
accelerate
trl
peft
- badam
deepspeed
safetensors
torch-npu
- vLLM
- fsdp-turbo
- liger-kernel
- ModelScope
- openmind
- adam-mini
- apollo-torch
- bitsandbytes
- galore-torch
nltk
optimum
- rouge-chinese
sglang
torchao
- torchdata
- transformer-engine
- torchcodec
av
- jsonschema-specifications
- referencing
- Pydantic
swanlab
Side by side
train-llm-from-scratchLlamaFactory
SizeLines written by people and agents, without generated ones; code files, without tests.
train-llm-from-scratch12,346 lines written79 code files
LlamaFactory62,648 lines written194 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
train-llm-from-scratch7.1% of its commits signed by AIWith Claude Code and GitHub Copilot
LlamaFactory1.6% of its commits signed by AIWith Gemini CLI, Claude Code, GitHub Copilot, and Cursor
ActivityFrom GitHub and its history, on the day SeeRepo read it.
train-llm-from-scratchLast push October 2, 2026155 commits13,179 stars
LlamaFactoryLast push November 9, 20262,772 commits75,956 stars
TestsThe files that test the code, and the share of code files a test imports.
train-llm-from-scratch26 test files39.2% of its code files have a test that imports them
LlamaFactory62 test files38.1% of its code files have a test that imports them
Frequently asked questions
Which is bigger, train-llm-from-scratch or LlamaFactory?
LlamaFactory, with 62,648 lines written; train-llm-from-scratch has 12,346.
Which has more GitHub stars, train-llm-from-scratch or LlamaFactory?
LlamaFactory, with 75,956 stars; train-llm-from-scratch has 13,179.
The proof: hiyouga/LlamaFactory on GitHub
Which has more tests, train-llm-from-scratch or LlamaFactory?
LlamaFactory, with 62 test files; train-llm-from-scratch has 26.
Which was updated more recently, train-llm-from-scratch or LlamaFactory?
LlamaFactory: its last push was on November 9, 2026, and train-llm-from-scratch's on October 2, 2026.
The proof: hiyouga/LlamaFactory's commits on GitHub
Which has more commits signed by AI, train-llm-from-scratch or LlamaFactory?
train-llm-from-scratch: an AI signed 7.1% of its commits, with Claude Code and GitHub Copilot; in LlamaFactory, 1.6%.
See inside your code, today.
Paste your repo and see it drawn, part by part: a medium one in under a minute.
Free, no account.

