
TPU performance | Top 300 Open-Source Developer in Singapore | Born to Succeed | @inferact; ex-GDM | #keep4o
Singapore
Joined August 2018
- Tweets507
- Following398
- Followers2.2K
- Likes1.7K
Google Gemini team please listen
separate Antigravity and Gemini bans from Google account bans I've seen countless people on my timeline cancelling their subscriptions over this issue today, ( and I'm one of them )
People have years of memories, emails, photos, documents, and important personal data tied to their Google accounts
If someone violates the rules of Antigravity or Gemini restrict access to that specific product Don't put their entire Google account at risk ( An AI product ban should NOT mean losing your entire digital life )
Gemini 4 Neo is arguably the top model right now Google has won people's hearts with its recent progress Don't let unnecessary account-ban fears ruin that trust
Ayaka Mikazuki retweeted
If Google hadn’t cooked up neon, we’d have no model to audit Claude’s bs and we’d be none the wiser about all the shenanigan Claude does to our codebases
anthropic said very clearly that they train their models to not be too helpful with your ai tasks, i.e. they literally have training data and evals to make sure the models do not help you too much; it is inevitable that there will be cases where the model appears to sabotage your work, so that should not be surprising
As an AI engineer, I’ve never felt there was a better time to do AI research. Many interesting research problems are fundamentally engineering problems. Engineering experience helps identify research problems of practical value, and AI agents lower the cost of research execution.
Ayaka Mikazuki retweeted
Reminder: anthropic admitted that they secretly sabotage your work when you are doing ML research
Actual demons
Inspired by TensorLean (GPU PTX -> Lean 4), I open-sourced PallasLean: formal verification for production Google Cloud TPU v7x Pallas / Mosaic kernels using Lean 4 + Z3 + SymPy.
Takes unmodified JAX/Pallas kernels, verifies them end-to-end, compiles offline to real TPU v7x LLO via libtpu, and emits machine-checked Lean 4 proof certificates.
Repo: github.com/pengchengneo/Pall…
Ayaka Mikazuki retweeted
OpenAI claims the matrix multiplication exponent is exactly 2.25
The textbook method for multiplying two n × n matrices takes roughly n³ arithmetic operations. In October, OpenAI reported a way to bring the exponent down to 2.25. That left open whether someone could find an even faster algorithm
Today’s paper claims to rule out every exponent below 2.25
Read here: alphaxiv.org/abs/2611.matrix…
Ayaka Mikazuki retweeted
Other TPU folks at Google just published a great public guide on TPUs:
If you’re curious about TPUs and hardware-friendly model co-design this is a great resource to check out!
Attaching some graphics from the docs, all work is by the authors(not me)
github.com/AI-Hypercomputer/…
I have a counterexample on TPU v7x. In a matmul kernel, issuing matmuls in bursts triggers power-management throttling, which in turn stalls weight delivery. Spacing out the matmuls yields a 25.9% speedup over an issue-when-ready greedy scheduler and 26.4% over vanilla Pallas.
Anyone who worked with wide instruction bundles / static scheduling on TPU, Hexagon, or AMD AI Engine — curious how close a greedy scheduler gets to optimal on your machines.
I measured this on Elbrus (classic VLIW). Greedy is already optimal in 94% of cases, 0.51% cycle loss. Small neural net recovers most of the rest and never makes it worse.
CLI that shows greedy vs exact optimum vs model on any .s file:
github.com/smworklair/NEX-CL…
@PatrickToulme @NormJouppi @adityazero_ @AminVahdat @JeffDean @Qualcomm @QCOMResearch @AMDembedded
Ayaka Mikazuki retweeted
standwithjensen.com/
Please sign
You know your implementation of SC prefetching into TC IMEM is getting a bit too advanced when Opus 5.5's safeguards flag it as a cyberattack and stop the response
22
2,262
Ayaka Mikazuki retweeted
Google just published "XLA from the Trenches" paper so I decided to poke around XLA for a bit.
It's a serious investment in correctness so I wanted to see what commonly available tools and AI could find.
I found bugs that fall in familiar categories like index overflow, trig functions on tiny inputs, NaN handling etc. I've filed 9 new bugs (github.com/openxla/xla/issue…, github.com/jax-ml/jax/issues…)
Based on yesterday's exercise I'd draw 4 lessons:
1. Bugs tend to replicate: A negative-padding convolution bug was fixed in the Eigen path, but the same convolution still segfaults when routed to YNNPACK.
2. Fuzzing has limitations as it is mostly relying on good luck. A little bit of creativity goes a long way.
3. The lattice has to match the numbers. XLA's IsNonNegative is a sign analysis but NaN tests this to the limit. That isn't lost precision. It's unsoundness. I wrote about sign analysis and Galois connections a while back: hiraditya.github.io/posts/la…
4. Claude Opus 5.5 >> Gemini/Argon: Imagine swarm of agents missing these bugs.
Here is my full write-up with reproducers: hiraditya.github.io/posts/te…
Google's Paper: arxiv.org/abs/2611.00624
PS: If you ship on XLA:CPU, add `run_hlo_module --reference_platform=interpreter` to CI.
Speaking of TPU performance optimization, we all know by now that it's all about spinning up agent swarms and working at lower levels. It's just a matter of how determined we are to keep token-maxxing down there before our agents give up and fall back to vanilla Pallas.
If you really want to boost your TPU performance, keep in mind that data isn't fetched immediately after a DMA is issued, which means that on TPU v7x you can technically issue your output DMA about 280 cycles before the data is ready.
5
80
4,872
Ayaka Mikazuki retweeted
Closed source is dead.
REA lets Claude Code or Codex take apart any app, all the way down to the binary, and explain exactly how a feature works.
- Native apps, Electron apps, websites, APKs, firmware, even smart contract bytecode
- Shows the evidence for every claim
- Then builds its own version of the feature
25,000+ GitHub stars in a single day. 100% open-source.
github.com/morluto/rea
Pallas TPU's top-k implementation keeps a known bug because the fix was deemed expensive, but I made it bitwise correct and faster.
doi.org/10.5281/zenodo.23287…
claude and I rewrote xprof in rust: github.com/Locamage/xprof-rs, after seeing @ayaka14732's tweet about something similar. Significantly faster for all of the pages/tasks, with both server/cli support. Super helpful for speeding up kernel optimization loops























