Metraipolis › archive › dc_55c443de6cd9

DeepSeek-V4-Flash on AMD gfx90a: Correctness Recovery and Inference Performance Engineering — arXiv:2609.15627

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.15627
License (as archived)
CC0-1.0
Archived
2026-10-15T23:17:41.860Z
SHA-256 of the archived text
01da458fd1c0d52474d05ed11dd150a4c0cc874b6fa84e6857800da526832316
Stable URL of this page
https://metraipolis.com/documento/dc_55c443de6cd9

How to cite

DeepSeek-V4-Flash on AMD gfx90a: Correctness Recovery and Inference Performance Engineering — arXiv:2609.15627 — arXiv (en), https://arxiv.org/abs/2609.15627 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_55c443de6cd9 (Metraipolis archive dc_55c443de6cd9, sha256 01da458fd1c0d52474d05ed11dd150a4c0cc874b6fa84e6857800da526832316)
BibTeX
@misc{dc55c443de6cd9,
  title = {DeepSeek-V4-Flash on AMD gfx90a: Correctness Recovery and Inference Performance Engineering — arXiv:2609.15627},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.15627},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_55c443de6cd9; sha256 01da458fd1c0d52474d05ed11dd150a4c0cc874b6fa84e6857800da526832316},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.15627. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

We present the enablement, correctness recovery, and performance engineering of DeepSeek-V4-Flash inference on AMD Instinct MI250 GPUs using the gfx90a/CDNA2 architecture. The system integrates native safetensors loading, tensor and expert parallelism, FP4 routed mixture-of-experts computation, FP8 dense projections, sparse attention, HIP graph execution, and OpenAI-compatible serving within SGLang. An initially fast execution path was found to be numerically incorrect because of a routed-expert W2 layout mismatch. We identify the output permutation, repair the weight layout at load time, and establish fixed-token and hash-based correctness checks before further optimization. On the corrected path, decode performance is improved through packed FP4 weights, INT8 activation quantization, CDNA2 dot-product instructions, peer-read all-reduce, and topology-aware kernel geometry. Prefill is accelerated using CDNA2 MFMA kernels, improved packed-weight reuse, reduced sparse-attention overhead, larger chunks, and retuned expert sorting. On four MI250 GCDs, TP4/EP1 native autoregressive decode reaches approximately 74.5 tok/s, while a 4,604-token prompt reaches 2.061-2.062 s TTFT, or approximately 2,234 input tok/s. The results show that efficient DeepSeek-V4-Flash inference on CDNA2 is limited not only by memory bandwidth, but also by FP4 execution-format mismatch, low-M utilization, and per-layer synchronization costs.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-15 in cs.DC).
Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC) ; Hardware Architecture (cs.AR); Performance (cs.PF).
Pagina del lavoro: https://arxiv.org/abs/2609.15627 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T22:54:12.993Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).