Source: https://seerepo.com/compare/deepspeedai/DeepSpeed/vs/hiyouga/LlamaFactory
Markdown source: https://seerepo.com/compare/deepspeedai/DeepSpeed/vs/hiyouga/LlamaFactory.md
Description: DeepSpeed and LlamaFactory share 9 technologies: accelerate, sentencepiece, torch, transformers, einops, safetensors, liger-kernel, torchvision, and Pydantic. Both are written in Python.

# DeepSpeed vs LlamaFactory

DeepSpeed and LlamaFactory share 9 technologies: accelerate, sentencepiece, torch, transformers, einops, safetensors, liger-kernel, torchvision, and Pydantic. Both are written in Python.

- [deepspeedai/DeepSpeed](https://seerepo.com/r/deepspeedai/DeepSpeed): DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.
- [hiyouga/LlamaFactory](https://seerepo.com/r/hiyouga/LlamaFactory): Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

## What they share and what sets them apart

- In common: accelerate, sentencepiece, torch, transformers, einops, safetensors, liger-kernel, torchvision, Pydantic
- Only in DeepSpeed: sphinx-rtd-theme, triton, diffusers, comet-ml, lm-eval, xgboost, docutils, psutil
- Only in LlamaFactory: FastAPI, uvicorn, Gradio, matplotlib, tiktoken, triton-ascend, datasets, trl, peft, deepspeed, ModelScope, torchaudio, bitsandbytes, nltk, torchdata, torchcodec, av, jsonschema-specifications, referencing

## Side by side

| | DeepSpeed | LlamaFactory |
|---|---|---|
| Size | 247,033 lines written, 760 code files | 62,624 lines written, 194 code files |
| Who writes it | 2.7% of its commits signed by AI. With GitHub Copilot, Cursor, and Claude Code | 1.6% of its commits signed by AI. With Gemini CLI, Claude Code, GitHub Copilot, and Cursor |
| Activity | Last push November 6, 2026, 3,619 commits, 43,302 stars | Last push November 4, 2026, 2,769 commits, 75,890 stars |
| Tests | 395 test files. 33% of its code files have a test that imports them | 62 test files. 38.1% 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, DeepSpeed or LlamaFactory?

DeepSpeed, with 247,033 lines written; LlamaFactory has 62,624.

The proof: [deepspeedai/DeepSpeed's code at commit f47dc3e](https://github.com/deepspeedai/DeepSpeed/tree/f47dc3e3d48e748d699720ea65eca1f45c136255)

### Which has more GitHub stars, DeepSpeed or LlamaFactory?

LlamaFactory, with 75,890 stars; DeepSpeed has 43,302.

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

### Which has more tests, DeepSpeed or LlamaFactory?

DeepSpeed, with 395 test files; LlamaFactory has 62.

The proof: [deepspeedai/DeepSpeed's code at commit f47dc3e](https://github.com/deepspeedai/DeepSpeed/tree/f47dc3e3d48e748d699720ea65eca1f45c136255)

### Which was updated more recently, DeepSpeed or LlamaFactory?

DeepSpeed: its last push was on November 6, 2026, and LlamaFactory's on November 4, 2026.

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

### Which has more commits signed by AI, DeepSpeed or LlamaFactory?

DeepSpeed: an AI signed 2.7% of its commits, with GitHub Copilot, Cursor, and Claude Code; in LlamaFactory, 1.6%.

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

## Sources

- deepspeedai/DeepSpeed: Read on November 6, 2026, at commit f47dc3e (https://github.com/deepspeedai/DeepSpeed/tree/f47dc3e3d48e748d699720ea65eca1f45c136255)
- hiyouga/LlamaFactory: Read on November 4, 2026, at commit 702005c (https://github.com/hiyouga/LlamaFactory/tree/702005ce5237ae10f3c572c3f7741ecfd1422fc9)

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