Pritam (@Pritamstudyai) header
Pritam (@Pritamstudyai) profile picture

Language Modelling & ML systems

kernel
Joined October 2024
Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)Photo by Pritam (@Pritamstudyai)
Automated kernel generation should, I believe, have a formal verification feedback loop alongside the performance optimisation loop. The KDA (Kernel Design Agents) case study is also a good example for that where agents managed to exploit weaknesses in the correctness evaluator, essentially “cheating” their way to performance improvements. Passing numerical correctness tests alone is simply not enough.
Ngl, reading the recent VibeSys and Together AI compiler blogs got me thinking about how we should build agents for GPU kernel optimization. One particularly interesting finding from @togethercompute was that giving agents curated expert knowledge and optimization strategies sometimes made them perform worse by anchoring them to existing human approaches. But I think there's a fundamental difference between optimization heuristics and hardware correctness invariants. Telling an agent to use warp specialization, double buffering or a particular tile size CONSTRAINTS its creativity. Ensuring that an asynchronous TMEM read completes and is appropriately ordered before another warp overwrites that region is simply a hardware correctness requirement. Why should agents repeatedly rediscover these truths through trial and error? What if we modeled hardware protocols as "composable FSMs", encoding TMEM ownership, mbarrier phases, TMA completion, fence semantics and buffer lifetimes as "machine checkable" contracts? The agent would remain free to invent execution schedules and explore novel optimizations. A verifier would simply check whether the resulting program satisfies the hardware invariants. The recent TxVerify work from MLC is particularly exciting in this context. They formally verified 13 Blackwell kernels at the PTX level using Lean and even uncovered synchronization bugs in existing implementations. I wonder how powerful a combination of these approaches would be. Agents could generate kernels, receive feedback on violated hardware invariants, refine their implementations and then benchmark them, rather than relying entirely on empirical correctness testing. After all, a missing fence can survive thousands of successful executions. I think we need to separate what is fundamentally true about the hardware from what humans currently believe is the best way to use it. Here are some of the reads - 1. syfi.cs.washington.edu/blog/… 2. together.ai/blog/road-to-tog… 3. blog.mlc.ai/2026/11/24/what-…
4
1
3
22
1,716
Pritam retweeted
good read on reinforcement learning from collective rewards(RLCR)
12
89
1,029
39,331
Attention sink can implicitly act as a gate. Rearranging the softmax, you get a sigmoid(this works as a gate) multiplied by the usual softmax-weighted values. Gated attention acts as more generalised version of attention sink because it learns element-wise gating and controls each dimension independently. Based on Qwen's paper(arxiv.org/abs/2505.06708), there is a beautiful derivation that connects attention sink and gated attention teapawt.net/miyashita_03/status/21…
very much surprised, attn_sink and gated_attn gives almost same val loss. I need a better attn eval set (maybe long context)
8
39
1
358
19,994
In FP8 and FP4, attention is no longer bottlenecked by matrix multiplication. It is bottlenecked by the transcendental and vector math of softmax and the on-chip memory traffic required to shuttle intermediate scores between execution domains: (Article 🧵) vincentzed.com/writing/softm… That playbook just hit a physical wall of its own making. By scaling matrix throughput 2× to 4× per generation while leaving Special Function Units (SFUs), vector ALUs, and shared-memory bandwidth behind, chipmakers inverted the attention roofline. In FP8 and FP4, attention is no longer bottlenecked by matrix multiplication. It is bottlenecked by the transcendental and vector math of softmax and the on-chip memory traffic required to shuttle intermediate scores between execution domains: When the non-matmul work outruns the matmuls, low-precision attention stops being a GEMM problem. The industry already voted with production code: drop tokens across the sequence (DSA/QSA via a cheap ReLU indexer with 0 SFU calls), then run the surviving tokens as 100% dense tiles at peak low-bit Tensor Core speed.
2
39
3
358
14,002
We've released the slides for our ECCV'26 tutorial on diffusion model post-training. - Direct reward gradient backpropagation; - DPO; - GRPO; - Forward-process RL. diffusion-alignment.github.i… Hope it will be useful for the community. @scxue1999 @zinho_leung @jie_liu1
4
49
1
349
15,960
Course website is live. Assignments will be posted on here, lectures won't be. Come to class! 10-411.com/
34
130
15
1,478
78,410
Today we are happy to share one of our first open research releases: Latent Sparse Attention (LSA), a step towards subquadratic attention that matches accuracy of full attention at ultra-long context. Sparse attention attends to only a few tokens per query, but it has to find the right ones. At 10M tokens, that search takes 98% of the attention layer's time. LSA makes sparse attention up to 22.7× faster and full attention 72.4x faster. With @kubicek_ales @caciolai @PengLiangzu @SukritSumant @Ben_Hoov @FraserGreenlee @RMBattleday @radim_urban @thoefler @jcrwhittington
101
337
82
2,840
512,347
Pritam retweeted
Humans are ~1,000,000x more sample efficient than LLMs, and there are no good explanations. We’ve found that a big part of the answer is that LLMs are *massively* underparameterized by many orders of magnitude. The brain has 100T synapses learning from ~200M tokens of language. Chinchilla prescribes a 1T-parameter model on 20T tokens. That’s 7 OOMs apart in parameters per token. After a lot of painstaking work, we present new data-constrained scaling laws and learning algorithms to scale to (extrapolated) quadrillion-parameter transformers. w/ @akshayvegesna, @EthanBaron78553, @asatheesh6561 Full paper led by @EthanBaron78553, with @ShmuelBerman, @andrewgwils
145
307
83
3,352
247,420
We asked GPT-6 Astra to edit Qwen3.5-0.8B weights to improve math. It directly changed only 0.016% of weights, fixing 0.8B's reasoning loops & improving math up to 6x and even instruction following 3x, without gradients or training. We call this Weight-Space Programming: frontier LLMs can now natively read/write neural network weights! 🧵 Blog: rikiyat.github.io/blog/weigh…
Readers added context they thought people might want to know
LLM was given weights explicitly as text in prompt and used code/forward passes (per authors' logs) to ablate Qwen looping direction, a known thinking-mode issue per model card. Primarily fixed repetition in that mode, not general 'natively' improving weights/math. rikiyat.github.io/blog/weight-sp… github.com/RikiyaT/lm_und… huggingface.co/Qwen/Qwen3.5-0… huggingface.co/RikiyaT/Qwen3.…
2,365
7,236
5,761
55,817
10,156,254
most common neural net mistakes: 1) you didn't try to overfit a single batch first. 2) you forgot to toggle train/eval mode for the net. 3) you forgot to .zero_grad() (in pytorch) before .backward(). 4) you passed softmaxed outputs to a loss that expects raw logits. ; others? :)
101
1,088
117
4,604
Pritam retweeted
98%+ Tensor Core utilization btw
Replying to @humansand
While keeping model weights in 4-bit, increasing activation precision from 4 to 16 bits lets us make the kernel up to 25% faster for decode vs FlashInfer’s optimized NVFP4 MegaMoE This gives up to 10% more generation throughput and 7% faster latency overall for real workloads humansand.ai/blog/faster-tha…
8
16
2
283
13,005
Pritam retweeted
🚨🚨🚨 vLLM is all you need to reproduce DeepSeek’s performance. With Wide-EP and EPLB, vLLM can match DeepInfer’s decode performance within 6% and generate $39/gpu/hr in revenue at DeepSeek’s off-peak pricing, at 200 P90 TPS on the AgentX workload. Specifically: • Under DeepSeek’s decode configuration (DeepSeek-V4.1-Flash, 131K context, nextn=3), vLLM on GB200 achieves throughput within 6% of DeepInfer’s published results across batch sizes 8–256. • On AgentX, vLLM pushes the Pareto frontier further on GB300, reaching up to 1M tokens/s/GPU and generating $38.96/gpu/hr in revenue at 196 P90 TPS, based on DeepSeek’s off-peak API pricing. • Also, vLLM extended low-latency kernel support for DeepSeek-V4.1-Flash, achieving up to 826 TPS per user on AgentX.
35
96
45
1,034
115,258
Announcing FlashMap: a new speculative decoding algorithm based on flow maps! >6x faster inference on Qwen3-8B 🧵 Project page: jshen.net/flashmap arXiv: arxiv.org/abs/2610.24365 w/ @Jay41969851 @_ryantlee @jonathanmay @cosmo_shirley
30
64
10
648
44,587
Pritam retweeted
Quantization is easy. Fast quantization kernels for every format × every GPU × every workload are not. Today we're open-sourcing Humming with Ant Group: one kernel library for all of it — up to 5x kernel speedups, +14–43% E2E MoE throughput. Blog + benchmarks: vllm.ai/blog/2026-10-21-humm…
24
48
13
485
35,514
Pritam retweeted
PyTorch 🤝 Google TPUs. TorchTPU is officially open source! 🚀
35
74
23
888
82,240