physicalai-runtime-loading-exported-policies
Installation
SKILL.md
Loading Exported Policies
Runtime loads Studio export directories (or Hub snapshots that mirror them) through InferenceModel in src/physicalai/inference/model.py. Manifest parsing lives in src/physicalai/inference/manifest.py; backends register in src/physicalai/inference/adapters/registry.py (onnx → .onnx, openvino → .xml). Hub downloads use src/physicalai/inference/utils/_hub.py.
Workflow
-
Identify the artifact: local export directory or Hub
repo_id, expected backend, and whether the user needsselect_actionvspredict_action_chunk.- Done when: load path and API entry point are chosen before editing code.
-
Load with auto-detection first (local):
from physicalai.inference import InferenceModel model = InferenceModel("./exports/act_policy")- Done when:
modelconstructs without explicitbackend=when artifacts match a registered extension.
- Done when:
-
Hub load when the package is published: