Source: https://seerepo.com/compare/hiyouga/LlamaFactory/vs/rohitg00/ai-engineering-from-scratch
Markdown source: https://seerepo.com/compare/hiyouga/LlamaFactory/vs/rohitg00/ai-engineering-from-scratch.md
Description: LlamaFactory and ai-engineering-from-scratch share 8 technologies: matplotlib, tiktoken, torchvision, transformers, torch, datasets, accelerate, and torchaudio. Both are written in Python.

# LlamaFactory vs ai-engineering-from-scratch

LlamaFactory and ai-engineering-from-scratch share 8 technologies: matplotlib, tiktoken, torchvision, transformers, torch, datasets, accelerate, and torchaudio. Both are written in Python.

- [hiyouga/LlamaFactory](https://seerepo.com/r/hiyouga/LlamaFactory): Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)
- [rohitg00/ai-engineering-from-scratch](https://seerepo.com/r/rohitg00/ai-engineering-from-scratch): Learn AI Engineering! Learn it. Build it. Ship it for others.

## What they share and what sets them apart

- In common: matplotlib, tiktoken, torchvision, transformers, torch, datasets, accelerate, torchaudio
- Only in LlamaFactory: FastAPI, uvicorn, Gradio, einops, sentencepiece, triton-ascend, trl, peft, deepspeed, safetensors, liger-kernel, ModelScope, bitsandbytes, nltk, torchdata, torchcodec, av, jsonschema-specifications, referencing, Pydantic
- Only in ai-engineering-from-scratch: Anthropic, OpenAI, Hono, librosa, tokenizers, scikit-learn, MCP, google-adk, LangChain, pillow, shiki, Zod, @hono/node-server, @mastra/core

## Side by side

| | LlamaFactory | ai-engineering-from-scratch |
|---|---|---|
| Size | 62,624 lines written, 194 code files | 506,014 lines written, 2,340 code files |
| Who writes it | 1.6% of its commits signed by AI. With Gemini CLI, Claude Code, GitHub Copilot, and Cursor | 0.8% of its commits signed by AI. With Claude Code and Devin |
| Activity | Last push November 4, 2026, 2,769 commits, 75,890 stars | Last push November 4, 2026, 2,431 commits, 76,859 stars |
| Tests | 62 test files. 38.1% of its code files have a test that imports them | 781 test files. 17.3% 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, LlamaFactory or ai-engineering-from-scratch?

ai-engineering-from-scratch, with 506,014 lines written; LlamaFactory has 62,624.

The proof: [rohitg00/ai-engineering-from-scratch's code at commit 8fec9cc](https://github.com/rohitg00/ai-engineering-from-scratch/tree/8fec9cc19ee7c73b92582899b5455333d30d718e)

### Which has more GitHub stars, LlamaFactory or ai-engineering-from-scratch?

ai-engineering-from-scratch, with 76,859 stars; LlamaFactory has 75,890.

The proof: [rohitg00/ai-engineering-from-scratch on GitHub](https://github.com/rohitg00/ai-engineering-from-scratch)

### Which has more tests, LlamaFactory or ai-engineering-from-scratch?

ai-engineering-from-scratch, with 781 test files; LlamaFactory has 62.

The proof: [rohitg00/ai-engineering-from-scratch's code at commit 8fec9cc](https://github.com/rohitg00/ai-engineering-from-scratch/tree/8fec9cc19ee7c73b92582899b5455333d30d718e)

### Which was updated more recently, LlamaFactory or ai-engineering-from-scratch?

Both got their last push on November 4, 2026.

The proof: [hiyouga/LlamaFactory's commits on GitHub](https://github.com/hiyouga/LlamaFactory/commits)

### Which has more commits signed by AI, LlamaFactory or ai-engineering-from-scratch?

LlamaFactory: an AI signed 1.6% of its commits, with Gemini CLI, Claude Code, GitHub Copilot, and Cursor; in ai-engineering-from-scratch, 0.8%.

The proof: [the commits each tool signed in hiyouga/LlamaFactory](https://seerepo.com/r/hiyouga/LlamaFactory/ai)

## Sources

- hiyouga/LlamaFactory: Read on November 4, 2026, at commit 702005c (https://github.com/hiyouga/LlamaFactory/tree/702005ce5237ae10f3c572c3f7741ecfd1422fc9)
- rohitg00/ai-engineering-from-scratch: Read on November 4, 2026, at commit 8fec9cc (https://github.com/rohitg00/ai-engineering-from-scratch/tree/8fec9cc19ee7c73b92582899b5455333d30d718e)

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