-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[ci] fix: Add mbridge dependency into e2e_ascend #4560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,8 @@ RUN ARCH=$(uname -m) && \ | |
| echo "export PYTHONPATH=\$PYTHONPATH:/Megatron-LM" >> ~/.bashrc && \ | ||
| # Remove existing triton or triton-ascend installed by some third-party packages | ||
| pip uninstall -y triton triton-ascend && \ | ||
| # Install mbridge | ||
| pip install mbridge && \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To ensure reproducible Docker builds, it is a best practice to pin the versions of all installed packages. Using |
||
| # Clear extra files | ||
| rm -rf /tmp/* /var/tmp/* && \ | ||
| pip cache purge | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -129,6 +129,9 @@ MindSpeed 源码安装指令: | |||||
| # (可选)如希望 shell 关闭,或系统重启后,PYTHONPATH 环境变量仍然生效,建议将它添加到 .bashrc 配置文件中 | ||||||
| echo "export PYTHONPATH=$PYTHONPATH:\"$(pwd)/Megatron-LM\"" >> ~/.bashrc | ||||||
|
|
||||||
| # 安装 mbridge | ||||||
| pip install mbridge | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The installation instructions should specify a fixed version for
Suggested change
|
||||||
|
|
||||||
| MindSpeed 对应 Megatron-LM 后端使用场景,使用方式如下: | ||||||
|
|
||||||
| 1. 使能 verl worker 模型 ``strategy`` 配置为 ``megatron`` ,例如 ``actor_rollout_ref.actor.strategy=megatron``。 | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -33,6 +33,7 @@ vLLM-ascend 0.11.0rc1 | |||||
| Megatron-LM v0.12.1 | ||||||
| MindSpeed (f2b0977e) | ||||||
| triton-ascend 3.2.0rc4 | ||||||
| mbridge latest version | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using 'latest version' for a dependency is discouraged as it leads to non-reproducible environments and can introduce breaking changes unexpectedly. Please specify a fixed, known-working version for
Suggested change
|
||||||
| ================= ============ | ||||||
|
|
||||||
|
|
||||||
|
|
@@ -57,7 +58,7 @@ A3 8.3.RC1 `Dockerfile.ascend_8.3.rc1_a3 <https://github.com/ | |||||
| # Navigate to the directory containing the Dockerfile | ||||||
| cd {verl-root-path}/docker/ascend | ||||||
| # Build the image | ||||||
| docker build -f Dockerfile.ascend_8.2.rc1_a2 -t verl-ascend:8.2.rc1-a2 . | ||||||
| docker build -f Dockerfile.ascend_8.3.rc1_a2 -t verl-ascend:8.3.rc1-a2 . | ||||||
|
|
||||||
|
|
||||||
| 公开镜像地址 | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure reproducible Docker builds, it is a best practice to pin the versions of all installed packages. Using
pip install mbridgewill install the latest version, which could introduce breaking changes in the future and make builds non-deterministic. Please pin this dependency to a specific, known-working version.