Source: https://seerepo.com/compare/FlagOpen/FlagEmbedding/vs/hiyouga/LlamaFactory
Markdown source: https://seerepo.com/compare/FlagOpen/FlagEmbedding/vs/hiyouga/LlamaFactory.md
Description: FlagEmbedding and LlamaFactory share 13 technologies: bitsandbytes, ModelScope, sentencepiece, transformers, torch, datasets, accelerate, peft, torchvision, deepspeed, vLLM, einops, and tiktoken. Both are written in Python.

# FlagEmbedding vs LlamaFactory

FlagEmbedding and LlamaFactory share 13 technologies: bitsandbytes, ModelScope, sentencepiece, transformers, torch, datasets, accelerate, peft, torchvision, deepspeed, vLLM, einops, and tiktoken. Both are written in Python.

- [FlagOpen/FlagEmbedding](https://seerepo.com/r/FlagOpen/FlagEmbedding): Retrieval and Retrieval-augmented LLMs
- [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: bitsandbytes, ModelScope, sentencepiece, transformers, torch, datasets, accelerate, peft, torchvision, deepspeed, vLLM, einops, tiktoken
- Only in FlagEmbedding: tornado, sqlglot, ir-datasets, rank-bm25, flagembedding, flash-attn, mteb, timm, sentence-transformers, langchain-openai, jinja2
- Only in LlamaFactory: FastAPI, uvicorn, Gradio, matplotlib, aqlm, eetq, gptqmodel, hqq, ktransformers, triton-ascend, vector-quantize-pytorch, vocos, trl, badam, safetensors, torch-npu, fsdp-turbo, liger-kernel, openmind, torchaudio, adam-mini, apollo-torch, galore-torch, nltk, optimum, rouge-chinese, sglang, torchao, torchdata, transformer-engine, torchcodec, av, jsonschema-specifications, referencing, Pydantic, swanlab

## Side by side

| | FlagEmbedding | LlamaFactory |
|---|---|---|
| Size | 97,836 lines written, 428 code files | 62,648 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 27, 2026, 1,204 commits, 12,314 stars | Last push November 9, 2026, 2,772 commits, 75,956 stars |
| Tests | 22 test files. 0.2% 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, FlagEmbedding or LlamaFactory?

FlagEmbedding, with 97,836 lines written; LlamaFactory has 62,648.

The proof: [FlagOpen/FlagEmbedding's code at commit 897baa6](https://github.com/FlagOpen/FlagEmbedding/tree/897baa67c0ffddbfccf4e6776ff55310d67809d4)

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

LlamaFactory, with 75,956 stars; FlagEmbedding has 12,314.

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

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

LlamaFactory, with 62 test files; FlagEmbedding has 22.

The proof: [hiyouga/LlamaFactory's code at commit 28462f1](https://github.com/hiyouga/LlamaFactory/tree/28462f15cc00b8233afab64c7712650d0a18a273)

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

LlamaFactory: its last push was on November 9, 2026, and FlagEmbedding's on October 27, 2026.

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

### Which has more commits signed by AI, FlagEmbedding 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

- FlagOpen/FlagEmbedding: Read on November 11, 2026, at commit 897baa6 (https://github.com/FlagOpen/FlagEmbedding/tree/897baa67c0ffddbfccf4e6776ff55310d67809d4)
- hiyouga/LlamaFactory: Read on November 9, 2026, at commit 28462f1 (https://github.com/hiyouga/LlamaFactory/tree/28462f15cc00b8233afab64c7712650d0a18a273)

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