Repository navigation
Add Cosmos3 Nano - #1772
Add Cosmos3 Nano#1772
Conversation
alexmillane
left a comment
There was a problem hiding this comment.
Self review.
7c6fbb0 to
8f946cb
Compare
2e74d17 to
0a2d312
Compare
8f946cb to
054a7bf
Compare
CosmosRemotePolicyCfg gains a policy_variant field (CosmosPolicyVariant: cosmos3_edge, the default, or cosmos3_nano) that selects which released Cosmos3 DROID checkpoint serves the client. The variant sets the default open_loop_horizon (16 for Edge, 32 for Nano) and, on OSMO, the server task's checkpoint and prompt format: Edge is served with JSON-formatted prompts and Nano with plain-text prompts, following each model card. build_server_image.sh bakes the Nano checkpoint into the cosmos_server image next to Edge, pinned to a Hugging Face revision, so the server downloads nothing at startup. run_cosmos_server.sh takes -v edge|nano to serve either checkpoint locally. Signed-off-by: alex <[email protected]>
054a7bf to
220013c
Compare
alexmillane
left a comment
There was a problem hiding this comment.
Self review 1
Bake the Edge checkpoint to /workspace/baked_checkpoint_edge and rename the build script's CHECKPOINT variables to EDGE_CHECKPOINT for symmetry with Nano. Drop the policy_variant paragraph from the server/client policies docs page. Signed-off-by: Alex Millane <[email protected]>
[Medium impact] The changes reach Cosmos policy runs and their server images. Fix the documented Nano YAML selection before merging. FindingsSummaryAdds Nano selection to the Cosmos client, image build, local server wrapper, and per-run OSMO server setup.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Config["Cosmos policy config"] --> Variant{"Selected variant"}
Variant --> Edge["Edge checkpoint · JSON prompt · 16 actions"]
Variant --> Nano["Nano checkpoint · plain prompt · 32 actions"]
Edge --> Server["Dedicated OSMO server"]
Nano --> Server
Server --> Client["Client replays returned actions"]
Reviews (1) · Last reviewed commit: "Address Cosmos3 Nano self review" · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR adds Cosmos3 Nano as a second Cosmos policy variant. It adds a Greptile already posted two config problems. I reproduced both with the pinned omegaconf 2.3.1 and hydra-core 1.3.8, so I haven't repeated them inline:
Other notes, with no changed line to attach them to:
Findings🟡 Warning: osmo/tasks/cosmos_server_task.py:25 — The Edge checkpoint path is renamed, but the image tag stays Test Coverage and CI CostThe new tests are cheap and fit the existing files. None of them loads a Cosmos policy through the YAML loader or applies a Run override, which is where both Greptile issues occur. Greptile already asked for a YAML-loading test. It should also apply a Run-level VerdictMinor fixes needed |
The press-button YAMLs from #1568 landed after #1775 started requiring task-type tags on every KitchenBench YAML, which broke test_kitchen_bench_yamls_have_known_tags on main. Tag them press_button. Signed-off-by: Alex Millane <[email protected]>
Resolve the default open_loop_horizon when CosmosRemotePolicy is built, so a Run override that switches policy_variant picks up the new variant's default instead of keeping the Edge value written by __post_init__. CosmosServerTaskCfg stores the policy_variant and looks up the checkpoint and prompt format from it, so the two cannot disagree. Pin the Edge checkpoint revision in build_server_image.sh, like Nano. Signed-off-by: Alex Millane <[email protected]>
Add a
cosmos3_nanopolicy variant toCosmosRemotePolicy.Why this change?
What changes?
CosmosRemotePolicyCfgtakespolicy_variant, aCosmosPolicyVariantenum (cosmos3_edgeorcosmos3_nano).osmo/tasks/cosmos_server_task.py) selects the checkpoint and prompt format from the run'spolicy_variant.build_server_image.shbakes the Nano checkpoint into thecosmos_serverimage next to Edge, pinned to a Hugging Face revisionrun_cosmos_server.shtakes-v edgeor-v nanoto serve either checkpoint locally.Edge is still the default, so existing experiment configs are unchanged.
Validation