# who-ate-my-flops: bring your own PyTorch job, let an agent speed it up end to end

- **ID:** 824
- **Kind:** tool
- **URL:** https://github.com/OpenPerfAgent/who-ate-my-flops
- **Authors:** OpenPerfAgent team (Hexu Zhao, Haocheng Xi, Yichuan Miao, Shaofeng Yan, Zhaoyang Lv, Haven Feng, Xiuyu Li, Aditya Panda, Jinyang Li)
- **Venue:** 2026-09-30; github.com/OpenPerfAgent
- **Published:** 2026
- **Source:** code
- **Language:** en
- **Access:** public
- **License:** Apache-2.0
- **License family:** Permissive (auto-classified)
- **Tags:** mlsys, performance-optimization, agents, pytorch, profiling
- **Topics:** MLSys, performance optimization, agents, PyTorch, profiling
- **Added:** 2026-09-30
- **Verified:** 2026-09-30
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/824

## Summary

An open-source Claude Code / Codex plugin (OpenPerfAgent) for iteratively optimizing PyTorch training and inference jobs as a whole, not just individual GPU kernels. Design philosophy: rely on the foundation model's reasoning rather than prescribing how the agent reasons; the harness supplies (1) context -- computation structure and runtime profiling, (2) verification -- tools to check correctness against the baseline as the agent iterates, and (3) user alignment -- guidance to ask the right questions and align on goals/constraints. Claimed results: performance PRs developed with it merged into FunASR, FastVideo, gsplat, Ultralytics, Unsloth, and SGLang, with speedups up to 3.6x on tested workloads. Case study: in FastVideo the agent found CPU-GPU weight transfers consuming ~2/3 of the video-decoding stage, removed redundant transfers and sped up the rest, reducing generation time 15.20s -> 6.34s (2.40x) on 4 B200s. Usage: give the agent a repo, a launch command, and GPU access; run /who-ate-my-flops::init to clarify goals, then /who-ate-my-flops::optimize. Includes experiments, profiles, and lessons learned on the blog.

## From the source (fetched 2026-10-03)

- **Repository:** OpenPerfAgent/who-ate-my-flops (GitHub)
- **Created:** Sep 27, 2026 (GitHub)
- **Last push:** Sep 30, 2026 (GitHub)
- **Stars:** 34 (GitHub)
- **Forks:** 0 (GitHub)
- **Main language:** Python (GitHub)

## Research notes

- Discovery: Hexu Zhao (@zhaohexu2001, verified, NYU Courant MLSys PhD) 2026-09-30 thread: https://x.com/zhaohexu2001/status/2105338131285492120?s=20
- Blog: https://openperfagent.github.io/who-ate-my-flops
- Merged FastVideo PR example: https://github.com/hao-ai-lab/FastVideo/pull/1867
- License not stated in the thread; team credits in the blog.
- Connects to the collection's agentic performance-tuning and MLSys entries (PyTorch, profiling, whole-job optimization).

## Similar entries

- [When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis](https://papers.projxon.ai/entries/802) (paper, #802)
- [ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results](https://papers.projxon.ai/entries/830) (benchmark, #830)
- [LibraryDesignBench: can agents design libraries other agents can use?](https://papers.projxon.ai/entries/819) (paper, #819)
- [PivotOPD: Learning to Recover from Pivotal Mistakes in Multi-Turn Agents](https://papers.projxon.ai/entries/832) (paper, #832)
- [Context Language Models](https://papers.projxon.ai/entries/793) (paper, #793)
- [TraceML: What Auto-Research Agents Miss in Long-Horizon ML Development](https://papers.projxon.ai/entries/827) (paper, #827)
