[REQUEST] CI: Add Ascend NPU CI pipeline

Aperta
#8,835 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@loadams ci sta già lavorando.

Dal 19/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, python, pytorch

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Python
Stelle
43.3k
Fork
5.1k
Merge medio
5g 10h
PR unite (30g)
85

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di deepspeedai/DeepSpeed

Tutte le issue di deepspeedai/DeepSpeed

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.