Skip to main content
Reinforcement Fine-Tuning (RFT) is free for models under 16B parameters. When creating an RFT job in the UI, filter for free tuning models in the model selection area on the fine-tuning creation page. If kicking off jobs from the terminal, you can find the model ID from the Model Library. Note: SFT and DPO jobs are billed per training token for all model sizes—see the pricing page for details.
Following the RFT Overview? This is the Remote Agent Training path—for training agents that run in your production infrastructure.
In this quickstart, you’ll train an agent to generate SVG drawings. Your agent runs in a remote server (Vercel), which means rollouts happen remotely while Fireworks handles the training. This approach lets you train agents that already live in your production environment. Here’s a quick walkthrough:

What You’ll Learn

  • Apply RFT to production agents — Train models that work with remote servers and existing infrastructure
  • Remote rollout processing — Connect your production environment to Fireworks RFT using Eval Protocol
  • Monitor and debug training — Track progress, inspect rollouts, and debug issues with live logs

1. Installation

  1. Clone the quickstart repo: https://github.com/eval-protocol/quickstart
  1. Install Eval Protocol:
  1. Environment Setup:
The env.example file is located in the evaluator/ directory. Make a copy of it in the same directory, name it .env, and fill in your API keys:
Then edit evaluator/.env with your API keys:
The create process below automatically reads and uploads these secrets to Fireworks. For more details on Fireworks Secret Management usage, please refer to using secret in evaluator.

2. Test your evaluator locally

Test your evaluator locally before launching training, to verify everything works with your rollout processor. Terminal 1 - Start the local UI server to view results:
Terminal 2 - Kick off the test:
This command discovers and runs your @evaluation_test with pytest. In this case, it builds an image and runs the test in Docker, because a Dockerfile is present. The test automatically uses our Vercel remote server:
If you want to use a local development Vercel server instead, see Local Development Server. Note:
  • If your evaluation setup has custom system dependencies (e.g., Chromium), add a Dockerfile. When you run ep local-test, it will build an image and run pytest inside Docker.
  • If you don’t need Docker, ep local-test will run pytest on your host machine by default.
  • You can ignore the Dockerfile and force host execution with: ep local-test --ignore-docker.
RFT evaluators run in sandboxed environments. Your Dockerfile must follow these constraints:Base image:
  • Only Debian-based images are supported (e.g., Debian, Ubuntu, or python:3.x-slim)
  • Alpine, CentOS, and other non-Debian distros are not supported
  • If no Dockerfile is provided, the system uses a default Python environment with common packages pre-installed
Supported instructions:
  • FROM: Base image (required, only one allowed)
  • RUN: Execute commands
  • COPY / ADD: Copy files into the image
  • WORKDIR: Set working directory
  • USER: Set the user
  • ENV: Set environment variables
  • CMD / ENTRYPOINT: Set the start command
  • ARG: Build-time variables
Unsupported features:Example Dockerfile:
Multi-stage Dockerfiles will fail during the evaluator build. Use a single FROM instruction and install all dependencies in one stage.

Expected Test Output

Navigate to http://localhost:8000 to see the Eval Protocol UI.
Eval Protocol Logs Interface If you’re interested in understanding how Remote Rollout Processing works and how it communicates with the remote server, see How Remote Rollout Processing Works.

3. Start training with a single command

To kickoff training, simply do:
This command:
  1. Uploads secrets — reads your .env and uploads API keys as Fireworks secrets
  2. Uploads evaluator — packages and uploads your evaluation code
  3. Waits for build — polls evaluator status until ACTIVE (timeout: 10 minutes)
  4. Creates dataset — uploads your svgbench_dataset.jsonl
  5. Launches RFT job — starts reinforcement fine-tuning with your evaluator

Configuration & Troubleshooting

Training Parameters: We use Eval Protocol’s default values for training parameters (batch size, epochs, learning rate, LoRA rank, accelerator count, etc.). For a complete list of available RFT flags you can customize, see Fireworks RFT Command Documentation. Changing Evaluators: If you’ve made changes to your evaluator code and want to upload a new version:
Evaluator Upload Timing Out: If your evaluator takes longer than 10 minutes to build, you’ll see:
In this case, monitor the evaluator upload at the link, and run the command again when ACTIVE.

4. Monitor Training Progress

After successful job creation, you’ll see:
Click on the RFT Job link to view real-time training progress, epoch counts, and rollout data.

Training Results

After successful training, you should see performance improvements reflected in the training metrics: SVG Agent Training Progress

SVG Quality Improvement

You can inspect individual rollouts to see the dramatic improvement in SVG generation quality. Below is a comparison between the first epoch and the final 8th epoch: Before (1st Epoch): SVG Generation - Before Training After (8th Epoch): SVG Generation - After Training The reinforcement fine tuning process significantly improves the model’s ability to generate accurate, detailed SVG graphics that better match the input descriptions.

Debugging Tips

When your training is running, you have several powerful tools to debug and monitor your rollouts:

Rollout Overview

Clicking on any Epoch or Step in the training dashboard, then clicking the table icon to the right, will show you a comprehensive table of all rollouts. It’s a good high-level overview to see if any rollouts failed and for what reason. Rollout Overview Table

Individual Rollout Details

If you click on a specific row in the rollout table, you can see exactly what the prompt was and how the model responded. You can even copy and paste out the SVG code generated and render it yourself to see what the model did. This is how we got the results above in the before and after comparison. Individual Rollout Details

Live Log Streaming

Clicking on View Logs takes you to a page of logs being streamed in. Here, you can see precisely what errors are happening to the rollouts. This is useful to debug and fix any issues with your rollouts. Live Log Streaming

Next steps

Customize training

Learn all CLI options to customize your training parameters

Try a single-turn example

Train models with Python evaluators for simpler tasks

Learn RFT concepts

Understand how reinforcement fine-tuning works

Additional resources

Appendix

How Remote Rollout Processing Works

Eval Protocol enables reinforcement learning that meets you where you are. Instead of forcing you to rewrite your agent in a specific framework, you can implement a lightweight remote server wherever your codebase and infrastructure already live. Your remote server is only responsible for:
  • Executing rollouts - Run your agent logic (in this case, SVG generation from text prompts)
  • Logging to tracing - Send structured logs to tracing.fireworks.ai for evaluation (see the below linked docs for more information)
In this example, we showcase a Vercel TypeScript server that executes single-turn SVG code generation.
📖 Learn More: For a complete deep-dive into Remote Rollout Processing, see the Remote Rollout Processor Tutorial.

Local Development Server

Then swap out the remote_base_url to point to the local server you just started:
And in a third terminal, run the evaluation:
See Vercel CLI documentation for more information on local development.