mazebench/mazebenchengine/train-with-environments
Claude Code and agent skill by mazebench/mazebenchengine
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Train models with verifiers environments using hosted RL or prime-rl. Use when asked to configure RL runs, tune key hyperparameters, diagnose instability, set up difficulty filtering, or create practical train and eval loops for new environments.
Install
npx vskill@latest install mazebench/mazebenchengine/train-with-environmentsSKILL.md
Train With Environments
Goal
Run stable RL training loops with environment-aware hyperparameter choices and clear diagnostics.
Preferred Training Paths
- By default, assume users intend to use Hosted Training unless they explicitly ask for self-managed training.
- Hosted Training service path from lab setup:
- Self-managed
prime-rlworkflow:
- For self-managed training configs and launch commands, refer to prime-rl directly.
- Treat
prime-rlas a power-user path and assume users are comfortable working with GPU infrastructure and troubleshooting. - Runtime expectation:
- Hosted Training is intended to be launched from a CPU machine.
- Local
prime-rltraining requires local GPU access.
Endpoint Shortcuts And Model Family Choice
- Encourage users to maintain endpoint aliases in
configs/endpoints.tomlfor eval and train loops. - Ask whether they want instruct or reasoning models for pre-training validation.
- Instruct go-tos for behavior checks:
gpt-4.1series,qwen3instruct series. - Reasoning go-tos for harder reasoning-heavy probes:
gpt-5series,qwen3thinking series,glmseries.
First-Run Protocol
- Validate environment behavior before training with the canonical eval path. Keep the default save behavior and do not add
--skip-uploadunless the user explicitly requests that deviation:
- For v1 Taskset + Harness environments, verify the package exposes
load_environment(config: MyEnvConfig | None = None) -> vf.Envbacked byTaskset[Config]/ optionalHarness[Config]classes andvf.Env(config, taskset=..., harness=...); trainers interact with the same environment boundary even when the implementation is BYO Harness internally. - Confirm reward diversity exists at baseline.
- Start with conservative run length and inspect samples early.
Publish Gate Before RL
- Before long training runs, proactively recommend pushing the environment to Hub once smoke evals are stable.
- Ask the user explicitly whether visibility should be
PUBLICorPRIVATE. - Push with chosen visibility:
or
- For hosted RL and shared workflows, prefer Hub IDs after push (for example
owner/my-envin config[[env]].id).
RL TOML Environment Sections
- Use the same environment config shape for Hosted Training and
prime-rl. - Put task-owned v1 config in
[env.taskset]. - Put harness-owned v1 config in
[env.harness]. - Keep model, endpoint, sampling, rollout count, and trainer controls outside the environment sections unless configuring a nested or auxiliary harness model.
Hyperparameter Rules Of Thumb
- Use
rollouts_per_exampleandbatch_sizetogether. - Treat
batch_sizeas total rollout samples per step, not number of groups. - Keep
batch_sizedivisible byrollouts_per_example. - Quick tests or simpler environments:
rollouts_per_example = 8batch_size = 128(or lower)
- More complex or longer-horizon environments:
rollouts_per_example = 16batch_size = 512(common strong starting point)
- Increase gradually from stable settings instead of jumping directly to aggressive configs.
Difficulty Filtering
- For mostly binary rewards, enable difficulty filtering when reward distributions show many all-easy or all-hard samples:
buffer.online_difficulty_filtering = true
- For continuous rewards, usually avoid binary-style filtering assumptions and keep filtering conservative or off until validated.
- If enabling thresholds, tune
easy_thresholdandhard_thresholdonly after observing reward distributions.
Stability Constraints From Prime-RL
- Ensure
max_concurrent >= rollouts_per_example * workers_per_env. - Monitor off-policy drift when increasing rollout throughput.
- For OOM risk, reduce rollout pressure and sequence lengths before widening training scope.
Failure Diagnosis
- Flat reward near zero:
- Task too hard, rubric mismatch, or prompt/tool contract mismatch.
- Unstable reward swings:
- Lower learning rate, increase rollout group size, reduce async aggressiveness.
- Slow learning despite stability:
- Revisit task difficulty and reward shaping before increasing risk knobs.
Non-Negotiable Environment Quality During Training
- Use deterministic robust checks or LLM judges for rewards.
- Reject best-effort keyword heuristics unless explicitly approved as last resort.
- Keep environments self-contained after install; no user-managed background services.
- Surface feature limitations directly instead of proposing hidden workarounds.
Deliverable
Return:
- Config deltas applied.
- Why each delta was chosen.
- Observed metrics and failure signatures.
- Next tuning step with stop conditions.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.prime/skills/train-with-environments/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mazebench/mazebenchengine/train-with-environments)