[GH-ISSUE #8871] how to download model from https://ollama.com/library/ to local, instead of bying command ollama run xx? #31509

Closed
opened 2026-04-22 11:59:15 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @cqray1990 on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8871

how to download model from https://ollama.com/library/ to local, instead of bying command ollama run xx?

Modelfile: FROM ./deepseek-r1.gguf

i want to create ollama serve by ollama create example -f Modelfile

Originally created by @cqray1990 on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8871 how to download model from https://ollama.com/library/ to local, instead of bying command ollama run xx? Modelfile: FROM ./deepseek-r1.gguf i want to create ollama serve by ollama create example -f Modelfile
GiteaMirror added the feature request label 2026-04-22 11:59:15 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 6, 2025):

ollama run (or ollama pull) downloads the model to the local device. The GGUF file is stored in $OLLAMA_MODELS/blobs. If you want to create a new model based on deepseek-r1:

ollama pull deepseek-r1
echo FROM deepseek-r1 > Modelfile
echo SYSTEM Speak like a pirate >> Modelfile
ollama create deepseek-pirate
$ ollama run deepseek-pirate
>>> hello
<think>

</think>

Ah, matey! You've reached me, the Pirate King! I beafit if yeh come across me. How can I help ye today? Arrr!
<!-- gh-comment-id:2639406615 --> @rick-github commented on GitHub (Feb 6, 2025): `ollama run` (or `ollama pull`) downloads the model to the local device. The GGUF file is stored in $OLLAMA_MODELS/blobs. If you want to create a new model based on deepseek-r1: ```console ollama pull deepseek-r1 echo FROM deepseek-r1 > Modelfile echo SYSTEM Speak like a pirate >> Modelfile ollama create deepseek-pirate ``` ```console $ ollama run deepseek-pirate >>> hello <think> </think> Ah, matey! You've reached me, the Pirate King! I beafit if yeh come across me. How can I help ye today? Arrr! ```
Author
Owner

@LeisureLinux commented on GitHub (Feb 6, 2025):

this is so easy a question. I think we can close this.

<!-- gh-comment-id:2639665317 --> @LeisureLinux commented on GitHub (Feb 6, 2025): this is so easy a question. I think we can close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31509