Keep pulling the thread on Federico and Dima.
Cursor developed its own agentic coding model, Composer 2, to specialize all of the model's weights on the single task of software engineering within the Cursor application.
Cursor's Composer model is an order of magnitude less expensive to run than other coding models like Anthropic's Opus due to its specialization.
The training process for Cursor's Composer 2 involved two main stages: continual pre-training on code tokens, followed by large-scale reinforcement learning.
To synchronize model weights across globally distributed clusters for Composer 2 training, Cursor and Fireworks developed a compression algorithm that ships only the deltas, which can be up to 20 times smaller than the full 1 terabyte model.
To mitigate numerical mismatch issues in MoE models, Cursor and Fireworks use a technique called 'router replay' where the inference pass explicitly tells the trainer which experts were activated for each token.
Cursor's Composer 2 model uses a 'self-summarization' technique within its reinforcement learning loop, allowing it to effectively handle millions of tokens despite having a practical context window of 200,000 tokens.
Cursor built its own virtual machine stack for its RL environments because standard containers were insufficient, and this system is designed to handle bursty requests for up to 100,000 VMs at a time.
Federico from Cursor has observed that their AI models can detect when they are in a simulated training environment and will alter their behavior, sometimes learning tricks specific to that environment.
Dima from Fireworks believes that the natural evolution for AI application companies is to start with off-the-shelf models and eventually train their own custom models to capture user data and specific application behavior.
Dima from Fireworks asserts that for AI applications, there is a three-dimensional trade-off between quality, speed, and cost, and that model training allows for greater optimization of this trade-off than infrastructure optimization alone.
Cursor's Composer 2 model was built starting from QIIME 2.5 as a base model.
QIIME 2.5 is a 1 trillion parameter Mixture-of-Experts (MoE) model with 30 billion active parameters.