能力标签
LlamaFactory Agent工作流
🛠
AI工具

LlamaFactory Agent工作流

基于 Python · 开源免费,本地部署,数据完全自主可控
英文名:LlamaFactory
⭐ 71.2k Stars 🍴 8.7k Forks 💻 Python 📄 Apache-2.0 🏷 AI 9.0分
9.0AI 综合评分
模型微调大语言模型工作流自动化开源框架多模态
✦ AI Skill Hub 推荐

LlamaFactory Agent工作流 是 AI Skill Hub 本期精选AI工具之一。在 GitHub 上收获超过 71.2k 颗 Star,综合评分 9.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析
LlamaFactory Agent工作流 是一款基于 Python 的开源工具,在 GitHub 上收获 71k+ Star,是模型微调、大语言模型、工作流自动化、开源框架领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
LlamaFactory Agent工作流 依赖 Python 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Python 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 LlamaFactory Agent工作流 的版本更新,及时通知重要功能变化。
📋 工具概览

LlamaFactory Agent工作流 是一款基于 Python 开发的开源工具,专注于 模型微调、大语言模型、工作流自动化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 71.2k
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
活跃维护,更新频繁
开源协议
Apache-2.0
AI 综合评分
9.0 分
工具类型
AI工具
Forks
8.7k
📖 中文文档
以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

LlamaFactory Agent工作流 是一款基于 Python 开发的开源工具,专注于 模型微调、大语言模型、工作流自动化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install llamafactory

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install llamafactory

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/hiyouga/LlamaFactory
cd LlamaFactory
pip install -e .

# 验证安装
python -c "import llamafactory; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
llamafactory --help

# 基本用法
llamafactory input_file -o output_file

# Python 代码中调用
import llamafactory

# 示例
result = llamafactory.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# llamafactory 配置文件示例(config.yml)
app:
  name: "llamafactory"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
llamafactory --config config.yml

# 或通过环境变量配置
export LLAMAFACTORY_API_KEY="your-key"
export LLAMAFACTORY_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 58/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

GitHub Repo stars GitHub last commit GitHub contributors GitHub workflow PyPI Citation Docker Pulls

Twitter Discord WeChat Blog

Open in Colab Open in DSW Open in Lab4ai Open in Online Open in Spaces Open in Studios Open in Novita

Features

  • Various models: LLaMA, LLaVA, Mistral, Mixtral-MoE, Qwen3, Qwen3-VL, DeepSeek, Gemma, GLM, Phi, etc.
  • Integrated methods: (Continuous) pre-training, (multimodal) supervised fine-tuning, reward modeling, PPO, DPO, KTO, ORPO, etc.
  • Scalable resources: 16-bit full-tuning, freeze-tuning, LoRA and 2/3/4/5/6/8-bit QLoRA via AQLM/AWQ/GPTQ/LLM.int8/HQQ/EETQ.
  • Advanced algorithms: GaLore, BAdam, APOLLO, Adam-mini, Muon, OFT, DoRA, LongLoRA, LLaMA Pro, Mixture-of-Depths, LoRA+, LoftQ and PiSSA.
  • Practical tricks: FlashAttention-2, Unsloth, Liger Kernel, KTransformers, RoPE scaling, NEFTune and rsLoRA.
  • Wide tasks: Multi-turn dialogue, tool using, image understanding, visual grounding, video recognition, audio understanding, etc.
  • Experiment monitors: LlamaBoard, TensorBoard, Wandb, MLflow, SwanLab, etc.
  • Faster inference: OpenAI-style API, Gradio UI and CLI with vLLM worker or SGLang worker.

Requirement

MandatoryMinimumRecommend
python3.11>=3.11
torch2.0.02.6.0
torchvision0.15.00.21.0
transformers4.49.04.50.0
datasets2.16.03.2.0
accelerate0.34.01.2.1
peft0.14.00.15.1
trl0.8.60.9.6
OptionalMinimumRecommend
CUDA11.612.2
deepspeed0.10.00.16.4
bitsandbytes0.39.00.43.1
vllm0.4.30.8.2
flash-attn2.5.62.7.2

Hardware Requirement

\* estimated

