说实话,我没想到 Mini 在这个内核生成用例上表现得这么好!
Inkling-2-Mini 在单张 RTX PRO 6000 上本地运行,KernelBench-Mega 得分 10.04x,在同一 GPU 上击败了 Grok 4.7(6.34x)、GPT-6.1-Sol(4.96x)、DeepSeek-V4-Flash(4.32x)和 Claude Sonnet 5(3.92x),而 DeepSeek-V4.1-Flash、Kimi K3.1-Pro、Qwen3.8-Max 和 GLM-5.2 等模型在 RTX PRO 6000 上未能通过。 2.9 小时 trace(686k 输出 token)中的亮点: > 编写了一个单次启动、188 个 CTA 的持久化 Triton megakernel(1,119 行),融合了 3 个 KDA 块、1 个 MLA 块和 4 个 MoE 块,使用全局 release/acquire 原子屏障(约 0.75 us/同步),算子间零 kernel 启动 > 首个可运行的融合 kernel 达到 3.12x;它 profile 发现 Mem Busy 仅 20%,特意运行了一个无屏障的损坏构建来隔离同步开销,然后通过逐个跳过各阶段来二分定位 > 使用 MLA absorb 技巧避免具体化 [ctx, 8192] 的 BF16 矩阵,将 softmax + A + o 合并为一个阶段(每步减少 2 个全局屏障),并把 MoE gate/up 拆成每个 CTA 1 个 GEMV > 分数从 3.12x -> 6.82x -> 8.53x -> 10.04x 独立重新评级(ctx=8192 时 0.606 ms/tok,1,650 tok/s;ctx=2048 时 1,941 tok/s) 对最终的 1,119 行方案进行了端到端审计:干净的持久化 kernel,每步都是全新的状态和输出,竞争条件下 9.98x,独立条件下 10.04x。 不知道这对 looped transformers 意味着什么
原文
Inkling-2-Mini running locally on a single RTX PRO 6000 hit 10.04x on KernelBench-Mega, beating Grok 4.7 (6.34x), GPT-6.1-Sol (4.96x), DeepSeek-V4-Flash (4.32x), and Claude Sonnet 5 (3.92x) on the same GPU, while models like DeepSeek-V4.1-Flash, Kimi K3.1-Pro, Qwen3.8-Max, and GLM-5.2 failed to pass on RTX PRO 6000. highlights from the 2.9-hour trace (686k output tokens): > wrote a single-launch 188-CTA persistent Triton megakernel (1,119 lines) fusing 3 KDA blocks, 1 MLA block, and 4 MoE blocks with global release/acquire atomic barriers (~0.75 us/sync) and zero inter-op kernel launches > first working fused kernel hit 3.12x; it profiled Mem Busy at 20%, intentionally ran a broken no-barrier build just to isolate sync overhead, then bisected each phase by skipping it one by one > used the MLA absorb trick so the [ctx, 8192] BF16 matrix is never materialized, merged softmax + A + o into one phase (-2 global barriers/step), and split MoE gate/up to 1 GEMV per CTA > climbed 3.12x -> 6.82x -> 8.53x -> 10.04x isolated regrade (0.606 ms/tok, 1,650 tok/s at ctx=8192; 1,941 tok/s at ctx=2048) audited the final 1,119-line solution end-to-end: clean persistent kernel, fresh state and output every step, 9.98x contended vs 10.04x isolated. i wonder what this says about looped transformers
来源:Soumith Chintala · x.com