[XPU] [CI] Change Paddle Version to Nightly#5346
[XPU] [CI] Change Paddle Version to Nightly#5346plusNew001 merged 13 commits intoPaddlePaddle:developfrom
Conversation
Comment out the previous paddlepaddle-xpu installation command and replace it with a specific version installation due to EP parallel error.
There was a problem hiding this comment.
Pull request overview
This PR changes the PaddlePaddle-XPU installation method in the pytest CI script from a specific locked nightly build (dated 20251123) to using the latest available nightly version via the official package repository.
Key Changes:
- Modified installation command to use
--pre paddlepaddle-xpufrom the nightly repository instead of a direct wheel URL - Aligns with the documented installation pattern shown in the project's documentation
| # 安装PaddlePaddle | ||
| echo "安装PaddlePaddle..." | ||
| python -m pip install https://paddle-whl.bj.bcebos.com/nightly/xpu-p800/paddlepaddle-xpu/paddlepaddle_xpu-3.3.0.dev20251123-cp310-cp310-linux_x86_64.whl | ||
| python -m pip install --pre paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/ |
There was a problem hiding this comment.
根据自定义审查指南,PR描述信息不完整。描述中缺少关键信息:
- 动机(Motivation)部分为空: 需要说明为什么要将此CI脚本从固定版本的paddlepaddle-xpu改为使用最新的nightly版本。
- 修改内容(Modifications)部分为空: 需要详细说明具体做了哪些修改。
- 缺少与scripts/run_ci_xpu.sh的对比说明: 在scripts/run_ci_xpu.sh文件的第49行有注释"由于ep并行报错暂时锁死paddle版本",该脚本仍然使用固定版本。需要解释为什么run_xpu_ci_pytest.sh可以使用最新nightly版本,而run_ci_xpu.sh不能。
建议补充完整的PR描述,说明:
- 为什么需要这个修改
- 这个修改解决了什么问题
- 为什么pytest CI可以使用最新nightly版本而不会遇到EP并行报错的问题
| python -m pip install --pre paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/ | ||
|
|
There was a problem hiding this comment.
这个变更从固定版本的paddlepaddle-xpu切换到最新的nightly版本,可能会引入CI稳定性问题。建议:
- 添加注释说明: 在这行代码上方添加注释,解释为什么这个CI脚本使用nightly版本是安全的(与scripts/run_ci_xpu.sh的区别)。
- 考虑版本验证: 在安装后添加版本验证步骤,记录安装的实际版本号,便于在CI失败时快速定位是否与版本变化有关。
例如:
# 安装PaddlePaddle
echo "安装PaddlePaddle..."
# pytest CI不涉及EP并行,可以使用最新nightly版本
python -m pip install --pre paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/
# 记录实际安装的版本
python -c "import paddle; print(f'PaddlePaddle version: {paddle.__version__}')"| python -m pip install --pre paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/ | |
| # pytest CI不涉及EP并行,此处可安全使用最新nightly版本,与scripts/run_ci_xpu.sh不同 | |
| python -m pip install --pre paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/ | |
| # 记录实际安装的PaddlePaddle版本,便于CI问题定位 | |
| python -c "import paddle; print(f'PaddlePaddle version: {paddle.__version__}')" |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5346 +/- ##
==========================================
Coverage ? 59.25%
==========================================
Files ? 325
Lines ? 40220
Branches ? 6089
==========================================
Hits ? 23833
Misses ? 14553
Partials ? 1834
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks for your contribution! |
Motivation
Modifications
Usage or Command
Accuracy Tests
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.