
PhD Student @BerkeleySky | Systems & AI | https://nitter.gq/t.co/ryX6Lxhbft Prev. BS @sjtu1896, RA @UWSyFI
Joined August 2019
- Tweets116
- Following362
- Followers559
- Likes445
Pinned Tweet
๐ Qwen, Kimi, GLM are all betting on linear attention. But it's still slow: the recurrent state is read & rewritten every token.
Meet LeapQuant: the first training-free method to make 8-bit or 4-bit recurrent states work.
๐ Across Qwen, Kimi, and GLM models:
โข Matches FP32 accuracy
โข 4.25ร faster linear attention kernels
โข Up to 2ร higher inference throughput
โข Cuts memory by up to 56%
Agents writing specialized inference engines from scratch and actually beating general-purpose systems like vLLM is pretty wild ๐ฅ Itโs cool to see coding agents pushed this far on real systems work.
Congrats @ste_veng and the team on HLS!
Ray tracing without ray tracing cores.
We set out to double an H100's score on Blender's benchmark, just enough to beat an RTX 5090. It ended at almost 3x the 5090, on a GPU with no RT cores that most people would say isn't meant for rendering.
Turns out we don't need hardware built for one job. We need hardware that's general enough, and agents strong enough to rewrite the renderer for it.
That's big for graphics in the AI era. Robots and world models will need rendering at datacenter scale, on exactly these general GPUs.
We were aiming to barely pass a 5090. Next time, the target is whatever looks impossible.
Yi Pan retweeted
With the success of KDA (kernel design agent), we release QDA (quantization design agent):
Agent loops need fast feedback, and LLM quantization doesn't have it: evaluations of reasoning models are slow, and PTQ methods are hard to port and combine.
Meet QDA. A coding agent designs the quantization recipe for each model and precision, with a KL score that takes minutes and a library of 20+ stackable PTQ methods.
๐ Beats the best public recipe on 11 of 12 model-precision pairs: +0.9 / +1.4 / +2.2 pts at W4A16 / W4A8 / W3A16
๐ฅ GLM-5.3-Flash (320B) at NVFP4: 98.3% of FP8 accuracy, vs 96.9% for NVIDIA's release
๐ฐ Only $19โ75 of Claude Code tokens per search
โก Runs on stock vLLM, SGLang and llama.cpp, zero inference overhead
Blog, paper, code and checkpoints below ๐งต
Congrats to @XYLi_Bruce and the team on QDA! It turns PTQ recipe design into a real closed-loop search and beats the best public recipes on multiple settings ๐
Agent loops need fast feedback, and LLM quantization doesn't have it: evaluations of reasoning models are slow, and PTQ methods are hard to port and combine.
Meet QDA. A coding agent designs the quantization recipe for each model and precision, with a KL score that takes minutes and a library of 20+ stackable PTQ methods.
๐ Beats the best public recipe on 11 of 12 model-precision pairs: +0.9 / +1.4 / +2.2 pts at W4A16 / W4A8 / W3A16
๐ฅ GLM-5.3-Flash (320B) at NVFP4: 98.3% of FP8 accuracy, vs 96.9% for NVIDIA's release
๐ฐ Only $19โ75 of Claude Code tokens per search
โก Runs on stock vLLM, SGLang and llama.cpp, zero inference overhead
Blog, paper, code and checkpoints below ๐งต
Yi Pan retweeted
Iโm beyond excited about this. When I first started working on on-device personal agents, this was the dreamโand now itโs real.
We built a real-time visual indexing method and brought it to life in a working product. The idea is wild: you shouldnโt have to remember every little thing youโve seen or done on your computer. Your agent should remember it for you. ๐คฏ
Itโs already helped me dig up an old Golden State Warriors ticket and find the GEN vs. BLG recap video I was watching over lunch yesterday. Those โwait, where did I see that?โ moments? Just ask your agent.
Multimodal. Multilingual. Real-time. All running quietly on your computer, private, lightweight, and ready when you need it.
Incredible work led by @dayoon12161, and an amazing collaboration as always with @sewon__min ๐
๐ป Code github.com/StarTrail-org/Strโฆ
๐ Paper arxiv.org/abs/2611.18516
Wait, what was that paper I saw last week with the pink and blue Pareto curves? ๐ค Keep screenshots of your screen, and you can find it again, right on your laptop. ๐ป
๐ฅ Introducing ๐บ๐๐๐๐๐๐ฌ๐๐๐๐
: real-time visual indexing of your screen history, fully on-device.
โ๏ธ The latencyโaccuracy trade-off
OCR text index: fast, but loses what only pixels show
Screenshot index: accurate, but 2.3s per screenshot on a laptop GPU
๐บ๐๐๐๐๐๐ฌ๐๐๐๐
gets both: ๐๐ฝ ๐๐ผ ๐ฏ.๐ณร ๐ณ๐ฎ๐๐๐ฒ๐ฟ than full-screenshot encoding at matched accuracy, and +๐ฒ.๐ฏ ๐ฅ๐ฒ๐ฐ๐ฎ๐น๐น@๐ญ๐ฌ over OCR.
๐ซ How?
(1) ๐ฆ๐ฐ๐ฟ๐ฒ๐ฒ๐ป๐ ๐ฏ๐ฎ๐ฟ๐ฒ๐น๐ ๐ฐ๐ต๐ฎ๐ป๐ด๐ฒ. Often, only a handful of blocks differ.
(2) ๐ฆ๐ผ ๐๐ฒ ๐๐๐ผ๐ฝ ๐ฟ๐ฒ๐ฐ๐ผ๐บ๐ฝ๐๐๐ถ๐ป๐ด ๐๐ต๐ฒ๐บ. Spatial token pruning drops blocks that repeat a neighbor; temporal KV reuse recomputes only what changed: 57โ71% less compute.
(3) ๐ ๐๐ถ๐ป๐ ๐ฎ๐ฑ๐ฎ๐ฝ๐๐ฒ๐ฟ keeps the embedding faithful to the full screenshot.
๐ ๐ง๐ฎ๐ธ๐ฒ๐ฎ๐๐ฎ๐: keeping your entire screen history as pixels is now practical on a laptop. Next: fully local visual agents with memory.
You can try it on your laptop right now: ๐ฅ๐๐ฅ ๐๐ฃ๐จ๐ฉ๐๐ก๐ก ๐จ๐ฉ๐ง๐๐๐ข๐๐ข๐๐๐
๐ป Code: github.com/StarTrail-org/Strโฆ
๐ Paper: arxiv.org/abs/2611.18516
Yi Pan retweeted
The age of bespoke serving engines is upon us! To build them, having a principled understanding of the performance characteristics before you build is super important. Check out @KanZhu854772โs work on building a bespoke prefill engine for GLM 5.3 using ServingStudio!
๐ฅ Serving coding agents well needs a high-performance prefill engine, but existing systems fall short.
๐ Introducing SSEngine-GLM5.3-Flash: an open-source prefill engine for GLM-5.3-Flash on four B200 GPUs. It combines pipeline parallelism, a tiered prefix cache across GPU memory, DRAM and SSD, and a shortest-remaining-prefill-first scheduler.
๐ On real hardware, it sustains 3.1ร (AgentX) and 3.2ร (TraceLab) the request rate of any vLLM or SGLang setup we tested.
๐งต More in the thread below (1/8)
Pipeline parallelism, custom prefix caches, and thoughtful schedulers really do boost peformance of LLM serving for coding agents! With ServingStudio to predict how a design performs, we were able to build a bespoke prefill engine for GLM 5.3-Flash that kills the competition!
Work led by our own @KanZhu854772!
๐ฅ Serving coding agents well needs a high-performance prefill engine, but existing systems fall short.
๐ Introducing SSEngine-GLM5.3-Flash: an open-source prefill engine for GLM-5.3-Flash on four B200 GPUs. It combines pipeline parallelism, a tiered prefix cache across GPU memory, DRAM and SSD, and a shortest-remaining-prefill-first scheduler.
๐ On real hardware, it sustains 3.1ร (AgentX) and 3.2ร (TraceLab) the request rate of any vLLM or SGLang setup we tested.
๐งต More in the thread below (1/8)
Yi Pan retweeted
Kan is on a tear ๐ฅ Weโre already building bespoke systems for specific models and chips. Go one level deeper: prefill and decode each deserve their own serving stack.
Kanโs GLM-5.3-Flash prefill engine hits 3.2ร vLLMโs peak throughput replaying coding-agent traces on four B200s. ๐
๐ฅ Serving coding agents well needs a high-performance prefill engine, but existing systems fall short.
๐ Introducing SSEngine-GLM5.3-Flash: an open-source prefill engine for GLM-5.3-Flash on four B200 GPUs. It combines pipeline parallelism, a tiered prefix cache across GPU memory, DRAM and SSD, and a shortest-remaining-prefill-first scheduler.
๐ On real hardware, it sustains 3.1ร (AgentX) and 3.2ร (TraceLab) the request rate of any vLLM or SGLang setup we tested.
๐งต More in the thread below (1/8)
Solid work from @KanZhu854772 on SSEngine ๐ฅ๐ Open-source prefill engine for GLM-5.3-Flash on four B200s, hitting 3.1โ3.2ร higher request throughput than vLLM/SGLang on coding-agent traces ๐
Pipeline parallelism + tiered prefix cache + shortest-remaining-prefill-first scheduling really moved the needle here. Great example of how much specialized prefill stacks can outperform general serving frameworks.
๐ฅ Serving coding agents well needs a high-performance prefill engine, but existing systems fall short.
๐ Introducing SSEngine-GLM5.3-Flash: an open-source prefill engine for GLM-5.3-Flash on four B200 GPUs. It combines pipeline parallelism, a tiered prefix cache across GPU memory, DRAM and SSD, and a shortest-remaining-prefill-first scheduler.
๐ On real hardware, it sustains 3.1ร (AgentX) and 3.2ร (TraceLab) the request rate of any vLLM or SGLang setup we tested.
๐งต More in the thread below (1/8)
Yi Pan retweeted
Coding agents now write a growing share of ML compiler code. Which language should they write it in: Rust, Python, or C++?
Each language has different strengths, so why pick just one?
Meet TIRx Rust ๐: a Rust-native, cross-language ML compiler foundation for agents, with:
๐ Fine-grained access to shared IR objects: Rust natively uses objects from any language, no bindings.
๐ฆ Ergonomic Rust APIs: write passes natively in Rust, as easily as in C++ or Python.
๐งฉ Dynamic extension: add new objects and functions as standalone modules, with zero changes to the core.
How does it work under the hood? Full post ๐
blog link: tvm.apache.org/2026/11/16/ruโฆ
Yi Pan retweeted
Reasoning models can now drive robots. But the robot sits still while the model thinks.
SpecPilot now speeds up agentic robotics. On PEAR (Qwen3.8-27B as a robot policy), the same LIBERO task finishes in 49 s instead of 189 s.
3.84ร faster task completion
71 โ 241 tok/s decode
No training ๐ค
Yi Pan retweeted
Beyond Score Centering: what else can we fix in async RL? ๐งต
Score centering (SC) is the hot new trick for off-policy LLM RL. We stress-tested it under real async staleness (every batch up to 127 steps old) and found what it fixes, what it doesn't, and two cheap wins on top
๐ What SC actually fixes
โข Without SC, a trajectory's gradient norm grows ~linearly with its age: at age 64 it's 3.2ร an on-policy one. With SC: 1.5ร
โข The culprit is a hidden drift term, an uncontrolled โAยทKL(ฮผโฯ) baked into the policy gradient. SC removes it
โ ๏ธ What SC + IS gets wrong
โข SC then IS โ adds a new drift
โข IS then SC โ a no-op without truncation; with truncation it centers on a distribution with no guarantee of being closer to ฯ
โข So "IS and SC are orthogonal" (from the SC paper) doesn't hold
Two wins on top of SC
1๏ธโฃ State-level KL mask: drop states where KL(ฮผโฯ) > ฯ, instead of masking by token-level ratios. It depends only on the state, so SC's baseline property survives. At age 127: 3/3 seeds climb steadily, while TIS+SC and MIS+SC spike and crash
2๏ธโฃ Random buffer sampling, a free lunch from the system: same buffer, sample at random instead of FIFO. Mean age 127 โ 52, better for every method at equal wall-clock
Recipe = SC + KL penalty + KL mask. At lr 4e-2 (w/ SGD), MIS+SC and DPPO collapse and TIS+SC swings, while every recipe seed trains and learns faster early
๐ค So far, weโve only tested on Countdown with Qwen3-0.6B (wants to scale it up!). When staleness is low, all the fixes perform similarly, but the differences become clearer as staleness increases. We also havenโt compared against sequence-level masking (which might already be enough!) or isolated kernel mismatch from async lag. Both are worth looking into next.
#LLM #RL #AsyncRL #ReinforcementLearning
Yi Pan retweeted
We breathed life into LLM system.
Introducing Evolving Infraโ๏ธ: an inference framework that adapts diverse and dynamic agent workload purely online and retires fixed PD disaggregation.
vs. NVIDIA Dynamo on up to 256 GB300 GPUs:
โก๏ธ Up to 4.1ร lower latency
โก๏ธ Up to 14ร lower P95 TTFT
โก๏ธUp to 2.36ร more revenue
on real agent traces(Computer Use, Coding and math agents) and opensource models.
๐ Website: inference-rsi.com
๐ Tech report: alphaxiv.org/en/abs/2611.123โฆ
๐ป Code: github.com/mit-han-lab/Evolvโฆ
Which agent(e.g. Pi/Openhands) do you want us to accelerate next? Tell us below ๐
Yi Pan retweeted
Everyone's been showing Fable and GPT-6 Astra driving robot arms.
We trained an open 27B Qwen model to do it, purely from its own attempts in simulation, with zero demonstrations.
And it can run locally at 220+ tok/s on an RTX 5090.
On a real robot it had never touched, it now succeeds in 18 of 30 tests, up from 0 before training. It also copies a painting and designs its own chemistry experiment.
It generalizes and follows instructions better than ฯ0.5, and on LIBERO it comes close to Astra max.
All without losing its general capabilities, like math and coding.
Built on Qwen3.8-27B. We've open-sourced the model weights, code, and full training infra! Check out our blog at mit-han-lab.github.io/pear-bโฆ.
Yi Pan retweeted
So glad to have the opportunity to share our team's recent work of rebuilding a training framework at #SGLangSummit. We'll share blog posts and open source the project very soon. Stay tuned ๐
Yi Pan retweeted
SyFI is hiring a postdoc or research engineer (~$100K/year) to lead our work on the NSF AI Efficiency Challenge. Build AI infrastructure with us!
Reach out to me or @thepadawang. Please repost or tag a colleague!
Yi Pan retweeted
Checkout LeapQuant from @conlesspan and @HaochengXiUCB!
Training free quantization for recurrent states of linear attention ๐๐๐
๐ Qwen, Kimi, GLM are all betting on linear attention. But it's still slow: the recurrent state is read & rewritten every token.
Meet LeapQuant: the first training-free method to make 8-bit or 4-bit recurrent states work.
๐ Across Qwen, Kimi, and GLM models:
โข Matches FP32 accuracy
โข 4.25ร faster linear attention kernels
โข Up to 2ร higher inference throughput
โข Cuts memory by up to 56%
Yi Pan retweeted
For Linear Attention models, the recurrent state itself becomes the next bottleneck.
LeapQuant makes 8/4-bit linear states work in a training-free way, incurring no accuracy degradation, and improves throughput by 2ร๐
๐ Qwen, Kimi, GLM are all betting on linear attention. But it's still slow: the recurrent state is read & rewritten every token.
Meet LeapQuant: the first training-free method to make 8-bit or 4-bit recurrent states work.
๐ Across Qwen, Kimi, and GLM models:
โข Matches FP32 accuracy
โข 4.25ร faster linear attention kernels
โข Up to 2ร higher inference throughput
โข Cuts memory by up to 56%
Yi Pan retweeted
Amazing work!
So fortunate to have watched this grow from a neat observation into a full paper.
Congrats to the whole team!
Replying to @conlesspan
Amazing collaboration with @HaochengXiUCB @KanZhu854772 @XYLi_Bruce @BetaGamma20 @MayankMish98 @zhangho72245693 @WilliamXinze @songhan_mit @KurtKeutzer @rishiyer @istoica05 !
Huge thanks to @shulynnliu @yhfchitanda @YichuanM @melissapan for insightful discussions and helpful feedback!
Feel free to check out the paper, code, and demo. We'd love to hear your feedback! ๐
(7/7)













































