[REQUEST] CI: Add Ascend NPU CI pipeline
Maintainer thường phản hồi trong vòng 2 ngày
@loadams đang làm issue này rồi.
Từ ngày 19/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- ci-cd, machine-learning
Hướng nghiên cứu
Read accelerator/npu_accelerator.py, op_builder/npu/, and the linked Ascend runner documentation to understand the existing NPU backend and runner setup. The proposed workflow belongs in .github/workflows/ascend-npu.yml; its runner label, image tag, install steps, and tests are still to be finalized with the Ascend team. Done means the runner is provisioned and authorized, and the non-blocking workflow PR runs successfully.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
DeepSpeed already ships an Ascend NPU backend (accelerator/npu_accelerator.py, op_builder/npu/, CANN + torch_npu), but there is no upstream CI running on NPU hardware. NPU-related changes can merge without ever running on a device, and regressions are only caught by downstream users.
Describe the solution you'd like
Add an Ascend NPU workflow using the Ascend community's public GitHub Actions runner program (https://ascend-gha-runners.github.io/docs/user-manual-gha-en/), which provides hosted Ascend NPU runners at no cost to DeepSpeed.
This needs one action from a deepspeedai org owner: install the ascend-runner-mgmt GitHub App, scoped to the DeepSpeed repository (or the whole organization):
https://github.com/apps/ascend-runner-mgmt
The App only requests read/write access to administration and organization self-hosted runners — no code access, no secrets, no Actions write.
After it's installed, the Ascend team will:
- Provision the shared NPU runners and authorize them for this repository;
- Open a PR adding
.github/workflows/ascend-npu.yml, kept non-blocking initially (workflow_dispatch+ a nightly schedule + PR runs filtered to NPU-related paths), running in an officialascendai/canncontainer; - Own runner capacity, workflow stability, and triage/fixes for NPU-specific failures.
Describe alternatives you've considered
- Tests in an Ascend-managed external CI repository: fine for nightly monitoring, but the results never appear on DeepSpeed PRs, so maintainers can't gate merges on them and contributors don't see NPU status.
- DeepSpeed self-managing NPU runners: this would require maintainer-owned machines and credentials, which the hosted runner program avoids.
Additional context
- Runner program docs: https://ascend-gha-runners.github.io/docs/user-manual-gha-en/
Planned workflow shape (the exact runner label and image tag will be finalized in the PR once the runners are provisioned):
name: ascend-npu
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- ".github/workflows/ascend-npu.yml"
- "accelerator/npu_accelerator.py"
- "accelerator/abstract_accelerator.py"
- "accelerator/real_accelerator.py"
- "op_builder/npu/**"
jobs:
unit-tests:
runs-on: <ascend runner label, e.g. linux-aarch64-a2-4>
container:
image: ascendai/cann:latest
steps:
- uses: actions/checkout@v4
- name: Verify NPU
run: npu-smi info
- name: Install torch + torch_npu
run: ...
- name: Install DeepSpeed
run: pip install .
- name: Unit tests
run: ...
Checklist:
- A
deepspeedaiorg owner installs theascend-runner-mgmtApp - Ascend team provisions and authorizes the shared runners
- Workflow PR opened and green
- Follow-up PRs to expand NPU test coverage
Happy to answer any questions about the runner setup or the security model here. Thanks!
- Ngôn ngữ chính
- Python
- Star
- 43.3k
- Fork
- 5.1k
- Merge trung bình
- 5 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 85
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của deepspeedai/DeepSpeed
-
[Bug] DeepSpeedEngine.step leaves _running_engine_step=True permanently on exception, corrupting is_gradient_accumulation_boundary()Có thể đã có người làm @its-amann đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
deepspeedai/DeepSpeed#9190 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] PipelineEngine._exec_reduce_grads and _exec_optimizer_step leave _force_grad_boundary=True permanently after any exceptionCó thể đã có người làm @bantianyue đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
deepspeedai/DeepSpeed#9183 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
deepspeedai/DeepSpeed#9019 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
fp16 `hysteresis: 0` (or negative) makes DynamicLossScaler never lower the loss scale, so every overflowing step is skipped foreverCó thể đã có người làm @damienen đã nhận 26 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
deepspeedai/DeepSpeed#8982 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[BUG] OneCycle applies the minimum momentum to the first Adam updateCó thể đã có người làm @ai-yang đã nhận 30 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
deepspeedai/DeepSpeed#8951 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của deepspeedai/DeepSpeed
Issue tương tự
-
area/auth comp/agent P3 type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#161417 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Dao-AILab/flash-attention#3251 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[New Check]: sqlserver_public_network_access_disabledCó thể đã có người làm @pouria-l đã nhận hôm nay. Đang mởfeature-request status/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
prowler-cloud/prowler#13607 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
external langchain
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
langchain-ai/docs#8184 ·
Maintainer thường phản hồi trong vòng 1 ngày