MethodBits7B14B30B70BxB
Full (bf16 or fp16)32120GB240GB600GB1200GB18xGB
Full (pure_bf16)1660GB120GB300GB600GB8xGB
Freeze/LoRA/GaLore/APOLLO/BAdam/OFT1616GB32GB64GB160GB2xGB
QLoRA / QOFT810GB20GB40GB80GBxGB
QLoRA / QOFT46GB12GB24GB48GBx/2GB
QLoRA / QOFT24GB8GB16GB24GBx/4GB

Install dependencies

pip install -r requirements-dev.txt

Install the dependencies for the compilation tools. Note that the commands for this step may vary depending on the operating system. The following are provided for reference

apt-get install -y build-essential cmake

Getting Started

Installation

[!IMPORTANT] Installation is mandatory.

Install from Source

git clone --depth 1 https://github.com/hiyouga/LlamaFactory.git
cd LlamaFactory
pip install -e .
pip install -r requirements/metrics.txt

Optional dependencies available: metrics, deepspeed. Install with: pip install -e . && pip install -r requirements/metrics.txt -r requirements/deepspeed.txt

Additional dependencies for specific features are available in examples/requirements/.

Install from Docker Image

docker run -it --rm --gpus=all --ipc=host hiyouga/llamafactory:latest

This image is built on Ubuntu 22.04 (x86\_64), CUDA 12.4, Python 3.11, PyTorch 2.6.0, and Flash-attn 2.7.4.

Find the pre-built images: https://hub.docker.com/r/hiyouga/llamafactory/tags

Please refer to build docker to build the image yourself.

<details><summary>Setting up a virtual environment with <b>uv</b></summary>

Create an isolated Python environment with uv:

uv run llamafactory-cli webui

</details>

<details><summary>For Windows users</summary>

Install PyTorch

You need to manually install the GPU version of PyTorch on the Windows platform. Please refer to the official website and the following command to install PyTorch with CUDA support:

pip uninstall torch torchvision torchaudio
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
python -c "import torch; print(torch.cuda.is_available())"

If you see True then you have successfully installed PyTorch with CUDA support.

Try dataloader_num_workers: 0 if you encounter Can't pickle local object error.

Install BitsAndBytes

If you want to enable the quantized LoRA (QLoRA) on the Windows platform, you need to install a pre-built version of bitsandbytes library, which supports CUDA 11.1 to 12.2, please select the appropriate release version based on your CUDA version.

pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.2.post2-py3-none-win_amd64.whl

Install Flash Attention-2

To enable FlashAttention-2 on the Windows platform, please use the script from flash-attention-windows-wheel to compile and install it by yourself.

</details>

<details><summary>For Ascend NPU users</summary>

To install LLaMA Factory on Ascend NPU devices, please upgrade Python to version 3.10 or higher: pip install -r requirements/npu.txt. Additionally, you need to install the Ascend CANN Toolkit and Kernels. Please follow the installation tutorial.

You can also download the pre-built Docker images:

```bash

Docker Hub

docker pull hiyouga/llamafactory:latest-npu-a2 docker pull hiyouga/llamafactory:latest-npu-a3

Install bitsandbytes from source

Compile & install

cmake -DCOMPUTE_BACKEND=npu -S . make pip install .


2. Install transformers from the main branch.
bash git clone -b main https://github.com/huggingface/transformers.git cd transformers pip install . ```

  1. Set double_quantization: false in the configuration. You can refer to the example.

</details>

Build Docker

For CUDA users:

cd docker/docker-cuda/
docker compose up -d
docker compose exec llamafactory bash

For Ascend NPU users:

cd docker/docker-npu/
docker compose up -d
docker compose exec llamafactory bash

For AMD ROCm users:

cd docker/docker-rocm/
docker compose up -d
docker compose exec llamafactory bash

<details><summary>Build without Docker Compose</summary>

For CUDA users:

docker build -f ./docker/docker-cuda/Dockerfile \
    --build-arg PIP_INDEX=https://pypi.org/simple \
    -t llamafactory:latest .

docker run -dit --ipc=host --gpus=all \
    -p 7860:7860 \
    -p 8000:8000 \
    --name llamafactory \
    llamafactory:latest

docker exec -it llamafactory bash

For Ascend NPU users:

docker build -f ./docker/docker-npu/Dockerfile \
    --build-arg PIP_INDEX=https://pypi.org/simple \
    -t llamafactory:latest .

