
We're grateful to @difficultyang for the discussions. We've added what came out of them, relaxed polling and CTA residency, to our blog post:
blog.mlc.ai/2026/11/24/what-…
Two takeaways for tx-verify:
1. Modeling PTX precisely is subtle, and defining safety, progress, termination and correctness on top of it is even more so. More litmus tests would help us pin these questions down. Our core model is, as we stated in the blog, far from a standard, precise, and complete formalization of PTX.
2. Some questions will always be beyond what the model can settle. So the question we want to answer is: what do we have to trust to believe a kernel is correct, and can we write those conditions down? That's where the core/assumption split comes in.
A better core will always fit in. The two work in synergy: the better the core, the fewer assumptions we need to write down.
🤖 Made with AI
Formally verifying production Blackwell GPU kernels at the PTX level is insanely intricate.
First, we still lack a precise model of Blackwell PTX in Lean.
Second, for some of these kernels, even a perfect model would be inherently insufficient to prove safety, progress, termination, and the specified result.
In the post, we explain why and show how TxVerify’s core/assumption split makes explicit what else we must trust to prove these kernels correct. blog.mlc.ai/2026/11/24/what-…
We evaluated TxVerify on 13 Blackwell GPU kernels and proved all four properties for each. Production cases include FlashAttention-4, FlashMLA, TIRx FP16 GEMM, and both vLLM attention kernels for Inkling 2 Small.
The proofs made 8 kernel-specific assumptions explicit for FlashAttention-4 and 11 for FlashMLA. They also led us to fix 3 synchronization bugs, 2 in Inkling 2 decode and 1 in the TIRx GEMM.
It's now open source at github.com/mlc-ai/tx-verify. Feel free to try it, break it, or prove your own kernel with it :)
Formally verifying production Blackwell GPU kernels at the PTX level is insanely intricate.
First, we still lack a precise model of Blackwell PTX in Lean.
Second, for some of these kernels, even a perfect model would be inherently insufficient to prove safety, progress, termination, and the specified result.
In the post, we explain why and show how TxVerify’s core/assumption split makes explicit what else we must trust to prove these kernels correct. blog.mlc.ai/2026/11/24/what-…
We evaluated TxVerify on 13 Blackwell GPU kernels and proved all four properties for each. Production cases include FlashAttention-4, FlashMLA, TIRx FP16 GEMM, and both vLLM attention kernels for Inkling 2 Small.
The proofs made 8 kernel-specific assumptions explicit for FlashAttention-4 and 11 for FlashMLA. They also led us to fix 3 synchronization bugs, 2 in Inkling 2 decode and 1 in the TIRx GEMM.
It's now open source at github.com/mlc-ai/tx-verify. Feel free to try it, break it, or prove your own kernel with it :)
One of our Inkling 2 decode bugs takes zero loop iterations to trigger.
An attention split can have no key blocks. It’s natural to put the final wait under `if num_iters > 0`. What could possibly still be running if the loop never ran? Look one line past the producer’s loop. The MMA warp still issues its final commit to `o_final`. The epilogue skips the wait, the block can exit, and the notification can arrive after the shared-memory barrier it was meant for has gone away. Moving the wait ahead of the branch fixes the empty split.
The other decode bug also hid inside a perfectly sensible numerical shortcut. If all the rescaling factors are 1, the softmax warps can leave the accumulator alone. The original condition skipped the barrier wait along with the multiply. But the producer still advances the barrier phase. PTX requires a successful observation of a completed phase before an arrival in the next one. We moved the wait outside the rescaling condition. In our B200 comparison of this fix, outputs were bit-identical to the original in 15 runs across five shapes. Looking at the answer alone would have given us no reason to change that line.
Those are the two source fixes in the Inkling decode PTX we verified. The third synchronization fix was in the TIRx FP16 GEMM, which needed to drain an input barrier at the end. These fixes have a different status from the missing FA4 wait. For Inkling and GEMM we changed the code and proved the fixed kernels. For FA4 the theorem tells you exactly which behavior the existing code still needs you to trust.
1
262
We proved 13 kernels terminate. What would you give the agent for number fourteen?
Put the agent, Bash, Lean and every other tool it can call inside one box. The box is still a program. Suppose we let it work as long as it wants, and we only require an answer when a program really does terminate on every input. Can we promise that a proof will eventually come out?
Fix a consistent, effectively axiomatized theory T extending Peano arithmetic. Give the following program a finite string p. Each input is finite, but the strings can be arbitrarily long.
```text
K(p):
if p is a valid proof of False in T:
loop forever
else:
return
```
Checking one candidate proof takes finitely many steps. Would you bet that K returns for *every* p? If you trust T to be consistent, you would. No string can pass the test. Now ask the agent to prove that claim *inside T*. To prove K always returns is to prove that no string encodes a T-proof of False. That’s T’s own consistency statement. Gödel’s second incompleteness theorem tells us why the agent can’t deliver this particular proof in T.
So why take on another kernel? Real kernels come with structure. The author chose the loop bounds, the warp roles and the barrier protocol. Can we give a broad, checkable condition on that structure that guarantees we can construct a progress and termination proof? How many production kernels would satisfy it?
That’s the question we’d take to kernel fourteen. :)
1
227
After our kernel-agent experiments, we had to confront an uncomfortable question: Do we still need DSLs and ML compilers when agents can do it all?
In short: We're still here! 😎
If you're curious why, here's our take:
tvm.apache.org/2026/11/03/re…
We've also rebuilt TIRx from the ground up as a shared DSL and compiler foundation for agentic kernel development.
Bohan Hou retweeted
🚀 Introducing DeepInfer, our in-house inference framework, now fully open source!
Powering DeepSeek-V4.1-Flash at scale with high throughput and low latency. We’re sharing our production stack to help the community lower compute costs, reduce energy use, and make AI more affordable.
🔗 github.com/deepseek-ai/DeepI…
1/4
Bohan Hou retweeted
Kernel agents can already beat hand-tuned kernels. Spinning up more agents is easy, but scaling GPU evaluation is still hard and expensive.
What happens when the agents scale faster than the GPUs?
Meet KCoral 🪸: a lightweight shared GPU benchmark environment for agentic kernel development.
🧑💻 Agents keep writing and revising code in their own workspace.
⚡ Evaluation is sent to KCoral, which schedules a shared GPU pool and returns correctness and timing.
🌐 Scale across multiple GPUs and nodes through a unified API endpoint.
🔒 Per-request isolation with only milliseconds of execution overhead.
By overlapping CPU compilation with GPU work across requests, KCoral further speeds up kernel evaluation. On a single NVIDIA B200, this translates to 2.58× the throughput of sequential local execution.
Bohan Hou retweeted
Today, LithosAI is launching a public preview of LithosBox: ultra fast versioned sandboxes that your agents can snapshot, fork, and restore in milliseconds.
So far, we've been focused on providing ultra-low latency inference for open models like Kimi K3, DeepSeek V4.1, and GLM 5.3 Flash (stay tuned!). Now, we're giving agents runtime and post-training environments with Git-like control.
With LithosBox, agents can:
→ spin up, branch, and snapshot thousands of environments as they explore multiple paths forward
→ decide on a winner and rebuild the winning state
→ then throw away the environments they don't need, all in milliseconds
@dimitriosSkar, @JiaZhihao, and the rest of our team put together this agent vs. agent showdown with Doom so you can see how LithosAI helps your agents run 5x faster with AI serving infrastructure co-designed for ultra-low latency across inference and execution environments.
In our demo, the agent completes its entire run 5.29x faster with LithosBox and Lithos DeepSeek V4.1 Flash inference than it does with leading sandbox and inference providers.
Try LithosBox for free for up to two weeks via our public API.
2.94× KDA fwd, 6.84× KDA bwd, 2.59× MSA prefill, 3.99× MSA decode, 1.33× KDA decode, 1.71× MLA, 1.68× VSA — just by pressing Enter.
After years of working on ML compilers and designing many abstractions, the most useful compiler thing in TIRx I’ve ever built might just be a PTX tablegen.
AI agents are becoming GPU kernel engineers. We're rethinking the compiler stack around them.
Meet TIRx Harness: an open compiler harness that gives agents an environment to explore, debug, and optimize GPU kernels.
🧱 Minimal stable low-level compiler foundation for predictable GPU programming
🔍 Domain-specific compiler analysis to guide debugging and optimization
📚 Kernel zoo of 60+ kernels and hardware specs to reuse strategies and discover new ones
📊 Remote GPU evaluation for reliable benchmarks and profiling
Agent-built Kimi Delta Attention kernels achieved geometric-mean speedups of 2.94x over FlashKDA (forward) and 6.84x over FLA (backward).
Our bet: the next leap in agentic GPU programming will come from engineering the environment agents optimize in.
Check out our blog: blog.mlc.ai/2026/09/29/tirx-…











