LlamaFactory vs ai-toolkit

LlamaFactory and ai-toolkit share 15 technologies: FastAPI, uvicorn, Gradio, matplotlib, einops, sentencepiece, transformers, accelerate, peft, safetensors, bitsandbytes, torchao, torchcodec, av, and Pydantic. 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)

Python76kRead on November 9, 2026, at commit 28462f1What is LlamaFactory built with?

Only in LlamaFactory

In common

ostris

ai-toolkit

The ultimate training toolkit for finetuning diffusion models

Python12.6kRead on November 10, 2026, at commit 4a7f285What is ai-toolkit built with?

Only in ai-toolkit

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
LlamaFactory62,648 lines written194 code files
ai-toolkit204,162 lines written663 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-toolkit0.2% of its commits signed by AIWith Codex, Cursor, and Claude Code
ActivityFrom GitHub and its history, on the day SeeRepo read it.
LlamaFactoryLast push November 9, 20262,772 commits75,956 stars
ai-toolkitLast push November 10, 20261,578 commits12,609 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-toolkit12 test files4.5% of its code files have a test that imports them

Frequently asked questions

Which is bigger, LlamaFactory or ai-toolkit?
ai-toolkit, with 204,162 lines written; LlamaFactory has 62,648.

The proof: ostris/ai-toolkit's code at commit 4a7f285

Which has more GitHub stars, LlamaFactory or ai-toolkit?
LlamaFactory, with 75,956 stars; ai-toolkit has 12,609.

The proof: hiyouga/LlamaFactory on GitHub

Which has more tests, LlamaFactory or ai-toolkit?
LlamaFactory, with 62 test files; ai-toolkit has 12.

The proof: hiyouga/LlamaFactory's code at commit 28462f1

Which was updated more recently, LlamaFactory or ai-toolkit?
ai-toolkit: its last push was on November 10, 2026, and LlamaFactory's on November 9, 2026.

The proof: ostris/ai-toolkit's commits on GitHub

Which has more commits signed by AI, LlamaFactory or ai-toolkit?
LlamaFactory: an AI signed 1.6% of its commits, with Gemini CLI, Claude Code, GitHub Copilot, and Cursor; in ai-toolkit, 0.2%.

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 →