Source: https://seerepo.com/compare/hankcs/HanLP/vs/hiyouga/LlamaFactory
Markdown source: https://seerepo.com/compare/hankcs/HanLP/vs/hiyouga/LlamaFactory.md
Description: HanLP and LlamaFactory share 3 technologies: sentencepiece, torch, and transformers. Both are written in Python.

# HanLP vs LlamaFactory

HanLP and LlamaFactory share 3 technologies: sentencepiece, torch, and transformers. Both are written in Python.

- [hankcs/HanLP](https://seerepo.com/r/hankcs/HanLP): 中文分词 词性标注 命名实体识别 依存句法分析 成分句法分析 语义依存分析 语义角色标注 指代消解 风格转换 语义相似度 新词发现 关键词短语提取 自动摘要 文本分类聚类 拼音简繁转换 自然语言处理
- [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: sentencepiece, torch, transformers
- Only in HanLP: None
- Only in LlamaFactory: FastAPI, uvicorn, Gradio, matplotlib, einops, tiktoken, torchvision, triton-ascend, datasets, accelerate, trl, peft, deepspeed, safetensors, liger-kernel, ModelScope, torchaudio, bitsandbytes, nltk, torchdata, torchcodec, av, jsonschema-specifications, referencing, Pydantic

## Side by side

| | HanLP | LlamaFactory |
|---|---|---|
| Size | 58,682 lines written, 472 code files | 62,624 lines written, 194 code files |
| Who writes it | 0% of its commits signed by AI | 1.6% of its commits signed by AI. With Gemini CLI, Claude Code, GitHub Copilot, and Cursor |
| Activity | Last push October 25, 2026, 1,715 commits, 36,536 stars | Last push November 4, 2026, 2,769 commits, 75,890 stars |
| Tests | 13 test files. 1.9% 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, HanLP or LlamaFactory?

LlamaFactory, with 62,624 lines written; HanLP has 58,682.

The proof: [hiyouga/LlamaFactory's code at commit 702005c](https://github.com/hiyouga/LlamaFactory/tree/702005ce5237ae10f3c572c3f7741ecfd1422fc9)

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

LlamaFactory, with 75,890 stars; HanLP has 36,536.

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

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

LlamaFactory, with 62 test files; HanLP has 13.

The proof: [hiyouga/LlamaFactory's code at commit 702005c](https://github.com/hiyouga/LlamaFactory/tree/702005ce5237ae10f3c572c3f7741ecfd1422fc9)

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

LlamaFactory: its last push was on November 4, 2026, and HanLP's on October 25, 2026.

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

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

LlamaFactory: an AI signed 1.6% of its commits, with Gemini CLI, Claude Code, GitHub Copilot, and Cursor.

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

## Sources

- hankcs/HanLP: Read on November 7, 2026, at commit 281e8ef (https://github.com/hankcs/HanLP/tree/281e8ef1821bd49d0c4bd38a2111729863e924d0)
- 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.
