LLMCompiler Agent工作流 是 AI Skill Hub 本期精选Agent工作流之一。已获得 1.9k 颗 GitHub Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
ICML 2024论文实现的开源AI工作流框架,支持并行函数调用和高效推理。采用编译器思想优化LLM执行流程,适合需要构建复杂AI代理应用和提升推理效率的开发者。
LLMCompiler Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
ICML 2024论文实现的开源AI工作流框架,支持并行函数调用和高效推理。采用编译器思想优化LLM执行流程,适合需要构建复杂AI代理应用和提升推理效率的开发者。
LLMCompiler Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install llmcompiler
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install llmcompiler
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/SqueezeAILab/LLMCompiler
cd LLMCompiler
pip install -e .
# 验证安装
python -c "import llmcompiler; print('安装成功')"
# 命令行使用
llmcompiler --help
# 基本用法
llmcompiler input_file -o output_file
# Python 代码中调用
import llmcompiler
# 示例
result = llmcompiler.process("input")
print(result)
# llmcompiler 配置文件示例(config.yml) app: name: "llmcompiler" debug: false log_level: "INFO" # 运行时指定配置文件 llmcompiler --config config.yml # 或通过环境变量配置 export LLMCOMPILER_API_KEY="your-key" export LLMCOMPILER_OUTPUT_DIR="./output"
![]()
LLMCompiler is a framework that enables an efficient and effective orchestration of parallel function calling with LLMs, including both open-source and close-source models, by automatically identifying which tasks can be performed in parallel and which ones are interdependent.
TL;DR: The reasoning capabilities of LLMs enable them to execute multiple function calls, using user-provided functions to overcome their inherent limitations (e.g. knowledge cutoffs, poor arithmetic skills, or lack of access to private data). While multi-function calling allows them to tackle more complex problems, current methods often require sequential reasoning and acting for each function which can result in high latency, cost, and sometimes inaccurate behavior. LLMCompiler addresses this by decomposing problems into multiple tasks that can be executed in parallel, thereby efficiently orchestrating multi-function calling. With LLMCompiler, the user specifies the tools along with optional in-context examples, and LLMCompiler automatically computes an optimized orchestration for the function calls. LLMCompiler can be used with open-source models such as LLaMA, as well as OpenAI’s GPT models. Across a range of tasks that exhibit different patterns of parallel function calling, LLMCompiler consistently demonstrated latency speedup, cost saving, and accuracy improvement. For more details, please check out our paper.
1. Create a conda environment and install the dependencies
conda create --name llmcompiler python=3.10 -y
conda activate llmcompiler
2. Clone and install the dependencies
git clone https://github.com/SqueezeAILab/LLMCompiler
cd LLMCompiler
pip install -r requirements.txt
---
You can optionally use your Azure endpoint instead of OpenAI endpoint with --model_type azure. In this case, you need to provide the associated Azure configuration as the following fields in your environment: AZURE_ENDPOINT, AZURE_OPENAI_API_VERSION, AZURE_DEPLOYMENT_NAME, and AZURE_OPENAI_API_KEY.
You can use Friendli endpoint with --model_type friendli. In this case, you need to provide Friendli API key in your environment: FRIENDLI_TOKEN. Additionally, you need to install Friendli Client:
pip install friendli-client
After the run is over, you can get the summary of the results by running the following command:
python evaluate_results.py --file {store-path}
---
学术创新与工程实践结合的优质项目。并行执行机制具有显著性能优势,代码质量高,文档完整,适合前沿应用探索。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,LLMCompiler Agent工作流 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | LLMCompiler |
| 原始描述 | 开源AI工作流:ICML 2024 LLMCompiler: An LLM Compiler for Parallel Function Calling。⭐1.9k · Python |
| Topics | 工作流编排并行执行函数调用推理优化 |
| GitHub | https://github.com/SqueezeAILab/LLMCompiler |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端