DeepSeek V4 Flash on a single AMD MI300X
This repository provides a production-ready setup for running DeepSeek V4 Flash on a single AMD MI300X GPU. It includes a Docker Compose stack, vLLM configuration, hardware-specific fixes for MI300X compatibility, and performance tuning tables for optimized inference.
Why is AMD MI300X suitable for running DeepSeek V4 Flash?
The MI300X features 192 GB of HBM3 memory and 5.3 TB/s bandwidth—2.4× more capacity than an H100 SXM5. The entire 304B model fits in memory without PCIe streaming, leaving room for GPU KV cache and CPU offload of evicted cache entries. It also costs roughly half as much at list price.
What were the main technical challenges for running on MI300X?
MI300X uses the AMD/Graphcore E4M3 FP8 variant while newer GPUs use OCP-standard FP8, requiring compatibility fixes. Additional challenges included missing AITER fast paths on gfx942, HIP-graph hazards in sparse MLA decode, and MoE routing bugs at high concurrency. The repository includes pre-packaged fixes.
What performance does this configuration achieve?
Single-stream decode: 168.6 tok/s, prefill: 7.9–8.5K tok/s, 8 concurrent streams: 542 tok/s aggregate, 64-stream burst without OOM. The model validates 256K context (architecture supports 1M).
What does this repository add beyond the official vLLM recipe?
It provides correctness overlays for MI300X compatibility, a validated serving configuration with DSpark-7 speculative decoding, AITER GEMM tuning tables for gfx942, and a hybrid KV strategy combining 20 GB GPU cache with 96 GiB CPU offload. The official vLLM recipe targets NVIDIA and newer AMD GPUs, not single-MI300X deployments.
- DeepSeek makes its cheapest model more powerful: DeepSeek-V4-Flash — huggingface.co 80 % match
- DRAM controller vulnerability: accessing protected CPU regions via address translation manipulation — github.com 78 % match
- Experiment with Gemma 4 as an offline translator — github.com 75 % match
- DeepSeek V4 Flash
- AMD MI300X
- vLLM3
- Docker Compose
- ROCm
- AITER
- DSpark
- Caddy
- HuggingFace