Skip to main content
SeekrFlow supports reinforcement tuning using group relative policy optimization (GRPO). Reinforcement tuning trains a model to generate higher-quality outputs by scoring candidates against reference answers using one or more graders. To train a model with reinforcement tuning, follow the same process as standard fine-tuning with a few modifications. First, ensure your dataset has a reference_answer field containing the correct answer for each problem. Include a system prompt instructing the model to use the reasoning format:
Upload this dataset with the purpose reinforcement-fine-tune. See Upload file for the full schema reference. Set fine_tune_type and define a reward function using reward_components in your TrainingConfig:
Create the fine-tuning job using the standard workflow. See Create a fine-tuning job for the full process.
LoRA can be used with reinforcement tuning to reduce memory requirements. See LoRA for configuration details.

Reward functions

A reward function defines how model outputs are scored during training. In SeekrFlow, reward functions are built from one or more graders — individual scoring operations that each evaluate a specific quality of the output.

Grader types

Create graders

LLM grader

The LLM grader (LLM-as-a-judge) scores each candidate response with an LLM instead of a deterministic metric. The judge compares the model output to the reference_answer and rates how well it matches in meaning and quality. Use it for open-ended or subjective outputs, such as semantic correctness, helpfulness, or tone, where string check and text similarity are too rigid. The LLM grader takes no operation. It accepts optional generation parameters that control how the judge produces its scores: The judge runs on infrastructure managed by SeekrFlow, so you don’t configure an inference endpoint or model for it.
The LLM grader takes a weight and combines with other graders the same way, as shown next.

Combine graders with weights

Assign weight percentages to combine multiple graders into a single reward function. Weights must sum to 1.0. If no weights are provided, graders are weighted equally.

Format reward weight

By default, 10% of the reward score is based on whether the model uses the correct output format (<think> and <answer> tags). You can adjust this with format_reward_weight:
When format_reward_weight is set explicitly, the sum of all weights (format + graders) must equal 1.0.
Last modified on August 1, 2026