Merged
fix: declare Grain runtime dependency #1145
1Fire4Add on Oct 31
fix: declare Grain runtime dependency #1145
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for 1Fire4's contribution.)atomgit-bot
Oct 31 Comments:
Oct 31 Comments:
变更摘要
本次改动为缺陷修复,目的是显式声明数据加载所需的运行时依赖:在 requirements.txt 中补充 grain==0.2.18,避免环境缺少 Grain 时出现导入失败。该版本与固定上游 TorchTitan 提交及现有单元测试、集成测试安装脚本保持一致,属于纯依赖声明补充,不涉及模型、算子或训练逻辑变更。
主要改动
- 补充 Grain 运行时依赖: 在
requirements.txt中新增一条grain==0.2.18声明,使数据加载相关依赖不再依赖环境的隐式安装。 - 统一依赖版本基线: 所选版本
grain==0.2.18与固定上游 TorchTitan 的包元数据以及.ci/unit_test.sh、.ci/common.sh中的版本保持一致,避免本地环境与 CI 环境出现版本差异。 - 改动范围限定: 本次仅涉及单一依赖声明文件的一行新增,没有接口、数据结构或训练流程变化,因此不涉及数值精度与性能验证。


Incorrect?
atomgit-bot
Oct 31 Comments:
Oct 31 Comments:
Oct 31 Added label: cann-cla/yes
CANN-robot
Oct 31 Comments:
Oct 31 Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/torchtitan-npu | ✅ xuyujun, lrwei0709 (2/2) | ✅ xuyujun (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
hitwdy, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Oct 31 Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
Oct 31 Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
Oct 31 Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
Oct 31 Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
Oct 31 Modify description of pull request
1Fire4
Oct 31 Comments:
Oct 31 Comments:
compile


Oct 31 Pre merge succeeded (commit_id: 6fbda0f16197354b9f09134bc894d8715de4560c)
CANN-robot
Oct 31 Comments:
Oct 31 Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


Oct 31 Added label: ci-pipeline-running
weijinyi
Oct 31 Comments:
Oct 31 Comments:
/lgtm


Oct 31 Modify description of pull request
Oct 31 Removed label: ci-pipeline-running
Oct 31 Added label: ci-pipeline-passed
xuyujun
Oct 31 Comments:
Oct 31 Comments:
/approve


Oct 31 Added label: lgtmapproved
Oct 31 Merged pull request
23 days ago Associated issue: [RFC] TorchTitan v0.4.0 分阶段升级规划与进度跟踪
描述
在
requirements.txt中补充grain==0.2.18,显式声明数据加载所需的运行时依赖,避免环境缺少 Grain 时导入失败。版本与固定上游 TorchTitan 及现有 UT、集成测试安装脚本一致。类型
Checklist:
如何测试
无
精度和性能验证结果
仅补充依赖声明,没有模型、算子或训练逻辑改动。依据精度对齐开发指南第 3 节的非数值改动例外,跳过数值及性能验证。
其他信息
无。