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

  1. Identify the artifact: local export directory or Hub repo_id, expected backend, and whether the user needs select_action vs predict_action_chunk.

    • Done when: load path and API entry point are chosen before editing code.
  2. Load with auto-detection first (local):

    from physicalai.inference import InferenceModel
    model = InferenceModel("./exports/act_policy")
    
    • Done when: model constructs without explicit backend= when artifacts match a registered extension.
  3. Hub load when the package is published:

Installs
1
GitHub Stars
6
First Seen
1 day ago