ollama - 💡(How to fix) Fix ollama load <model> — Dedicated CLI command to preload a model into memory [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#16084Fetched 2026-05-11 03:13:18
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

ollama load llama3.2                    # Load and keep according to default keep_alive
ollama load llama3.2 --keepalive -1     # Never unload
ollama load llama3.2 -k 30m             # Keep alive for 30 minutes
ollama load llama3.2 --gpu              # Force GPU layers if wanted(And even the opposite with the CPU)

---

ollama load llama3.2 mistral:7b qwen2.5
RAW_BUFFERClick to expand / collapse

Feature request: ollama load <model>

Description

It would be very useful to have a dedicated CLI command to load a model into RAM/VRAM without starting an interactive session.

Currently, the main ways to preload a model are:

  • ollama run <model> "" (hacky)
  • Sending an empty request via the API (/api/generate or /api/chat)

A clean CLI command like ollama load llama3.2 (or ollama load llama3.2 --keepalive -1) would be much more intuitive, especially for server + front-end setups.

Use cases

  • Preloading one or more models at server startup
  • Scripts and systemd services
  • Applications that use Ollama via API but want a simple way to warm up models from the command line
  • Making the CLI more complete and consistent (pull, run, push, list, psload)

Proposed behavior

ollama load llama3.2                    # Load and keep according to default keep_alive
ollama load llama3.2 --keepalive -1     # Never unload
ollama load llama3.2 -k 30m             # Keep alive for 30 minutes
ollama load llama3.2 --gpu              # Force GPU layers if wanted(And even the opposite with the CPU)

It could also support multiple models:

ollama load llama3.2 mistral:7b qwen2.5

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix ollama load <model> — Dedicated CLI command to preload a model into memory [1 participants]