maple.backend.policy.base.PolicyBackend.pull

PolicyBackend.pull(version: str, dst: Path) Dict

Pull model weights from HuggingFace and Docker image.

Downloads the specified model version from HuggingFace Hub and ensures the Docker image is available locally. This prepares everything needed to serve the policy.

Parameters:
  • version – Model version to pull (must exist in _hf_repos).

  • dst – Destination directory for model weights.

Returns:

Dictionary with pull metadata (name, version, repo, path).