Ayaka Mikazuki (@ayaka14732) header
Ayaka Mikazuki (@ayaka14732) profile picture

TPU performance | Top 300 Open-Source Developer in Singapore | Born to Succeed | @inferact; ex-GDM | #keep4o

Singapore
Joined August 2018
Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)Photo by Ayaka Mikazuki (@ayaka14732)
Ayaka Mikazuki retweeted
Reminder: anthropic admitted that they secretly sabotage your work when you are doing ML research Actual demons
526
1,774
216
34,276
1,607,088
Ayaka Mikazuki retweeted
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…
1
1
6
223
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…
91
309
126
2,893
407,212
Ayaka Mikazuki retweeted
Compression of the RH proof has begun
109
446
155
6,316
740,154
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/…
4
35
1
308
13,809
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
11
15
4
241
15,247
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
1
21
2,229
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.
2
2
1
36
2,503
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.
4
1
73
6,068
Ayaka Mikazuki retweeted
bad apple, but actually running on a trainium chip
11
27
6
249
75,843
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
79
4,858
Update: I joined Inferact this week and now have access to TPU v7x.
Love how folks from some mysterious orgs casually start a Pallas TPU bug report with "tested on TPU 7x" while those of us living off TRC are still treasuring our TPU v4 quota
18
3
1
135
11,795
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
169
717
145
7,910
949,411
Ayaka Mikazuki retweeted
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
3
1
18
893
Love how folks from some mysterious orgs casually start a Pallas TPU bug report with "tested on TPU 7x" while those of us living off TRC are still treasuring our TPU v4 quota
4
1
33
9,332
Ayaka Mikazuki retweeted
I'm really disappointed in OpenAI, recently codex has gotten way less reliable and lots of other issues. First, I thought they "had compute" and now 20x plans are still paused while Anthropic the company with "not enough compute" lets people still buy them. Second, I have multiple codex accounts and each single one of them keeps facing problems. I run agents for long periods of times, and it sucks when I come back to a error saying "Servers overloaded" and my entire agent gets paused. This has gotten to the point where at the worst times (around 10pm ET) I'm receiving this every 5-10 minutes. Third, GPT 6 Sol is disappointing. It's either nerfed or something else is up, as this model can't understand basic things I say. And before the GPT 6 Sol & Luna launch, Astra got nerfed to the ground. Astra basically couldn't do anything meaningful. Fourth, Anthropic gives better limits. I never thought I'd say this but Anthropic gives you higher limits than OpenAI if you use Opus 5.5. GPT 6 Sol burns through my limits 3x faster than Opus 5.5 does. @thsottiaux I don't know what is happening at OpenAI but this is not a good look, the entire community likes you and the team at OpenAI. But this is really not ok, we need some clarification, fixes to these issues, and resets to compensate.
52
27
3
552
19,272
A large part of what I've done with Codex recently boils down to me saying, "Fixing this ourselves by patching the binary is way faster than waiting for Google to fix it internally. Go do it," and then going to grab a cup of coffee.
3
1
18
1,364