Source: https://seerepo.com/compare/hiyouga/LlamaFactory/vs/zai-org/GLM-4
Markdown source: https://seerepo.com/compare/hiyouga/LlamaFactory/vs/zai-org/GLM-4.md
Description: LlamaFactory and GLM-4 share 18 technologies: FastAPI, Gradio, matplotlib, einops, sentencepiece, tiktoken, torchvision, transformers, torch, datasets, accelerate, peft, deepspeed, bitsandbytes, nltk, optimum, rouge-chinese, and Pydantic. Both are written in Python.

# LlamaFactory vs GLM-4

LlamaFactory and GLM-4 share 18 technologies: FastAPI, Gradio, matplotlib, einops, sentencepiece, tiktoken, torchvision, transformers, torch, datasets, accelerate, peft, deepspeed, bitsandbytes, nltk, optimum, rouge-chinese, and Pydantic. Both are written in Python.

- [hiyouga/LlamaFactory](https://seerepo.com/r/hiyouga/LlamaFactory): Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)
- [zai-org/GLM-4](https://seerepo.com/r/zai-org/GLM-4): GLM-4 series: Open Multilingual Multimodal Chat LMs | 开源多语言多模态对话模型

## What they share and what sets them apart

- In common: FastAPI, Gradio, matplotlib, einops, sentencepiece, tiktoken, torchvision, transformers, torch, datasets, accelerate, peft, deepspeed, bitsandbytes, nltk, optimum, rouge-chinese, Pydantic
- Only in LlamaFactory: uvicorn, aqlm, eetq, gptqmodel, hqq, ktransformers, triton-ascend, vector-quantize-pytorch, vocos, trl, badam, safetensors, torch-npu, vLLM, fsdp-turbo, liger-kernel, ModelScope, openmind, torchaudio, adam-mini, apollo-torch, galore-torch, sglang, torchao, torchdata, transformer-engine, torchcodec, av, jsonschema-specifications, referencing, swanlab
- Only in GLM-4: Streamlit, LangChain, OpenAI, optimum-intel, sentence-transformers, timm, zhipuai, jinja2, pymupdf, python-docx, python-pptx, pillow

## Side by side

| | LlamaFactory | GLM-4 |
|---|---|---|
| Size | 62,918 lines written, 194 code files | 5,577 lines written, 22 code files |
| Who writes it | 1.7% of its commits signed by AI. With Gemini CLI, Claude Code, GitHub Copilot, and Cursor | 0% of its commits signed by AI |
| Activity | Last push November 17, 2026, 2,783 commits, 76,077 stars | Last push August 5, 2026, 160 commits, 7,071 stars |
| Tests | 63 test files. 38.1% of its code files have a test that imports them | 2 test files |

- 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 GLM-4?

LlamaFactory, with 62,918 lines written; GLM-4 has 5,577.

The proof: [hiyouga/LlamaFactory's code at commit 885a4ca](https://github.com/hiyouga/LlamaFactory/tree/885a4ca65cebf17a92e869af13c2ce42caca314a)

### Which has more GitHub stars, LlamaFactory or GLM-4?

LlamaFactory, with 76,077 stars; GLM-4 has 7,071.

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

### Which has more tests, LlamaFactory or GLM-4?

LlamaFactory, with 63 test files; GLM-4 has 2.

The proof: [hiyouga/LlamaFactory's code at commit 885a4ca](https://github.com/hiyouga/LlamaFactory/tree/885a4ca65cebf17a92e869af13c2ce42caca314a)

### Which was updated more recently, LlamaFactory or GLM-4?

LlamaFactory: its last push was on November 17, 2026, and GLM-4's on August 5, 2026.

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

### Which has more commits signed by AI, LlamaFactory or GLM-4?

LlamaFactory: an AI signed 1.7% 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

- hiyouga/LlamaFactory: Read on November 17, 2026, at commit 885a4ca (https://github.com/hiyouga/LlamaFactory/tree/885a4ca65cebf17a92e869af13c2ce42caca314a)
- zai-org/GLM-4: Read on November 20, 2026, at commit 024d8fd (https://github.com/zai-org/GLM-4/tree/024d8fd48e62cf53785b68d657f1e018f87b5674)

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