[Model] Add π0.5 (Pi0.5) VLA model support (#6950)
Signed-off-by: chenchaox <chenchaox@nvidia.com>
This commit is contained in:
1 parent
873e9bff7c
commit
d0755b5716
22 files changed
+4342
-6
No files matched your search
@@ -1166,6 +1166,7 @@ def pi0_openpi_run_policy_session(
|
||||
prompt: str = PI0_OPENPI_DEFAULT_PROMPT,
|
||||
session_id: str | None = None,
|
||||
num_steps: int = 2,
|
||||
num_inference_steps: int | None = None,
|
||||
) -> dict[str, Any]:
|
||||
"""Connect, read handshake metadata, send ``num_steps`` observations."""
|
||||
import uuid
|
||||
@@ -1184,6 +1185,8 @@ def pi0_openpi_run_policy_session(
|
||||
actions = []
|
||||
for _ in range(num_steps):
|
||||
payload = pi0_make_dummy_obs(prompt=prompt, session_id=session_id)
|
||||
if num_inference_steps is not None:
|
||||
payload["sampling_params"] = {"num_inference_steps": num_inference_steps}
|
||||
payload["endpoint"] = "infer"
|
||||
conn.send(packer.pack(payload))
|
||||
actions.append(_pi0_decode_action_response(conn.recv()))
|
||||
|
||||
Reference in new issue
Block a user