terra.download_pretrained

terra.download_pretrained#

terra.download_pretrained(repo_id, *, revision=None, cache_dir=None, local_dir=None, token=None)#

Download a published TERRA model bundle.

revision pins a git tag/branch/commit (e.g. the manuscript v1.0); omit it for the latest main. By default the bundle is stored in the Hugging Face cache. Pass local_dir to download the files directly into that folder (created if needed, and returned as-is); pass cache_dir to use a custom Hugging Face cache root instead.

Returns:

  • path (str) – Local folder path to the downloaded bundle, to pass as model_folder_path to the inference pipeline.