Papers › LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Models

LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Models

20 Mar 2024arXiv:2403.13372archive 2025-07-28

Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, Zhangchi Feng, Yongqiang Ma

Efficient fine-tuning is vital for adapting large language models (LLMs) to downstream tasks. However, it requires non-trivial efforts to implement these methods on different models. We present LlamaFactory, a unified framework that integrates a suite of cutting-edge efficient training methods. It provides a solution for flexibly customizing the fine-tuning of 100+ LLMs without the need for coding through the built-in web UI LlamaBoard. We empirically validate the efficiency and effectiveness of our framework on language modeling and text generation tasks. It has been released at https://github.com/hiyouga/LLaMA-Factory and received over 25,000 stars and 3,000 forks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.13372")

Code

Syntology Ran 3 of 17 code samples harvested from 3 repositories linked to this paper; 14 have no recorded run. Of those that ran: 3 ran with no contract checked.

By repository: community (archive-listed): 17 samples from 3 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hiyouga/llama-factory officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
BachOzean/TadE mentioned on GitHubpytorchApache-2.0 report
Rcrossmeister/Knowledge-to-SQL mentioned on GitHubpytorch report
Rcrossmeister/RLQG mentioned on GitHubpytorchMIT report
chen-gx/toolevo mentioned on GitHub report
hiyouga/hiyouga mentioned on GitHubtfMIT report
juyongjiang/codeup mentioned on GitHubpytorch report
smelliecat/aaemime mentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 3 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran
14unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_rotary_pos_emb_single Rcrossmeister/RLQG/model/src/api/attn_and_long_ctx_patches.py community (archive-listed) ran MIT (permissive) · 5067a5823022c273 · report
create_score_evaluation_response BachOzean/TadE/src/llamafactory/api/chat.py community (archive-listed) ran Apache-2.0 (permissive) · f31c69421a40b0a4 · report
jsonify BachOzean/TadE/src/llamafactory/api/common.py community (archive-listed) ran Apache-2.0 (permissive) · 57583cf880d95444 · report
adaptive_ntk_forward Rcrossmeister/RLQG/model/src/api/attn_and_long_ctx_patches.py community (archive-listed) unverified MIT (permissive) · bcfa7233bbbd6056 · report
calculate_similarity Rcrossmeister/RLQG/model/collector.py community (archive-listed) unverified MIT (permissive) · e03cb2df2255bfe4 · report
content_overlap_ratio Rcrossmeister/RLQG/evaluation/utils.py community (archive-listed) unverified MIT (permissive) · b508d81907f540d0 · report
convert_examples_to_features_sequence Rcrossmeister/RLQG/dataset/utils/loader.py community (archive-listed) unverified MIT (permissive) · 6f15166ed679f5d3 · report
dictify BachOzean/TadE/src/llamafactory/api/common.py community (archive-listed) unverified Apache-2.0 (permissive) · 87aa9acaa81294f5 · report
exact_match_accuracy Rcrossmeister/RLQG/evaluation/utils.py community (archive-listed) unverified MIT (permissive) · f561697841f2d428 · report
load_chat smelliecat/aaemime/new/src/gen_for_coraal.py community (archive-listed) unverified MIT (permissive) · dd1bd4b20b76b8bd · report
load_sentences Rcrossmeister/RLQG/dataset/utils/loader.py community (archive-listed) unverified MIT (permissive) · 4ea843747b80c800 · report
load_template Rcrossmeister/RLQG/dataset/utils/loader.py community (archive-listed) unverified MIT (permissive) · 0c5d5a49e28081e7 · report
process_sentence Rcrossmeister/RLQG/dataset/RAMS/rams_load.py community (archive-listed) unverified MIT (permissive) · e9a8c69747eb64a7 · report
read_json Rcrossmeister/RLQG/model/converter.py community (archive-listed) unverified MIT (permissive) · 147f30501936b7f3 · report
read_jsonl Rcrossmeister/RLQG/model/converter.py community (archive-listed) unverified MIT (permissive) · 2a7c632d17841b02 · report
rmANS Rcrossmeister/RLQG/evaluation/llama2_qa.py community (archive-listed) unverified MIT (permissive) · 05cd11daf8842801 · report
xformers_forward Rcrossmeister/RLQG/model/src/api/attn_and_long_ctx_patches.py community (archive-listed) unverified MIT (permissive) · 7385dc9c056d4dc9 · report

Tasks

Language ModelingLanguage ModellingText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections