LlamaFactory vs ms-swift

LlamaFactory and ms-swift share 17 technologies: FastAPI, uvicorn, matplotlib, einops, sentencepiece, tiktoken, torchvision, transformers, datasets, accelerate, trl, peft, safetensors, ModelScope, torchaudio, nltk, and swanlab. 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

modelscope

ms-swift

Use PEFT or Full-parameter to CPT/SFT/DPO/GRPO 600+ LLMs (Qwen3.8, DeepSeek-V4, GLM-5.1, InternLM3, Llama4, ...) and 300+ MLLMs (Qwen3-VL, Qwen3-Omni, InternVL3.5, Ovis2.5, GLM5.3, Gemma4, Llava, Phi4, ...) (AAAI 2025).

Python16.1kRead on November 7, 2026, at commit 47b437aWhat is ms-swift built with?

Only in ms-swift

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
LlamaFactory62,648 lines written194 code files
ms-swift165,674 lines written533 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
ms-swift0.3% of its commits signed by AIWith Claude Code, Gemini CLI, and Codex
ActivityFrom GitHub and its history, on the day SeeRepo read it.
LlamaFactoryLast push November 9, 20262,772 commits75,956 stars
ms-swiftLast push November 7, 20263,872 commits16,058 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
ms-swift249 test files24% of its code files have a test that imports them

Frequently asked questions

Which is bigger, LlamaFactory or ms-swift?
ms-swift, with 165,674 lines written; LlamaFactory has 62,648.

The proof: modelscope/ms-swift's code at commit 47b437a

Which has more GitHub stars, LlamaFactory or ms-swift?
LlamaFactory, with 75,956 stars; ms-swift has 16,058.

The proof: hiyouga/LlamaFactory on GitHub

Which has more tests, LlamaFactory or ms-swift?
ms-swift, with 249 test files; LlamaFactory has 62.

The proof: modelscope/ms-swift's code at commit 47b437a

Which was updated more recently, LlamaFactory or ms-swift?
LlamaFactory: its last push was on November 9, 2026, and ms-swift's on November 7, 2026.

The proof: hiyouga/LlamaFactory's commits on GitHub

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

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 →