Adding a policy adapter¶
Start from policy/Your_Policy/ and an existing adapter. Keep model-specific data conversion, preprocessing, training, inference, and checkpoint packaging in policy/<adapter>/. Convert observations and actions in the adapter to match the shared interfaces.
Declare the input fields your policy needs. Read the current raw-episode format, preserve time alignment, and return actions in the format required by the task mode. Package the native weights and all preprocessing files needed for inference, with a manifest and file hashes.
Test conversion on a small dataset, a training step where dependencies allow, packaged checkpoint loading, server metadata, session reset, and a rollout through the shared evaluator. Synthetic fixtures are useful for interface tests; use the actual model to check training and serving.
Support all five task IDs through configuration, without hardcoded task or asset paths. Keep optional model dependencies in the adapter’s own environment. Record dependency versions and upstream sources, and retain third-party license notices.