Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions configs/05/replay-sft.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
model = "openai/gpt-oss-20b"
loss = "sft"
max_steps = 100
batch_size = 128
rollouts_per_example = 1

[[env]]
id = "prime/sft-replay"

[env.taskset]
dataset = "HuggingFaceH4/no_robots"
21 changes: 21 additions & 0 deletions guides/05-warm-starts-with-sft/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,27 @@ The fields specific to SFT are:

Everything else mirrors an RL config: `[[env]]`, `[env.taskset]`, `[env.harness]`, and `[eval]` work the same way.

## Replay an Existing Dataset

If you already have demonstrations, use the replay environment instead of a teacher. The dataset should be a Hugging Face train split with a `messages` column: each row is a chat transcript and must contain at least one assistant message.

```toml
# [configs/05/replay-sft.toml](../../configs/05/replay-sft.toml)
model = "openai/gpt-oss-20b"
loss = "sft"
max_steps = 100
batch_size = 128
rollouts_per_example = 1

[[env]]
id = "prime/sft-replay"

[env.taskset]
dataset = "HuggingFaceH4/no_robots"
Comment on lines +82 to +84
```

This path does not call a teacher during rollout collection. `sft-replay` turns stored assistant messages into replayed trajectories, and the training stack tokenizes those messages before sending them to the trainer.

## Launch Training

Start the run:
Expand Down