pai-load-policy
Installation
SKILL.md
Loading Exported Policies
Runtime loads Studio export directories (or Hub snapshots that mirror them) through InferenceModel. It reads manifest.json, auto-detects registered ONNX/OpenVINO adapters from model files, and supports Hub revisions. See the inference API and manifest schema.
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: