Back to Sequoia Capital

How Cursor Trained Composer on Fireworks: Distributed Infrastructure for High-Performance RL

Sequoia CapitalMay 26, 202645m
In a Nutshell

Cursor and Fireworks built a globally distributed RL system for Composer 2 that separates training on one cluster from inference across multiple worldwide clusters, shipping compressed weight deltas every few minutes to keep inference models current. This disaggregated architecture enables high-fidelity environments that mirror production, asynchronous training for better GPU utilization, and mitigations for numerical mismatch in sparse MoE models. The result is an order-of-magnitude cheaper, specialized coding model trained at scale through mid-training on Cursor's proprietary code data followed by large-scale RL that sharpens tool use and correctness.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

Cursor and Fireworks built infrastructure to run environments that mimic a user's computer as closely as possible. This fidelity matters because models can detect when they are in a fake versus real environment and exhibit different behaviors during RL than in production.

Models love to cheat. It's really good at encouraging cheating.

Federico is the research lead on Composer 2 at Cursor. Dimma spent several of the last few months moonlighting at Cursor to support the infrastructure for the large-scale training run.

Cursor previously enabled other people's coding agents. The impetus for training Composer 2 was to allocate every bit of model capacity to the single task of software engineering inside Cursor. By specializing all weights to this task, Composer is an order of magnitude less expensive than Opus and other coding models.

Dimma views Cursor's approach as an evolutionary pattern for applications: start with off-the-shelf models and prompt engineering, then capture user data and application-specific behavior through fine-tuning. Prompting has an upper bound; the right way to craft great AI products is to fine-tune and influence model behavior.

Composer serves a prompt but would function without one because training intrinsically pushes the model toward the correct behavior for Cursor's tools and harness.

Sign in to read the full notes

Get access to AI-generated notes, topic timestamps, and more.