Synopsis
Description
Thepull command downloads a model from a registry (default: Ollama’s public registry) to your local machine. Once pulled, the model can be used with ollama run and other commands.
Models are downloaded in chunks with progress indication. If the download is interrupted, it will resume from where it left off.
Arguments
Name of the model to pull. Can include:
- Model name:
llama3.2 - Model with tag:
llama3.2:8b - Model from custom registry:
registry.example.com/mymodel:latest
Options
Allow pulling from registries without HTTPS
Model Naming
Models follow this naming convention:- REGISTRY: Optional, defaults to
registry.ollama.ai - NAMESPACE: Optional, defaults to
library - MODEL: Required model name
- TAG: Optional, defaults to
latest
Examples
Examples
Pull Default Tag
Pull a model with the defaultlatest tag:
Pull Specific Tag
Pull a specific model variant:Pull from Custom Registry
Pull from a private or custom registry:Pull Without TLS
Pull from a local or insecure registry:Progress Output
During download, you’ll see progress for each layer:- Layer digest (first 12 characters)
- Percentage complete
- Bytes downloaded / total size
Storage Location
Models are stored in:- Linux/macOS:
~/.ollama/models - Windows:
%USERPROFILE%\.ollama\models - Custom: Set
OLLAMA_MODELSenvironment variable
Model Layers
Ollama models consist of multiple layers:- Manifest: Model metadata and configuration
- Model weights: Neural network parameters (largest layer)
- Template: Prompt formatting template
- Parameters: Model hyperparameters
- System message: Default system prompt
- License: Model license information
Resumable Downloads
If a download is interrupted (network issue, Ctrl+C, etc.), simply runollama pull again. The download will resume from where it left off without re-downloading completed layers.
Disk Space
Before pulling, ensure you have sufficient disk space:| Model Size | Approximate Disk Space |
|---|---|
| 1B params | ~1 GB |
| 3B params | ~2 GB |
| 7B params | ~4-5 GB |
| 13B params | ~8-9 GB |
| 34B params | ~20 GB |
| 70B params | ~40 GB |
Environment Variables
Ollama server address to send the pull request
Directory where pulled models will be stored
Exit Codes
0- Success, model pulled completely1- Error occurred (network issue, insufficient disk space, etc.)
Troubleshooting
Model Not Found
Insufficient Disk Space
Network Timeout
Registry Authentication
For private registries requiring authentication:Related Commands
ollama run- Run a pulled modelollama list- List all pulled modelsollama show- Show details about a pulled modelollama rm- Remove a pulled modelollama push- Push a model to a registry