Run a model
Context Managers
The context manager will automatically manage and clean up running models on your behalf.Manual Management
It’s also possible to manually manage the models run state.Manual lifecycle
Download models
Usedownload() to fetch and cache models before serving.
The model identifier controls where the SDK pulls from.
Common prefixes include
- HuggingFace:
hf:// - Ollama:
ollama:// - OCI (any oci image repository):
oci:// - ModelScope:
modelscope:// - File:
file://

