@no_stp_on_snek: DeepSeek-V4.1-Flash on 2 Sparks. thinking high, TP=2. 55M tokens. Actual kernel work, not a demo. it read the notes and…

X AI KOLs Timeline Models

Summary

The article describes an optimization for the DeepSeek-V4.1-Flash AI model on Metal hardware, where the attention kernel was improved to only launch necessary tiles, reducing compute waste and enhancing inference speed.

DeepSeek-V4.1-Flash on 2 Sparks. thinking high, TP=2. 55M tokens. Actual kernel work, not a demo. it read the notes and prds, ran A against B, checked a win, then opened a PR. i watched it publish. i did not write it. The fix at a glance: causal attention is a "triangle". the kernel was still launching the square. every strictly-future tile still took a threadgroup slot, woke up, asked "am i even allowed?", and retired. on a giant GPU that's rounding error. on Metal, at the 128–192 token prefills you actually type into a local model, launch cost is a real slice of time-to-first-token. so only launch the on/below-diagonal tiles. T(T+1)/2 instead of T*T. same math. fewer wakes. M5 Max, full attn chain, interleaved A/B, 15 rounds: bf16 seq=192: 0.924x (−7.6%), 15/15 paired wins. at 128 you keep 10 of 16 tiles. a third of the launches were dead on arrival. not a new matmul. we just stopped paying for work the mask already threw away. the win is small. that's how you know it's the tax, not a bench trick.
Original Article
View Cached Full Text

Cached at: 09/16/26, 12:04 PM

DeepSeek-V4.1-Flash on 2 Sparks. thinking high, TP=2. 55M tokens. Actual kernel work, not a demo.

it read the notes and prds, ran A against B, checked a win, then opened a PR.

i watched it publish. i did not write it.

The fix at a glance: causal attention is a “triangle”. the kernel was still launching the square.

every strictly-future tile still took a threadgroup slot, woke up, asked “am i even allowed?”, and retired. on a giant GPU that’s rounding error. on Metal, at the 128–192 token prefills you actually type into a local model, launch cost is a real slice of time-to-first-token.

so only launch the on/below-diagonal tiles. T(T+1)/2 instead of T*T. same math. fewer wakes.

M5 Max, full attn chain, interleaved A/B, 15 rounds: bf16 seq=192: 0.924x (−7.6%), 15/15 paired wins. at 128 you keep 10 of 16 tiles. a third of the launches were dead on arrival.

not a new matmul. we just stopped paying for work the mask already threw away. the win is small. that’s how you know it’s the tax, not a bench trick.

Similar Articles

deepseek-ai/DeepSeek-V4-Pro-DSpark

Hugging Face Models Trending

DeepSeek releases preview versions of its V4 series, including DeepSeek-V4-Pro (1.6T parameters, 49B activated) and DeepSeek-V4-Flash (284B parameters, 13B activated), both supporting a one-million-token context and featuring hybrid attention, manifold-constrained hyper-connections, and a Muon optimizer.

Deepseek V4 Flash running on RTX 5090 MoE

Reddit r/LocalLLaMA

User shares optimization benchmarks for DeepSeek-V4-Flash (Q2_K) running on an RTX 5090 using a fork of llama.cpp, achieving 21.3 tokens/s generation and 1 million context size.

deepseek-ai/DeepSeek-V4-Flash-DSpark

Hugging Face Models Trending

DeepSeek releases V4 series of Mixture-of-Experts language models (Pro 1.6T/49B activated, Flash 284B/13B activated) supporting one-million-token context with hybrid attention and speculative decoding, claiming best open-source model performance.