[REQUEST] CI: Add Ascend NPU CI pipeline
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
- Ambito
- ci-cd, machine-learning
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
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!
- Lingua principale
- Python
- Stelle
- 43.3k
- Fork
- 5.1k
- Merge medio
- 5g 10h
- PR unite (30g)
- 85
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di deepspeedai/DeepSpeed
-
[Bug] DeepSpeedEngine.step leaves _running_engine_step=True permanently on exception, corrupting is_gradient_accumulation_boundary()Forse già presa @its-amann l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
deepspeedai/DeepSpeed#9190 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] PipelineEngine._exec_reduce_grads and _exec_optimizer_step leave _force_grad_boundary=True permanently after any exceptionForse già presa @bantianyue l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepspeedai/DeepSpeed#9183 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
deepspeedai/DeepSpeed#9019 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
fp16 `hysteresis: 0` (or negative) makes DynamicLossScaler never lower the loss scale, so every overflowing step is skipped foreverForse già presa @damienen l’ha presa 26 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
deepspeedai/DeepSpeed#8982 ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG] OneCycle applies the minimum momentum to the first Adam updateForse già presa @ai-yang l’ha presa 30 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepspeedai/DeepSpeed#8951 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di deepspeedai/DeepSpeed
Issue simili
-
area/auth comp/agent P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NousResearch/hermes-agent#161417 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Dao-AILab/flash-attention#3251 ·
I maintainer di solito rispondono entro 2 giorni
-
[New Check]: sqlserver_public_network_access_disabledForse già presa @pouria-l l’ha presa oggi. Apertafeature-request status/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
prowler-cloud/prowler#13607 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
external langchain
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
langchain-ai/docs#8184 ·
I maintainer di solito rispondono entro 1 giorno