Skip to content

Add opencode_hf_sandbox.py: loop-owning training in remote HF sandboxes - #6565

Draft
sergiopaniego wants to merge 1 commit into
mainfrom
add-opencode-hf-sandbox-example
Draft

Add opencode_hf_sandbox.py: loop-owning training in remote HF sandboxes#6565
sergiopaniego wants to merge 1 commit into
mainfrom
add-opencode-hf-sandbox-example

Conversation

@sergiopaniego

Copy link
Copy Markdown
Member

What does this PR do?

Adds examples/scripts/openenv/opencode_hf_sandbox.py, a sibling of opencode.py that runs each loop-owning rollout in its own remote Hugging Face sandbox (HFSandboxBackend) instead of a local subprocess, so rollouts scale out beyond a single node.

It reuses the same DeepCoder task, held-out verifier, reward and hooks as opencode.py. The delta is where the rollout runs: a pre-baked remote sandbox image, and a two-URL topology (trainer to vLLM on localhost for NCCL weight-sync, remote sandboxes reach the same vLLM through a public URL). Also adds the example to example_overview.md and a note in the openenv.md guide.

Draft, do-not-merge until OpenEnv PR huggingface/OpenEnv#1010 lands on main (it moves the sandbox layer to openenv.core.sandbox, the import this example uses).

AI writing disclosure

  • AI-assisted

cc @AmineDiro

Sibling of opencode.py that runs each rollout in its own remote Hugging Face
sandbox (HFSandboxBackend) to scale rollouts beyond a single node. Adds the
script + its rows in example_overview.md and the openenv.md guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant