Source: https://seerepo.com/compare/hiyouga/LlamaFactory/vs/modelscope/ms-swift
Markdown source: https://seerepo.com/compare/hiyouga/LlamaFactory/vs/modelscope/ms-swift.md
Description: 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.

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

- [hiyouga/LlamaFactory](https://seerepo.com/r/hiyouga/LlamaFactory): Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)
- [modelscope/ms-swift](https://seerepo.com/r/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).

## What they share and what sets them apart

- In common: FastAPI, uvicorn, matplotlib, einops, sentencepiece, tiktoken, torchvision, transformers, datasets, accelerate, trl, peft, safetensors, ModelScope, torchaudio, nltk, swanlab
- Only in LlamaFactory: Gradio, aqlm, eetq, gptqmodel, hqq, ktransformers, triton-ascend, vector-quantize-pytorch, vocos, torch, badam, deepspeed, torch-npu, vLLM, fsdp-turbo, liger-kernel, openmind, adam-mini, apollo-torch, bitsandbytes, galore-torch, optimum, rouge-chinese, sglang, torchao, torchdata, transformer-engine, torchcodec, av, jsonschema-specifications, referencing, Pydantic
- Only in ms-swift: oss2, Ray, AIOHTTP, sphinx-rtd-theme, OpenAI, rouge, scikit-learn, docutils, myst-parser, recommonmark, sphinx-markdown-tables, pillow

## Side by side

| | LlamaFactory | ms-swift |
|---|---|---|
| Size | 62,648 lines written, 194 code files | 165,674 lines written, 533 code files |
| Who writes it | 1.6% of its commits signed by AI. With Gemini CLI, Claude Code, GitHub Copilot, and Cursor | 0.3% of its commits signed by AI. With Claude Code, Gemini CLI, and Codex |
| Activity | Last push November 9, 2026, 2,772 commits, 75,956 stars | Last push November 7, 2026, 3,872 commits, 16,058 stars |
| Tests | 62 test files. 38.1% of its code files have a test that imports them | 249 test files. 24% 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 ms-swift?

ms-swift, with 165,674 lines written; LlamaFactory has 62,648.

The proof: [modelscope/ms-swift's code at commit 47b437a](https://github.com/modelscope/ms-swift/tree/47b437a84e9ea481dbe24f516fc2318e7faf94da)

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

### 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](https://github.com/modelscope/ms-swift/tree/47b437a84e9ea481dbe24f516fc2318e7faf94da)

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

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

## Sources

- hiyouga/LlamaFactory: Read on November 9, 2026, at commit 28462f1 (https://github.com/hiyouga/LlamaFactory/tree/28462f15cc00b8233afab64c7712650d0a18a273)
- modelscope/ms-swift: Read on November 7, 2026, at commit 47b437a (https://github.com/modelscope/ms-swift/tree/47b437a84e9ea481dbe24f516fc2318e7faf94da)

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