Repository navigation
fix(policies): use the noise passed to predict_action_chunk in X-VLA, LaWAM and VLA-JEPA - #4814
Closed
shoumikhin wants to merge 3 commits into
Closed
shoumikhin wants to merge 3 commits into
shoumikhin wants to merge 3 commits into
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
shoumikhin
pushed a commit
to shoumikhin/lerobot
that referenced
this pull request
Sep 30, 2026
shoumikhin
force-pushed
the
noise-honor-ignored
branch
from
October 1, 2026 06:16
7ad8cf3 to
7b69e2b
Compare
shoumikhin
added a commit
to shoumikhin/lerobot
that referenced
this pull request
Oct 1, 2026
shoumikhin
force-pushed
the
noise-honor-ignored
branch
from
October 3, 2026 02:39
7b69e2b to
f2dd7aa
Compare
XVLAPolicy.predict_action_chunk and select_action accepted a noise argument but ignored it, so the flow always started from a fresh torch.randn draw. Pass it through to XVLAModel.generate_actions, which now uses it as the starting sample and draws exactly as before when it is None.
LaWAMPolicy.predict_action_chunk and select_action accepted a noise argument but deleted it, so the flow always started from a fresh sample_noise draw. Pass it through the backend's predict_action to ConditionalFlowMatchingHead.sample_actions_cfg, which now uses it as the starting sample and draws exactly as before when it is None.
VLAJEPAPolicy.predict_action_chunk and select_action accepted a noise argument but ignored it, so the flow always started from a fresh torch.randn draw. Pass it through VLAJEPAModel.predict_action to VLAJEPAActionHead.predict_action, which now uses it as the starting sample and draws exactly as before when it is None.
shoumikhin
force-pushed
the
noise-honor-ignored
branch
from
October 6, 2026 17:00
f2dd7aa to
04a864e
Compare
shoumikhin
added a commit
to shoumikhin/lerobot
that referenced
this pull request
Oct 6, 2026
3 of 5 tasks
Contributor
Author
|
Folded into #4813, as Maximellerbach asked. |
shoumikhin
added a commit
to shoumikhin/lerobot
that referenced
this pull request
Oct 12, 2026
huggingface#4813 now also holds huggingface#4814, huggingface#4815, huggingface#4816 and huggingface#4817, folded in at a reviewer's request, and moves every passed noise to the draw's device and dtype. Export already has all of it, from the earlier merges and "policies: move a passed noise to the draw's device and dtype", so the tree does not change. select_action in X-VLA keeps export's call through predict_action_chunk (huggingface#4827), which forwards the noise, instead of huggingface#4813's direct _get_action_chunk call.
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.
Problem
X-VLA, LaWAM and VLA-JEPA accept
noiseinpredict_action_chunkandselect_action, but ignore it and draw new starting noise inside the model. A caller therefore cannot use that input to compare runs or check a compiled or exported policy against the original.Change
Each policy passes
noiseto its starting draw and uses the supplied tensor instead. The tensor is not modified. When it isNone, the same draw runs as before, preserving seeded behavior.select_actionuses noise only when computing a new chunk.Expected shapes:
(batch_size, chunk_size, policy.model.dim_action).(batch_size, chunk_size, flow_action_dim).(batch_size, chunk_size, action_dim).X-VLA and LaWAM use the model's action width, which can exceed the dataset's width. New internal arguments are keyword-only and default to
None; public signatures are unchanged. Main's new dtype configuration is retained.Tests
The rebase onto current main applied without conflicts and preserved every patch. On the rebased head, the X-VLA, LaWAM, VLA-JEPA and dtype tests passed on macOS arm64 CPU with Python 3.12 and PyTorch 2.11 (158 passed; 3 need CUDA and 9 need extended Hub tests, all skipped). Every rebased commit passed whitespace checks.
The regression tests use tiny random-weight models, or LaWAM's flow head, to check repeatability, unchanged caller tensors, agreement with the default seeded draw, and forwarding through
select_action. Earlier validation confirmed that every new test fails without the source change. The existing policy tests passed on Linux aarch64 CPU; tests requiring a GPU or Hub download were skipped.