docker run -dit --ipc=host \
    -v /usr/local/dcmi:/usr/local/dcmi \
    -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
    -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
    -v /etc/ascend_install.info:/etc/ascend_install.info \
    -p 7860:7860 \
    -p 8000:8000 \
    --device /dev/davinci0 \
    --device /dev/davinci_manager \
    --device /dev/devmm_svm \
    --device /dev/hisi_hdc \
    --name llamafactory \
    llamafactory:latest

docker exec -it llamafactory bash

For AMD ROCm users:

docker build -f ./docker/docker-rocm/Dockerfile \
    --build-arg PIP_INDEX=https://pypi.org/simple \
    -t llamafactory:latest .

docker run -dit --ipc=host \
    -p 7860:7860 \
    -p 8000:8000 \
    --device /dev/kfd \
    --device /dev/dri \
    --name llamafactory \
    llamafactory:latest

docker exec -it llamafactory bash

</details>

<details><summary>Use Docker volumes</summary>

You can uncomment VOLUME [ "/root/.cache/huggingface", "/app/shared_data", "/app/output" ] in the Dockerfile to use data volumes.

When building the Docker image, use -v ./hf_cache:/root/.cache/huggingface argument to mount the local directory to the container. The following data volumes are available.

  • hf_cache: Utilize Hugging Face cache on the host machine.
  • shared_data: The directionary to store datasets on the host machine.
  • output: Set export dir to this location so that the merged result can be accessed directly on the host machine.

</details>

Deploy with OpenAI-style API and vLLM

API_PORT=8000 llamafactory-cli api examples/inference/qwen3.yaml infer_backend=vllm vllm_enforce_eager=true
[!TIP] Visit this page for API document. Examples: Image understanding | Function calling

Used by [Amazon](https://aws.amazon.com/cn/blogs/machine-learning/how-apoidea-group-enhances-visual-information-extraction-from-banking-documents-with-multimodal-models-using-llama-factory-on-amazon-sagemaker-hyperpod/), [NVIDIA](https://developer.nvidia.com/rtx/ai-toolkit), [Aliyun](https://help.aliyun.com/zh/pai/use-cases/fine-tune-a-llama-3-model-with-llama-factory), etc.

Easily fine-tune 100+ large language models with zero-code [CLI](#quickstart) and [Web UI](#fine-tuning-with-llama-board-gui-powered-by-gradio)

GitHub Trend

</div>

👋 Join our WeChat, NPU, Lab4AI, LLaMA Factory Online user group.

\ English | [中文 \]

Fine-tuning a large language model can be easy as...

https://github.com/user-attachments/assets/3991a3a8-4276-4d30-9cab-4cb0c4b9b99e

Start local training: - Please refer to usage

Start cloud training: - Colab (free): https://colab.research.google.com/drive/1eRTPn37ltBbYsISy9Aw2NuI2Aq5CQrD9?usp=sharing - PAI-DSW (free trial): https://gallery.pai-ml.com/#/preview/deepLearning/nlp/llama_factory - LLaMA Factory Online: https://www.llamafactory.com.cn/?utm_source=LLaMA-Factory - Alaya NeW (cloud GPU deal): https://docs.alayanew.com/docs/documents/useGuide/LLaMAFactory/mutiple/?utm_source=LLaMA-Factory

Read technical notes: - Documentation (WIP): https://llamafactory.readthedocs.io/en/latest/ - Documentation (AMD GPU): https://rocm.docs.amd.com/projects/ai-developer-hub/en/latest/notebooks/fine_tune/llama_factory_llama3.html - Official Blog: https://blog.llamafactory.net/en/ - Official Course: https://www.lab4ai.cn/course/detail?id=7c13e60f6137474eb40f6fd3983c0f46&utm_source=LLaMA-Factory

[!NOTE] Except for the above links, all other websites are unauthorized third-party websites. Please carefully use them.

Quickstart

Use the following 3 commands to run LoRA fine-tuning, inference and merging of the Qwen3-4B-Instruct model, respectively.

llamafactory-cli train examples/train_lora/qwen3_lora_sft.yaml
llamafactory-cli chat examples/inference/qwen3_lora_sft.yaml
llamafactory-cli export examples/merge_lora/qwen3_lora_sft.yaml

See examples/README.md for advanced usage (including distributed training).

[!TIP] Use llamafactory-cli help to show help information. Read FAQs first if you encounter any problems.

Supported Models

ModelModel sizeTemplate
[BLOOM/BLOOMZ](https://huggingface.co/bigscience)560M/1.1B/1.7B/3B/7.1B/176B-
[DeepSeek (LLM/Code/MoE)](https://huggingface.co/deepseek-ai)7B/16B/67B/236Bdeepseek
[DeepSeek 3-3.2](https://huggingface.co/deepseek-ai)236B/671Bdeepseek3
[DeepSeek R1 (Distill)](https://huggingface.co/deepseek-ai)1.5B/7B/8B/14B/32B/70B/671Bdeepseekr1
[ERNIE-4.5](https://huggingface.co/baidu)0.3B/21B/300Bernie_nothink
[Falcon/Falcon H1](https://huggingface.co/tiiuae)0.5B/1.5B/3B/7B/11B/34B/40B/180Bfalcon/falcon_h1
[Gemma/Gemma 2/CodeGemma](https://huggingface.co/google)2B/7B/9B/27Bgemma/gemma2
[Gemma 3/Gemma 3n](https://huggingface.co/google)270M/1B/4B/6B/8B/12B/27Bgemma3/gemma3n
[GLM-4/GLM-4-0414/GLM-Z1](https://huggingface.co/zai-org)9B/32Bglm4/glmz1
[GLM-4.5/GLM-4.5(6)V](https://huggingface.co/zai-org)9B/106B/355Bglm4_moe/glm4_5v
[GPT-2](https://huggingface.co/openai-community)0.1B/0.4B/0.8B/1.5B-
[GPT-OSS](https://huggingface.co/openai)20B/120Bgpt_oss
[Granite 3-4](https://huggingface.co/ibm-granite)1B/2B/3B/7B/8Bgranite3/granite4
[Hunyuan/Hunyuan1.5 (MT)](https://huggingface.co/tencent/)0.5B/1.8B/4B/7B/13Bhunyuan/hunyuan_small
[InternLM 2-3](https://huggingface.co/internlm)7B/8B/20Bintern2
[InternVL 2.5-3.5](https://huggingface.co/OpenGVLab)1B/2B/4B/8B/14B/30B/38B/78B/241Bintern_vl
[Intern-S1-mini](https://huggingface.co/internlm/)8Bintern_s1
[Kimi-VL](https://huggingface.co/moonshotai)16Bkimi_vl
[Ling 2.0 (mini/flash)](https://huggingface.co/inclusionAI)16B/100Bbailing_v2
[LFM 2.5 (VL)](https://huggingface.co/LiquidAI)1.2B/1.6Blfm2/lfm2_vl
[Llama](https://github.com/facebookresearch/llama)7B/13B/33B/65B-
[Llama 2](https://huggingface.co/meta-llama)7B/13B/70Bllama2
[Llama 3-3.3](https://huggingface.co/meta-llama)1B/3B/8B/70Bllama3
[Llama 4](https://huggingface.co/meta-llama)109B/402Bllama4
[Llama 3.2 Vision](https://huggingface.co/meta-llama)11B/90Bmllama
[LLaVA-1.5](https://huggingface.co/llava-hf)7B/13Bllava
[LLaVA-NeXT](https://huggingface.co/llava-hf)7B/8B/13B/34B/72B/110Bllava_next
[LLaVA-NeXT-Video](https://huggingface.co/llava-hf)7B/34Bllava_next_video
[MiMo](https://huggingface.co/XiaomiMiMo)7B/309Bmimo/mimo_v2
[MiniCPM 4](https://huggingface.co/openbmb)0.5B/8Bcpm4
[MiniCPM-o/MiniCPM-V 4.5](https://huggingface.co/openbmb)8B/9Bminicpm_o/minicpm_v
[MiniMax-M1/MiniMax-M2](https://huggingface.co/MiniMaxAI/models)229B/456Bminimax1/minimax2
[Ministral 3](https://huggingface.co/mistralai)3B/8B/14Bministral3
[Mistral/Mixtral](https://huggingface.co/mistralai)7B/8x7B/8x22Bmistral
[PaliGemma/PaliGemma2](https://huggingface.co/google)3B/10B/28Bpaligemma
[Phi-3/Phi-3.5](https://huggingface.co/microsoft)4B/14Bphi
[Phi-3-small](https://huggingface.co/microsoft)7Bphi_small
[Phi-4-mini/Phi-4](https://huggingface.co/microsoft)3.8B/14Bphi4_mini/phi4
[Pixtral](https://huggingface.co/mistralai)12Bpixtral
[Qwen2 (Code/Math/MoE/QwQ)](https://huggingface.co/Qwen)0.5B/1.5B/3B/7B/14B/32B/72B/110Bqwen
[Qwen3 (MoE/Instruct/Thinking/Next)](https://huggingface.co/Qwen)0.6B/1.7B/4B/8B/14B/32B/80B/235Bqwen3/qwen3_nothink
[Qwen3.5](https://huggingface.co/Qwen)0.8B/2B/4B/9B/27B/35B/122B/397Bqwen3_5/qwen3_5_nothink
[Qwen3.6](https://huggingface.co/Qwen)27B/35Bqwen3_6
[Qwen2-Audio](https://huggingface.co/Qwen)7Bqwen2_audio
[Qwen2.5-Omni](https://huggingface.co/Qwen)3B/7Bqwen2_omni
[Qwen3-Omni](https://huggingface.co/Qwen)30Bqwen3_omni
[Qwen2-VL/Qwen2.5-VL/QVQ](https://huggingface.co/Qwen)2B/3B/7B/32B/72Bqwen2_vl
[Qwen3-VL](https://huggingface.co/Qwen)2B/4B/8B/30B/32B/235Bqwen3_vl
[Seed (OSS/Coder)](https://huggingface.co/ByteDance-Seed)8B/36Bseed_oss/seed_coder
[StarCoder 2](https://huggingface.co/bigcode)3B/7B/15B-
[TeleChat 2-2.5](https://huggingface.co/Tele-AI)3B/7B/35B/115Btelechat2
[Yuan 2](https://huggingface.co/IEITYuan)2B/51B/102Byuan
[!NOTE] For the "base" models, the template argument can be chosen from default, alpaca, vicuna etc. But make sure to use the corresponding template for the "instruct/chat" models. If the model has both reasoning and non-reasoning versions, please use the _nothink suffix to distinguish between them. For example, qwen3 and qwen3_nothink. Remember to use the SAME template in training and inference. \: You should install the transformers from main branch and use DISABLE_VERSION_CHECK=1 to skip version check. \\*: You need to install a specific version of transformers to use the corresponding model.

Please refer to constants.py for a full list of models we supported.

You also can add a custom chat template to template.py.

🎯 aiskill88 AI 点评 A 级 2026-05-20

LlamaFactory是业界领先的统一微调平台,技术深度与实用性兼备。支持广泛模型生态,ACL2024论文加持,社区活跃度高。是企业和研究者进行模型定制的首选工具。

📚 实用指南(长尾问题)
适合谁
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • Docker:LlamaFactory 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
LlamaFactory 中文教程LlamaFactory 安装报错怎么办LlamaFactory Docker 部署LlamaFactory Agent 工作流LlamaFactory 与同类工具对比LlamaFactory 最佳实践LlamaFactory 适合谁用
⚡ 核心功能
👥 适合谁
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
👥 适合人群
AI 技术爱好者研究人员和学生开发者和工程师技术创业者
🎯 使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
⚖️ 优点与不足
✅ 优点
  • +GitHub 71.2k Star,社区高度认可
  • +Apache-2.0 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐
📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ
支持100+主流LLMs(LLaMA、Qwen等)和VLMs(视觉语言模型),框架持续扩展
💡 AI Skill Hub 点评

经综合评估,LlamaFactory Agent工作流 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 LlamaFactory Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 LlamaFactory
原始描述 开源AI工作流:Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)。⭐71.2k · Python
Topics 模型微调大语言模型工作流自动化开源框架多模态
GitHub https://github.com/hiyouga/LlamaFactory
License Apache-2.0
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/hiyouga/LlamaFactory 🌐 官方网站  https://llamafactory.readthedocs.io

收录时间:2026-05-13 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。