Source: https://seerepo.com/compare/FareedKhan-dev/train-llm-from-scratch/vs/hiyouga/LlamaFactory
Markdown source: https://seerepo.com/compare/FareedKhan-dev/train-llm-from-scratch/vs/hiyouga/LlamaFactory.md
Description: train-llm-from-scratch and LlamaFactory share 5 technologies: torchaudio, torchvision, torch, tiktoken, and datasets. Both are written in Python.

# 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.

- [FareedKhan-dev/train-llm-from-scratch](https://seerepo.com/r/FareedKhan-dev/train-llm-from-scratch): A straightforward method for training your LLM, from downloading data to generating text.
- [hiyouga/LlamaFactory](https://seerepo.com/r/hiyouga/LlamaFactory): Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

## What they share and what sets them apart

- In common: torchaudio, torchvision, torch, tiktoken, datasets
- Only in train-llm-from-scratch: h5py
- 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-scratch | LlamaFactory |
|---|---|---|
| Size | 12,346 lines written, 79 code files | 62,648 lines written, 194 code files |
| Who writes it | 7.1% of its commits signed by AI. With Claude Code and GitHub Copilot | 1.6% of its commits signed by AI. With Gemini CLI, Claude Code, GitHub Copilot, and Cursor |
| Activity | Last push October 2, 2026, 155 commits, 13,179 stars | Last push November 9, 2026, 2,772 commits, 75,956 stars |
| Tests | 26 test files. 39.2% of its code files have a test that imports them | 62 test files. 38.1% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## 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.

The proof: [hiyouga/LlamaFactory's code at commit 28462f1](https://github.com/hiyouga/LlamaFactory/tree/28462f15cc00b8233afab64c7712650d0a18a273)

### 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](https://github.com/hiyouga/LlamaFactory)

### Which has more tests, train-llm-from-scratch or LlamaFactory?

LlamaFactory, with 62 test files; train-llm-from-scratch has 26.

The proof: [hiyouga/LlamaFactory's code at commit 28462f1](https://github.com/hiyouga/LlamaFactory/tree/28462f15cc00b8233afab64c7712650d0a18a273)

### 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](https://github.com/hiyouga/LlamaFactory/commits)

### 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%.

## Sources

- FareedKhan-dev/train-llm-from-scratch: Read on November 10, 2026, at commit bdd480a (https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/bdd480a518094ca834e05ab32131dc126b522d3d)
- hiyouga/LlamaFactory: Read on November 9, 2026, at commit 28462f1 (https://github.com/hiyouga/LlamaFactory/tree/28462f15cc00b8233afab64c7712650d0a18a273)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
