fw-ai/cookbook
GitHub: fw-ai/cookbook
Fireworks AI 官方的生成式 AI 训练方案集,涵盖强化学习、偏好优化和监督微调,并提供可集成到多种编程代理的训练技能。
Stars: 184 | Forks: 52
# Fireworks AI Cookbook
适用于 [Fireworks](https://fireworks.ai) 的即用型训练方案,涵盖强化学习(GRPO、DAPO、GSPO、CISPO)、偏好优化(DPO、ORPO)以及监督微调(SFT)。
## 快速开始
```
git clone https://github.com/fw-ai/cookbook.git
cd cookbook/training
conda create -n cookbook python=3.12 -y && conda activate cookbook
pip install --pre -e .
```
有关配置、方案和示例,请参阅 [`training/README.md`](./training/README.md)。
## 面向 AI Agents
一项标准技能涵盖了完整的训练产品:**[`skills/fireworks-training/SKILL.md`](skills/fireworks-training/SKILL.md)**。它负责路由托管的 SFT/DPO/ORPO/RFT,以及 Training API 的 Serverless 或 Dedicated 工作流,随后逐步加载相关的 cookbook、运维或故障排除参考。
### Claude Code
```
claude plugin marketplace add fw-ai/cookbook
claude plugin install fireworks-training@fw-ai-cookbook
```
### Cursor
```
npx --yes skills add fw-ai/cookbook -g -s fireworks-training -a cursor -y
```
### Codex
```
npx --yes skills add fw-ai/cookbook -g -s fireworks-training -a codex -y
```
该技能是可移植的 Agent Skills Markdown。Cursor 和 Codex 的安装已通过
`skills` CLI 验证;它不仅限于 Claude 的紧凑界面。当 `firectl` 的 AI-agent 安全防护开启时,可能仍需在用户终端手动执行修改类命令。
## 仓库结构
`training/` 是主要的开发平台。`tools/` 包含独立的面向客户的
脚本(公开的 `firectl` 工作流)。其他顶级目录(`integrations/`、`multimedia/`、`archived/`)
为了向后兼容而保留。
```
training/ Training API recipes, utilities, and examples
recipes/ Fork-and-customize training loop scripts
utils/ Shared config, data loading, losses, metrics
examples/ Worked examples (RL, SFT, DPO, ORPO)
verifier/ Renderer correctness validator + live React viewer
tests/ Unit and end-to-end tests
tools/ Standalone customer scripts (downloadable from GitHub)
skills/ Agent skills and reference docs
```
## 训练技能
- **[`skills/fireworks-training/SKILL.md`](skills/fireworks-training/SKILL.md)** — 只需安装一次,然后让您的编程代理去规划、运行、恢复、部署或调试训练。该技能针对托管任务使用公开的 `firectl`,并针对自定义 Training API 循环使用此 cookbook。
## 贡献
请参阅[贡献指南](./Contribution.md)。
## 支持
- [文档](https://fireworks.ai/docs)
- [Discord](https://discord.gg/9nKGzdCk)
- [提交 Issue](https://github.com/fw-ai/cookbook/issues/new)
标签:AI代理, DLL 劫持, DPO, 大语言模型, 强化学习, 模型微调, 生成式AI, 索引, 逆向工具