Feature Request: Huawei Ascend / CANN backend for personal multi-NPU MoE workstations

Aperta
#1,329 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
c
Ambito
backend

Direzione di ricerca

The issue does not identify files, tests, or backend entry points. First read the existing Metal, CUDA, and ROCm backend structure to assess what a CANN/AscendCL backend would require across kernels, multi-NPU execution, memory management, and model support. Done would mean an agreed feasibility assessment and scope for experimental Ascend support; the issue asks questions and does not define implementation acceptance criteria.

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

Descrizione

Hi Salvatore and contributors,

First of all, congratulations on DwarfStar!

I really appreciate the philosophy behind the project: building a focused, highly optimized inference engine for a selection of excellent open-weight models, rather than trying to support every possible architecture.

I'm particularly interested in the work on large MoE models, specialized quantization, multi-GPU inference, and SSD streaming.

I'm evaluating building a dedicated personal AI workstation based on Huawei Atlas 300I Duo accelerators, and I'd like to ask whether adding Huawei Ascend support could be technically feasible.

My use case: personal AI workstation

I want to clarify something important about my intended usage.

This is a personal homelab/workstation, primarily for a single user, not a production inference server serving hundreds of concurrent requests.

My main activities include:

  • Local AI-assisted coding and software development.
  • Agentic workflows and experimentation with coding agents.
  • Running large, capable open-weight models locally.
  • Testing newer MoE architectures as they become available.
  • Using long contexts when necessary.

My priorities are the ability to run large models, good single-user interactive performance, reasonable latency, and efficient use of available memory.

I don't need the architecture to maximize aggregate throughput across hundreds of concurrent users.

In fact, I'd happily trade some total throughput for the ability to run a significantly larger or higher-quality model locally.

Hardware: Huawei Atlas 300I Duo

The Atlas 300I Duo is a PCIe inference accelerator based on two Huawei Ascend 310P processors.

Specifications:

  • 96 GB aggregate memory per card (2 × 48 GB)
  • PCIe 4.0 x16
  • Approximately 150 W maximum board power
  • Relatively affordable pricing compared with high-memory professional GPUs

A four-card workstation would provide:

  • 384 GB aggregate accelerator memory
  • 8 Ascend NPUs
  • Approximately 600 W maximum accelerator power

Of course, the memory is distributed across independent processors rather than being a unified memory pool.

Proposed support

I'd like to explore whether a CANN/AscendCL backend could enable DwarfStar to run large MoE models on this hardware.

The models I'm interested in include:

  • Qwen3.8-Flash-Next and future Qwen MoE architectures
  • GLM 5.x, including Flash and larger variants
  • DeepSeek V4 / V4.1 Flash and future versions
  • Other large sparse MoE models that DwarfStar may support in the future

I'm not particularly attached to one specific model family. My goal is to build a flexible local inference platform capable of running increasingly powerful open-weight models.

Technical questions

  1. Backend architecture: Would DwarfStar's current architecture allow a CANN/AscendCL backend, or would this require major restructuring?

  2. Multi-NPU inference: Could the existing tensor/pipeline parallelism mechanisms potentially be adapted to multiple Ascend 310P processors?

  3. Memory utilization: Would it be realistic to distribute a single large model across multiple Atlas 300I Duo cards and their independent memory pools?

  4. Expert offloading: Could DwarfStar's existing quantization and SSD streaming strategies be adapted to Ascend hardware?

  5. Quantization: Would the specialized low-bit formats require entirely new Ascend kernels, or could some components be reused?

  6. Single-user performance: Given that my workload is almost entirely single-user, could the hardware provide reasonable interactive generation speed even if its overall compute throughput is lower than modern NVIDIA accelerators?

  7. Hardware limitations: Are there fundamental limitations in the Ascend 310P architecture that would make inference with modern Qwen, GLM, or DeepSeek MoE models impractical, regardless of memory capacity?

  8. Community development: Would you consider accepting an experimental, community-maintained Ascend backend?

Why I think this could be interesting

One of DwarfStar's most appealing characteristics is its focus on making very capable models practical on hardware that individuals can actually own.

The possibility of building a workstation with 192–384 GB of aggregate accelerator memory, at a fraction of the price of equivalent professional NVIDIA hardware, seems worth exploring.

I understand that the Ascend software ecosystem is significantly different from CUDA, Metal, and ROCm, and that the Ascend 310P is not Huawei's latest architecture.

I'm not asking for an immediate implementation.

Before investing in the hardware, I'd primarily like to understand whether the architecture is technically viable, what the major obstacles would be, and whether it could be an interesting direction for DwarfStar.

Thanks for your work and for making this project open source!

Lingua principale
C
Stelle
24.4k
Fork
2.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 antirez/ds4

Tutte le issue di antirez/ds4

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.