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.

Read it as markdown

What they share and what sets them apart

hiyouga

LlamaFactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

Python75.9kRead on November 4, 2026, at commit 702005cWhat is LlamaFactory built with?

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

In common

Only in ai-engineering-from-scratch

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
LlamaFactory62,624 lines written194 code files
ai-engineering-from-scratch506,014 lines written2,340 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.
LlamaFactory1.6% of its commits signed by AIWith Gemini CLI, Claude Code, GitHub Copilot, and Cursor
ai-engineering-from-scratch0.8% of its commits signed by AIWith Claude Code and Devin
ActivityFrom GitHub and its history, on the day SeeRepo read it.
LlamaFactoryLast push November 4, 20262,769 commits75,890 stars
ai-engineering-from-scratchLast push November 4, 20262,431 commits76,859 stars
TestsThe files that test the code, and the share of code files a test imports.
LlamaFactory62 test files38.1% of its code files have a test that imports them
ai-engineering-from-scratch781 test files17.3% of its code files have a test that imports them

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

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

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

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

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

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.

Or look inside SeeRepo's own →