Granite Build 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
Granite Build 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Granite Build 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install granite.build
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install granite.build
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/ibm-granite/granite.build
cd granite.build
pip install -e .
# 验证安装
python -c "import granite.build; print('安装成功')"
# 命令行使用
granite.build --help
# 基本用法
granite.build input_file -o output_file
# Python 代码中调用
import granite.build
# 示例
result = granite.build.process("input")
print(result)
# granite.build 配置文件示例(config.yml) app: name: "granite.build" debug: false log_level: "INFO" # 运行时指定配置文件 granite.build --config config.yml # 或通过环境变量配置 export GRANITE.BUILD_API_KEY="your-key" export GRANITE.BUILD_OUTPUT_DIR="./output"
hf:// URIsbuild.yamlgb command for build management, artifact handling, model operations, and more/api/v1Build orchestration for LLM pipelines. Define multi-step model workflows in YAML — download, fine-tune, evaluate, and deploy — and run them locally or on cloud infrastructure.
This repository is currently in alpha. The code and documentation are under active development and may change frequently as we work to improve usability and reliability. Contributions and feedback are welcome, but please be aware that breaking changes may occur.
Granite.Build orchestrates LLM build pipelines. You describe your workflow in a build.yaml file — which models to download, how to fine-tune them, what evaluations to run — and Granite.Build executes each step in the environment you choose: a local Docker container, a Kubernetes cluster, a cloud GPU instance, or a plain bash process on your laptop.
The system has three main components:
/api/v1) for build management and a build watcher that polls for pending builds and dispatches them to execution environments. It stores build metadata in SQLite (standalone) or PostgreSQL (production).<p align="center"> <img src="docs/images/build-structure.jpg" alt="Build Structure" width="50%" /> </p>
make standalone-venv PYTHON=python3.13 source .venv/bin/activate
cd granite.build source .venv/bin/activate export GB_ENVIRONMENT=STANDALONE gb build start -f samples/standalone/standalone-quickstart/build.yaml
A minimal pipeline that runs a single step in a Docker container:
llm.build: # alias: granite.build (both keys are accepted)
name: my-build
targets:
download:
environment_uri: space://environments/docker
inputs:
model:
uri: hf://huggingface.co/ibm-granite/granite-3.3-2b-instruct
outputs:
model:
uri: file:workspace/model
steps:
- step_uri: space://steps/somestep
A multi-target pipeline chains stages through bindings:
llm.build:
name: tune-and-eval
targets:
download:
environment_uri: space://environments/docker
outputs:
model: { uri: file:workspace/model }
steps:
- step_uri: space://steps/somestep
fine-tune:
environment_uri: space://environments/docker
inputs:
model: { binding: download.model }
outputs:
checkpoint: { uri: file:workspace/checkpoint }
steps:
- step_uri: space://steps/sft
evaluate:
environment_uri: space://environments/docker
inputs:
model: { binding: fine-tune.checkpoint }
steps:
- step_uri: space://steps/eval
For the full schema, see docs/users/build-yaml-reference.md.
make demo-venv PYTHON=python3.13 && source .venv/bin/activate bash scripts/demo-standalone.sh
make g4os-skypilot-venv PYTHON=python3.13 && source .venv/bin/activate make minio-setup && make slurm-setup bash scripts/demo-slurm.sh ```
Five commands to a running build, using the bundled standalone-quickstart sample.
In a new terminal, run the following: ```bash
End-to-end demos with TRL fine-tuning and unitxt evaluation. Each runs locally and tears down cleanly. Full setup instructions in docs/demos.md.
```bash
| Environment | Platform | GPU Support | Status |
|---|---|---|---|
| Docker | Linux, macOS | Yes (nvidia-container-toolkit) | Stable |
| Bash | macOS / Linux | CPU only | Stable |
| Kubernetes | Linux | Yes | Stable |
| SLURM (via SkyPilot) | Linux | Yes (auto-detected) | Beta |
| RunPod | Cloud | Yes | Beta |
| SkyPilot / AWS | Cloud | Yes | Beta |
The REST API is available at /api/v1 when the server is running. Start with gbserver standalone or gbserver rest-server and visit http://localhost:8080/docs for the interactive OpenAPI documentation. Authentication options (GitHub, IBMid, API key) are documented in docs/operators/multi-provider-authentication.md.
高质量的AI工作流管道编排工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,Granite Build 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | granite-build |
| Topics | AI工作流Python |
| GitHub | https://github.com/ibm-granite/granite.build |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-06-17 · 更新时间:2026-06-17 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端