Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/ascend_tutorial/ascend_quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ verl 中昇腾暂不支持生态库如下:
data.filter_overlong_prompts=True \
data.truncation='error' \
actor_rollout_ref.model.path=Qwen/Qwen2.5-0.5B-Instruct \
+actor_rollout_ref.model.override_config.attn_implementation=sdpa \
actor_rollout_ref.actor.optim.lr=5e-7 \
actor_rollout_ref.model.use_remove_padding=False \
actor_rollout_ref.actor.entropy_coeff=0.001 \
Expand Down
5 changes: 2 additions & 3 deletions verl/utils/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def get_device_capability(device_id: int = 0) -> tuple[int | None, int | None]:

return major, minor


def get_npu_versions() -> tuple[str, str]:
"""Get the software version and CANN toolkit version for NPU devices.

Expand All @@ -194,12 +193,12 @@ def get_npu_versions() -> tuple[str, str]:
RuntimeError: If unable to retrieve version information
"""
# Check npu-smi software version
result = subprocess.run(["npu-smi", "info", "-t", "board", "-i", "1"], capture_output=True, text=True, check=True)
result = subprocess.run(["npu-smi", "info"], capture_output=True, text=True, check=True)

# Parse software version from output
software_version = None
for line in result.stdout.split("\n"):
if "Software Version" in line:
if "Version" in line:
# Extract version from line like: "Software Version : 25.3.rc1.2"
parts = line.split(":")
if len(parts) > 1:
Expand Down