[REQUEST] CI: Add Ascend NPU CI pipeline

Đang mở
#8,835 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

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
Công nghệ
github-actions, python, pytorch
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ả

enhancement

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:

  1. Provision the shared NPU runners and authorize them for this repository;
  2. 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 official ascendai/cann container;
  3. 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

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 deepspeedai org owner installs the ascend-runner-mgmt App
  • 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của deepspeedai/DeepSpeed

Tất cả issue của deepspeedai/DeepSpeed

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.