Loading...
Loading...
Loads and validates policies exported from Physical AI Studio for Runtime deployment. Use when working on InferenceModel, InferenceModel.from_pretrained, manifest.json, adapter auto-detection (onnx, openvino), backend/device kwargs, Hugging Face Hub policy packages, or the Runtime side of the export/load contract that Studio produces with physicalai export.
npx skill4agent add openvinotoolkit/physicalai physicalai-runtime-loading-exported-policiesInferenceModelsrc/physicalai/inference/model.pysrc/physicalai/inference/manifest.pysrc/physicalai/inference/adapters/registry.pyonnx.onnxopenvino.xmlsrc/physicalai/inference/utils/_hub.pyrepo_idselect_actionpredict_action_chunkfrom physicalai.inference import InferenceModel
model = InferenceModel("./exports/act_policy")modelbackend=model = InferenceModel.from_pretrained("OpenVINO/act-fp16-ov", revision="<commit-sha>")model = InferenceModel("./exports/act_policy", backend="openvino", device="CPU")references/export-load-contract.mdreferences/onnx.mdreferences/openvino.mdmodel.reset()
action = model.select_action(observation)physicalai-runtime-running-policy-on-robotuv run pytest tests/unit/inference/test_model.py tests/unit/inference/test_manifest.py -qtests/unit/inference/manifest.jsondocs/reference/manifest-schema.mdonnxruntimesrc/physicalai/inference/adapters/revision=references/export-load-contract.mdreferences/onnx.mdreferences/openvino.md