[Bugfix][Model] GR00T-N1.7: honor the per-request seed for flow-matching noise (#7253)

Signed-off-by: liangmengh <liangmengh@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
liangmenghuangandClaude Fable 5.1 authored and GitHub committed 2026-09-08 15:53:20 +00:00
1 parent de1b0708bd
commit 7a80b79698
12 files changed
+285 -41

No files matched your search

+4 -3
View File
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from pathlib import Path
from typing import Any
@@ -328,7 +328,8 @@ class Gr00tPolicy:
Args:
observation: Batched observation dictionary
options: Optional parameters (currently unused)
options: Optional per-request model parameters, forwarded verbatim to
the action head (e.g. ``generator``)
Returns:
Tuple of (actions_dict, info_dict)
@@ -351,7 +352,7 @@ class Gr00tPolicy:
# Step 4: Run model inference to predict actions
with torch.inference_mode():
model_pred = self.model.get_action(**collated_inputs)
model_pred = self.model.get_action(**collated_inputs, options=options)
normalized_action = model_pred["action_pred"].float()
# Step 5: Decode actions from normalized space back to physical units