Merged
fix: declare Grain runtime dependency #1145
fix: declare Grain runtime dependency #1145
Merged
1Fire4Add on Oct 31
1Fire4
1Fire4Collaborators
Oct 31

描述

在 requirements.txt 中补充 grain==0.2.18,显式声明数据加载所需的运行时依赖,避免环境缺少 Grain 时导入失败。版本与固定上游 TorchTitan 及现有 UT、集成测试安装脚本一致。

类型

Checklist:

如何测试

无

精度和性能验证结果

仅补充依赖声明,没有模型、算子或训练逻辑改动。依据精度对齐开发指南第 3 节的非数值改动例外,跳过数值及性能验证。

其他信息

无。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for 1Fire4's contribution.)
1Fire41Fire4Collaborators
Oct 31 Created pull request, commit 31267f25
atomgit-bot
atomgit-botCollaborators
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 环境出现版本差异。
  • 改动范围限定: 本次仅涉及单一依赖声明文件的一行新增,没有接口、数据结构或训练流程变化,因此不涉及数值精度与性能验证。
likedislike
Incorrect?
atomgit-bot
atomgit-botCollaborators
Oct 31 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Oct 31 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

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

compile

likedislike
1Fire41Fire4Collaborators
Oct 31 Pre merge succeeded (commit_id: 6fbda0f16197354b9f09134bc894d8715de4560c)
CANN-robot
CANN-robotCollaborators
Oct 31 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 31 Added label: ci-pipeline-running
weijinyi
weijinyiCollaborators
Oct 31 Comments:

/lgtm

likedislike
1Fire41Fire4Collaborators
Oct 31 Modify description of pull request
CANN-robotCANN-robotCollaborators
Oct 31 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 31 Added label: ci-pipeline-passed
xuyujun
xuyujunCollaborators
Oct 31 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Oct 31 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Oct 31 Merged pull request
1Fire41Fire4Collaborators
23 days ago Associated issue: [RFC] TorchTitan v0.4.0 分阶段升级规划与进度跟踪