themisim.fetch_weights¶
- themisim.fetch_weights(dest_dir=None, *, url=None, expected_sha256='f9c97e906bee7a34f0727377f8b3194086080fa9573390db44daab4ce2c64e33', force=False)[source]¶
Return a local path to the verified checkpoint, downloading if needed.
- Parameters:
dest_dir (str | Path, optional) – Directory to cache the checkpoint in. Defaults to
$THEMIS_ASI_WEIGHTSor./weights.url (str, optional) – Override the download URL. Defaults to
DEFAULT_WEIGHTS_URL/$THEMIS_ASI_WEIGHTS_URL.expected_sha256 (str, optional) – Verify the file against this digest (default: the pinned hash). Pass
Noneto skip verification.force (bool) – Re-download even if a valid local copy exists.
- Return type: