Explore the research collection
3 entries · Follow this search
- Tool
who-ate-my-flops: bring your own PyTorch job, let an agent speed it up end to end
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.
- Post
The Next Scaling Problem
Long-form engineering essay on scaling cloud agents by pulling the runtime out of the sandbox and rebuilding the system around durable agent work. Core principles: (1) A computer should be something the agent calls, not somewhere the agent lives -- the agent is a stable shared service while sandboxes are disposable execution resources with their own lifecycle (models, memory, files, credentials, tools each get one). (2) Write ahead of execution -- a WAL-style protocol: record a transition before performing the operation it authorizes, with stable identities as idempotency keys, so a replacement runtime can reconstruct a thread from committed facts after a failure. (3) Durable delivery via a queue that outlives producers. Describes the Tetral architecture: Gateway (provider integration, stateless), Bridge (PostgreSQL commits with ownership/order checks), Queue (ordering, leases, retries, dead-lettering), Sandbox Service (computer lifecycle), Public API + Event Stream; the runtime itself is replaceable compute running a pure reducer with no DB/network I/O. Storage model: session_events (ordered event log), session_messages (model-context projection), session_bridge_operations (idempotency receipts); compaction adapted from OpenCode. Contrasts with Cursor's Temporal-based durable-execution approach.
- Paper
Rufus-Air: An Open LLM Post-Training Recipe
Rufus-Air is an eight-stage serial post-training pipeline on GLM-4.5-Air-Base (106B-A12B): SFT, Reasoning RL, Coding RL, Instruction-Following RL, General Agent, Coding Agent, Search Agent, and RLHF. It combines public data and open-source components without newly commissioned human annotation or an in-house distillation teacher, and emphasizes difficulty filtering, reliable rewards, and infrastructure details. The resulting model improves over the official GLM-4.5-Air release on every reported benchmark except Arena-Hard v2 Creative Writing and is competitive with similarly sized open models.