{"slug": "large-batch-deepseek-v4-1-flash-on-four-16-gb-amd-gpus-api-accuracy-at-api-cost", "title": "Large-batch DeepSeek-v4.1-Flash on four 16 GB AMD GPUs: API accuracy at API cost", "summary": "A four-GPU Radeon RX 9070 XT machine with 256 GB of RAM running DeepSeek-V4.1-Flash at its original MXFP4 quantization matched or beat hosted API deployments of the same model on the BIRD text-to-SQL benchmark, scoring 61.8% on the original 500-question mini-dev set versus 59.8% for the DeepSeek API, 60.2% for DeepInfra and 60.2% for Wafer, at an electricity cost of €0.012 per run. Batching all 500 questions at once raised generation to 228 tokens/s (about 360 at peak over 10 seconds) and finished the job in 3.5 minutes, cutting energy use to 1.29 Wh per 1k tokens from 12.8 Wh at batch size 1. On BIRD's 2026 revision the box scored 50.6% at €0.13 versus 50.8% for the DeepSeek API at €0.22, while Qwen3.8-Flash-Next on the same machine fell from 67.2% to 32.4% between the two benchmark versions.", "body_md": "AMD local inference has come a long way recently, thanks to projects like [radiance](https://codeberg.org/StillDeadcode/radiance).\nI’ve been successfully running Qwen3.8-Flash-Next (FP8, with 4-bit IQ4 experts) on four Radeon RX 9070 XTs and 256 GB of RAM for large NL-to-SQL\nworkloads, at around 220 tokens/s for a single session and 500-600 with eight at once. For this task, model quality is\ncritical. Inference engines like [Strata](https://github.com/Niko1221/Strata) fit big models on consumer hardware by quantizing\nthem to 2-3 bits per weight and, for single requests, by default even skipping some of a token’s experts when\nthey aren’t on the GPU; I wanted to see whether this machine could run a much bigger model as it was released:\nDeepSeek-V4.1-Flash, with its original MXFP4 experts.\n\nAt 416 GB it is far bigger than the GPUs’ 64 GB of VRAM, so most of it has to come from RAM or the SSD. With only a few requests, each expert copied to a GPU is used for just one or two tokens, and one request at a time gives 25-35 tokens/s. But its compressed KV cache needs only about 10 MB per GPU for a 1,000-token request, so hundreds of requests fit at once. The obvious experiment: keep raising the batch size until something breaks. With a few tweaks, it went further than expected: with all 500 questions of the BIRD text-to-SQL benchmark at once, the box generates 228 output tokens per second (about 360 at its peak, measured over 10 seconds) and finishes the job in 3.5 minutes. On BIRD’s 2026 revision, whose prompts ask for reasoning before the SQL, it generates 155 tokens/s for 39 minutes.\n\n| Original BIRD, at once | Generating, tok/s | Whole job, tok/s | Wh per 1k tokens | \n|---|---|---|---|\n| 1 | 34 | 14 | 12.8 | \n| 8 | 59 | 33 | 5.0 | \n| 64 | 79 | 46 | 3.5 | \n| 256 | 164 | 108 | 1.72 | \n| [**500**](#timeline-original) | **228** | **151** | **1.29** | \n\n| BIRD 2026, at once | Generating, tok/s | Whole job, tok/s | Wh per 1k tokens | \n|---|---|---|---|\n| 1 | 25 | 21 | 8.6 | \n| 8 | 37 | 35 | 4.1 | \n| 64 | 53 | 50 | 2.9 | \n| 256 | 101 | 94 | 1.83 | \n| [**500**](#timeline-2026) | **155** | **137** | **1.34** | \n| [*1,534 (dev, continuous)*](#timeline-continuous) | *197* | *154* | *1.20* | \n\n“Whole job” includes prompt processing. The last row: BIRD’s larger dev set in the same prompt format, fed through 512\nslots ([chart](#timeline-continuous)). Power (GPUs + CPU) ranges from 520 to 700 W across the batch sizes, so 500 at\nonce needs six to ten times less energy per token than one at a time.\n\nThe answers hold up against the API deployments of the same model. BIRD, the text-to-SQL benchmark, has two versions of its 500-question mini-dev set: the original from 2024 and a 2026 revision with corrected reference answers and official prompts:\n\n| Who runs the model | Original accuracy | cost | BIRD 2026 accuracy | cost | \n|---|---|---|---|---|\n| **This box, DeepSeek-V4.1-Flash** | **61.8%** | **€0.012** | **50.6%** | **€0.13** | \n| DeepSeek API | 59.8% | €0.031 | 50.8% | €0.22 | \n| DeepInfra | 60.2% | €0.015 | 47.2% | €0.12 | \n| Wafer | 60.2% | €0.021 | 49.0% | €0.16 | \n| *Other models* |  |  |  |  | \n| Qwen3.8-Flash-Next, this box | 67.2% | €0.005 | 32.4% | €0.025 | \n| Claude Haiku 5.5 | 62.0% | €0.10 | 53.4% | €0.28 | \n| GPT-6 Luna | 55.8% | €0.063 | 43.0% | €0.17 | \n\nThis box’s cost is the electricity of its GPUs and CPU (from their own sensors; RAM, board and power supply losses come on top) at an assumed €0.30/kWh. API costs were billed through OpenRouter on 16 November 2026, at $1.12 per euro. All runs with thinking off and temperature 0, except Haiku and Luna, which ran at their default sampling because they don’t accept temperature 0.\n\nThe two BIRD versions tell different stories about Qwen. On the original benchmark it clearly beats DeepSeek-V4.1-Flash, while on the revision it falls from 67.2% to 32.4%. Every other model loses about 9 to 13 points on the revision; Qwen loses 35. One explanation could be that some models know the original set too well; the revision’s new prompts and answers may also play a part.", "url": "https://wpnews.pro/news/large-batch-deepseek-v4-1-flash-on-four-16-gb-amd-gpus-api-accuracy-at-api-cost", "canonical_source": "https://alexselzer.com/posts/large-batch-local-inference/", "published_at": "2026-11-27 15:51:57+00:00", "updated_at": "2026-11-27 16:15:36.958549+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-chips"], "entities": ["DeepSeek", "DeepSeek-V4.1-Flash", "AMD", "Radeon RX 9070 XT", "BIRD", "Qwen3.8-Flash-Next", "DeepInfra", "OpenRouter"], "also_reported_by": [], "takeaway": "Running DeepSeek-V4.1-Flash on four 16 GB Radeon RX 9070 XTs at batch size 500 reached 228 generation tokens/s and 1.29 Wh per 1k tokens, six to ten times less energy per token than batch size 1, while matching the DeepSeek API's BIRD accuracy (61.8% vs 59.8%).", "recommendation": {"advice": "Batch hundreds of requests at once when serving a large MoE model with a small compressed KV cache; going from batch 1 to 500 cut energy from 12.8 to 1.29 Wh per 1k tokens and raised generation from 34 to 228 tokens/s.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/large-batch-deepseek-v4-1-flash-on-four-16-gb-amd-gpus-api-accuracy-at-api-cost", "markdown": "https://wpnews.pro/news/large-batch-deepseek-v4-1-flash-on-four-16-gb-amd-gpus-api-accuracy-at-api-cost.md", "text": "https://wpnews.pro/news/large-batch-deepseek-v4-1-flash-on-four-16-gb-amd-gpus-api-accuracy-at-api-cost.txt", "jsonld": "https://wpnews.pro/news/large-batch-deepseek-v4-1-flash-on-four-16-gb-amd-gpus-api-accuracy-at-api-cost.jsonld"}}