feat: support Cosmos3-Edge-Policy-DROID in robolab policy server#117
Closed
ychao-nvidia wants to merge 1 commit into
Closed
feat: support Cosmos3-Edge-Policy-DROID in robolab policy server#117ychao-nvidia wants to merge 1 commit into
ychao-nvidia wants to merge 1 commit into
Conversation
Wire up serving for the Cosmos3-Edge-Policy-DROID checkpoint, which differs from the Nano policy in its processor, config, tokenizer export, and prompt formatting. - processors: build the Edge processor from nvidia/Cosmos3-Edge-Reasoner, since the policy checkpoint bundles a custom Cosmos3EdgeProcessor with no loadable code (matching how training sources the reasoner processor). - public_model_config: register Nemotron3DenseVL MoT config/model target aliases used by the Edge policy. - action_policy_server_robolab: add the Edge policy HF repo mapping and a format_prompt_as_json arg to serve structured JSON prompts matching training; JSON-encode ai_caption when produced as a dict. - checkpoint_db: re-form the bare relative Wan2.2 VAE path exported by the Edge checkpoint into an s3://bucket/... registry key so it auto-downloads from HF, matching Nano's path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ychao-nvidia
force-pushed
the
ychao/20260718_edge_policy_droid
branch
from
July 18, 2026 21:44
459e3a3 to
20a26a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enables serving the new Cosmos3-Edge-Policy-DROID checkpoint through the robolab action policy server. The Edge policy was post-trained from Cosmos3-Edge (Nemotron-3-Dense-VL backbone) and differs from the existing Nano policy in its processor, model config, tokenizer export, and prompt formatting — this MR wires up each of those differences so the checkpoint runs end-to-end.
Changes
data/generator/processors/__init__.py— Build the Edge processor fromnvidia/Cosmos3-Edge-Reasoner. The policy checkpoint bundles a customCosmos3EdgeProcessorwith no loadable processor code (noauto_map/ remotecode), so it can't be built via
AutoProcessor. Sourcing it from the reasoner repo it was post-trained from mirrors how internal training sources the Nemotron-3-Dense-VL processor.inference/common/public_model_config.py— Register theNemotron3DenseVLMoTConfig.from_json_fileandNemotron3DenseVLTextForCausalLMtarget aliases used by the Edge policy.scripts/action_policy_server_robolab.py— Add the Edge policy HF repo mapping, and a newformat_prompt_as_jsonserver arg that serves prompts as structured JSON to match training. When the transform emitsai_captionas a dict, it's JSON-encoded before serving.utils/checkpoint_db.py— Re-form the bare relative Wan2.2 VAE path exported by the Edge checkpoint into ans3://bucket/...registry key. The Edge conversion exports the VAE tokenizer with an emptybucket_name(Nano exportsbucket_name="bucket"), so the raw relativevae_pathreaches the downloader instead of a registry key; re-forming it lets the VAE resolve through the registry and auto-download from HF, matching Nano's path. Local files still take precedence.