Prerequisites
- An EigenAI account with available credits.
- A prompt dataset in JSONL format (each line must contain a
messagesarray).
Create an RL job
Click Fine-Tune a Model on the Fine-tuning page, then select the RL tab to open the 5-step wizard.Step 1 — Model
Select a Base model to initialize the agent policy network.Step 2 — Dataset
Upload a prompt dataset. Each line in your JSONL file must contain amessages array.
Your file should follow one of these formats depending on the reward type you plan to use:
Step 3 — Tools
Configure how the agent interacts during training and which external tools it can access.Conversation Mode
MCP Tool Servers (Optional)
Add MCP servers to give your agent access to external tools during training. Click Add MCP Server and provide the server configuration. You can skip this section if your training doesn’t require tools.Training Parameters
Step 4 — Reward
Define one or more Python reward functions that score the agent’s output. You can add multiple reward functions with different weights to combine signals.Preset Reward Suites
Select a preset to auto-generate a starting reward function:Writing a Reward Function
Each reward function must implement agrade function with the following signature:
EigenMagic Create
Describe what you want to reward in plain language, and EigenMagic will generate the Python code for you. For example:“Compare the final answer in the agent’s response to the expected_answer in my dataset.”
EigenMagic Review
Before proceeding, click EigenMagic Review to validate your reward function. The reviewer checks for issues such as missing imports, runtime errors, or logic problems. You may continue regardless of the verdict.Environment Variables
If your reward function calls an external API (e.g., an LLM judge), add the required API keys as environment variables. They will be available viaos.environ at runtime.
Step 5 — Review
Review the full job configuration before launching.
Check the acknowledgment box and click Confirm & Create to launch the job.
RL job details
Click any RL job in the fine-tuning list to open its detail page.Configuration
Shows the full job configuration:- Status, Training mode, Base model, Training dataset, Evaluation dataset
- Batch size, Learning rate, Queue position
- Created / Started / Completed timestamps
RL Configuration
Shows RL-specific settings used for the job:- Samples/prompt, Temperature, Max response len, Reward function (Python code), Reward sources
Progress
Shows live training progress: completion percentage, current step out of total steps, and a summary of the latest Loss, Grad norm, and Learning rate values.Evaluation Snapshot
Shows the latest rollout evaluation metrics at the most recent logged step.
Use the Step Range inputs to filter metrics to a specific step window.
Rollout Metrics
Real-time charts updated as training progresses. All charts plot values over rollout steps.Training Metrics
The latest values are shown as a summary line (e.g.,
loss 4.11e-5 • grad 0.505 • lr 2.00e-6 @ step 101). Source data comes from training.log.
Rollout Explorer
Browse individual rollout steps. Each step shows the number of prompts, total samples, average reward, and completion status. Click any step to inspect individual rollout trajectories.Model Checkpoints
Checkpoints are saved according to the Save Checkpoint Every setting (or once per epoch by default). Each checkpoint is labeled by the training step at which it was saved.
Each checkpoint has two buttons:
- Details — View the full list of files in the checkpoint.
- Deploy — Create an inference deployment directly from this checkpoint. See Deployments for details.
Additional files
Click Download next to any file to save it locally.