Prhub

#27824 docs: Diffusion Gemma cookbook

原始 PR 作者 kpham-sgl 合并时间 2026-06-11 00:33 文件变更 3 提交数 1 评论 1 代码增减 +313 / -1

执行摘要

新增 DiffusionGemma 部署 cookbook 文档

Split out of #27823 (DiffusionGemma model support). This PR carries only the Mintlify cookbook documentation for google/diffusiongemma-26B-A4B-it, so the docs can be reviewed independently of the runtime code.

值得阅读,可作为新模型接入的文档模板参考。建议关注 #27823 合入后实际运行时与文档描述的一致性。

讨论亮点

无公开讨论;PR 获得 1 位 reviewer 批准后直接合入。

实现拆解

  1. 新建 cookbook 页面:创建 docs_new/cookbook/autoregressive/Google/DiffusionGemma.mdx,包含模型介绍、架构参数表、启动命令、精度验证表等内容(+306 行)。
  2. 注册导航:在 docs_new/docs.json 的 Google 分组中添加 'cookbook/autoregressive/Google/DiffusionGemma' 页面引用(+2/-1)。
  3. 补充模型支持列表:在 docs_new/docs/supported-models/diffusion_language_models.mdx 中添加一行记录 DiffusionGemma 的架构特点(+5 行)。
文件 模块 状态 重要度
docs_new/cookbook/autoregressive/Google/DiffusionGemma.mdx 部署指南 added 5.62
docs_new/docs.json 导航配置 modified 3.0
docs_new/docs/supported-models/diffusion_language_models.mdx 模型支持表 modified 2.99

分析完成后,这里会展示 LLM 生成的相对完整源码片段和详细注释。

评论区精华

没有提炼出高价值讨论线程

当前评论区没有形成足够清晰的争议点或结论,后续有更多讨论时会体现在这里。

风险与影响

纯文档变更,无代码执行风险。文档内容基于已合入的 Gemma4 基础架构和 Gemma4Renoise sampler 的实现,不存在技术信息不准确的风险,但建议后续与运行时代码同步更新以保持一致性。

对用户:提供了 DiffusionGemma 模型的部署指导,降低上手成本。
对系统:无影响。
对团队:新增了需要维护的文档页面。

关联 Issue

未识别关联 Issue

当前没有检测到明确关联的 Issue 链接,后续同步到相关引用后会出现在这里。

完整报告

参与讨论