inference
models.pull
Download an inference model locally.
strata inference models pulldb.ai.models.pull(model: 'str') -> 'Any'wire inference_models_pull
Resolves a catalog name or model spec and downloads the model artifact into the local model directory, returning the resolved local path. Honors `STRATA_MODELS_DIR` for the destination and `STRATA_HF_ENDPOINT` and `STRATA_HF_TOKEN` (or `HF_TOKEN`) for gated HuggingFace repositories. Downloading requires network access and a build with the local execution feature; cloud-only builds return `inference.unsupported_operation`.
To see the complete help for this command, run:
strata inference models pull --helphelp(db.ai.models.pull)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| model | string | yes | Model spec or catalog name. |
Returns
PullModelOutput
- dataPullModelOutput
- typestring
Errors
Recover by code. Retry policy and commit outcome come from the shipped error registry.
| Code | Retry | Commit outcome |
|---|---|---|
| failed_precondition.engine.runtime_closed | never | not_started |
| not_found.engine.branch | never | not_applicable |
| inference.download_disabled | after_state_change | not_applicable |
| inference.missing_model | after_state_change | not_applicable |
| inference.download_failed | same_request | not_applicable |
| inference.download_verification_failed | after_state_change | not_applicable |
| inference.io_failure | unknown | not_applicable |
| inference.registry_corrupt | never | not_applicable |