In short
Reinforcement fine-tuning (RFT) helps teams fix AI agents that pass development tests but stumble in production, even when they have only a few hundred labeled examples or none at all. Jetashree Ravi, Tech Lead Manager at Fireworks AI, argues that what matters is a verifiable task and a trustworthy evaluator, run in a tight generate, score and update loop. With the right tooling, teams can apply RFT to the agents they already have instead of rebuilding them.
Key takeaways
- RFT succeeds when treated as an iterative system: well-structured datasets, reliable evaluation loops and carefully designed reward signals are key to improving real-world model behavior.
Three ways to fine-tune a model
Ravi opens by mapping the main fine-tuning techniques. Supervised fine-tuning (SFT) works when a team has high-quality input and output examples and a clear gold standard; she describes it as easy, fast and predictable. DPO trains a model on preferred versus non-preferred output pairs, which suits teaching brand voice, style, alignment or safety guidance. Reinforcement fine-tuning trains a model with the help of an evaluator on a real task, which she sees as especially useful for today's agentic systems.
RFT is the focus of the talk for a reason she states plainly: "And throughout the presentation, we will be laser focused on the middle one because to be quite honest, not only does it help and improve the model performance, it's also quite misunderstood today." (1:51)
Later she offers a simple rule of thumb. Simple classification or domain adaptation tasks are a good fit for SFT, while code generation, text to SQL, deep research and customer support agents are often better served by RFT.
Why agents break in production
From her work with customers, Ravi describes a recurring pattern. An agent passes every evaluation in the development environment, then in production it ignores formats, picks the wrong tools or calls them at the wrong time, passes incorrect arguments, fails to learn conventions and runs too slowly. These look like problems SFT should fix, but the usual remedy, more labeled data, rarely exists.
"Because most customers or you don't even have a hundred K labeled examples. You might have around 200 or sometimes even none." (2:43)
What teams usually do have, she points out, is a verifiable task: tests, validators and business metrics that show whether a model is improving from run to run. That changes the question teams should ask. "It more so becomes how do I make my agent reliable when I cannot rely on these big data set." (3:38) Evaluator-driven training is her answer: an agent interacts with an environment, an evaluation or reward function scores its performance, and the model is retrained.
RFT under the hood: generate, score, update
Ravi breaks RFT into three steps inside one tight loop. First, the model receives a prompt and produces several responses. Second, each response gets a score or reward; in her example, one response scores 0.6, another 0.2 and a third negative 0.1. Third, the model's weights are updated based on those rewards.
"This tight loops happen again and again until the model improves." (4:01)
On Fireworks, she outlines a five-step workflow. A team creates a JSONL file of prompts, then defines an evaluator that scores output between zero and one. Next it connects the dataset and evaluator, either by uploading them to the platform or, for advanced researchers, through a training API that lets them define their own training loops. Then it creates the RFT job with chosen hyperparameters while the platform handles rollouts, and finally deploys the trained model and scales it into production.
Evaluators can be rule based and deterministic, or use an LLM as a judge, which is less deterministic. Ravi stresses that defining the evaluator is the most important step, because the final model is only as good as its dataset, evaluator and hyperparameters.
Making evaluation simple with an eval protocol
Real environments rarely hand back a clean reward. Ravi's example is a Python agent that sends queries to a SQL service in the cloud, which runs them and returns results. A raw SQL result is messy to use for updating model weights, and combining it with conversation history and ground truth into one reliable reward signal is hard to define and even harder to maintain.
The eval protocol is a standard interface designed to solve this. "Eval protocol itself wraps the agent and the environment into one component." (10:35) It is non-intrusive: the team runs its task as normal, sends the outputs to an evaluation function, and the protocol runs the evaluator and feeds the scores into the training loop, using algorithms such as GRPO, DAPO and GSPO. Existing reward signals and agentic workflows can be reused instead of rewritten, which Ravi links to faster iteration and more reliable agents.
"So, now you can do RL without actually having to rebuild your entire agent or an environment itself." (11:16)
Lessons from building Cursor's Composer 2
Ravi closes with a customer case: a similar approach, combining the eval protocol and RL, was used to build Composer 2 for Cursor. She highlights four techniques from that work. The team focused on small delta updates rather than full model weight changes, since in RL usually only a small part of the weights changes. Training and rollout generation ran at the same time, which kept GPUs fully used.
The team also used hot loading, applying new weights instantly to a running deployment and removing a familiar pain point: "Usually when weights are updated, there is some amount of downtime for the deployment before it is actually rolled out." (12:52) Finally, distributed GPU training across several locations avoided depending on one massive cluster, where capacity can quickly become a bottleneck.
Watch the talk
Make RFT Boring (In a Good Way): Predictable, Practical Tuning, by Jetashree Ravi, 14 minutes: https://www.womentech.net/video/make-rft-boring-in-good-way-predictable-practical-tuning
About the speaker
Jetashree Ravi is a Tech Lead Manager at Fireworks AI, where she leads a team of applied machine learning engineers building production-grade AI systems for companies including Figma, Uber, Cognition and Sentient Foundation. She is a co-author of FIREBENCH and an active member of the AI builder community, where she organizes and judges hackathons.
Questions this talk answers
- How do SFT, DPO and RFT differ?
- When should a team choose RFT instead of SFT?
- How does reinforcement fine-tuning work under the hood?
- What makes a good evaluator for RFT?
- How can an existing agent be trained with RL without rebuilding it?
Drafted with AI from the talk transcript. Editor review pending.