Training¶
HarborRL's native path turns audited Harbor trajectories into complete GRPO, DAPO, OPD, and process rewards (NPR) groups for a pinned Slime backend. Configuration, rollout evidence, export contracts, and backend launch are separate layers so each can be validated at the earliest useful stage.
Training stages¶
- Load configuration. Resolve relative paths, apply repeatable overrides, and validate the selected MATH combination.
- Resolve a deployment. Load an explicit schema-1 file, discover
./deployment.yaml, or derive an embedded-local topology. - Preflight.
doctorchecks the relevant local and remote roles before a run directory is created. - Materialize inputs. Freeze the original task locks and prompt rows into the run directory without rewriting tasks, tests, or rewards.
- Collect trajectories. Run isolated attempts against a policy-versioned gateway and verify response consumption plus Harbor verifier evidence.
- Export complete groups. Recompute Native IR eligibility, rewards, advantages, token masks, and batch weights.
- Update and publish. Launch the pinned Slime hooks, synchronize weights, and admit the next serving policy version.
Commands and side effects¶
| Command | Remote probes | Creates run | Starts training |
|---|---|---|---|
harborrl validate ... |
No | No | No |
harborrl train ... --dry-run |
No | No | No |
harborrl doctor ... |
Yes | No | No |
harborrl train ... |
Yes | Yes | Yes |
The real training command fails before launch if any required doctor check fails.
Before a live run¶
- Replace all example paths, hostnames, and fingerprint placeholders.
- Lock task content and an exact Claude Code profile.
- Verify the backend commits/image and the target Python environments.
- Confirm shared storage and bidirectional network routes.
- Run a complete-group smoke scope before increasing concurrency.
- Treat checkpoint creation as execution evidence, not proof of learning quality.
Continue with configuration, the native training workflow, and the run artifact reference.