[GH-ISSUE #2860] How to copy the Modelstore to a different Ollama PC? #63783

Closed
opened 2026-05-03 14:56:39 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @sthufnagl on GitHub (Mar 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2860

Hi,

I have the luxury situation that I own two PC with Ollama. Because it takes a long time to load large models from the internet...it would be nice to have the opportunity to copy the Modelstore from one Ollama PC to another Ollama PC.
The next challenge is...the target PC is Windows and the source PC is Ubuntu.
Even a solution from Ubuntu to Ubuntu would be great for me (a reason more to get rid of Windows)

Thanks in advance for a possible solution.

Steve

Originally created by @sthufnagl on GitHub (Mar 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2860 Hi, I have the luxury situation that I own two PC with Ollama. Because it takes a long time to load large models from the internet...it would be nice to have the opportunity to copy the Modelstore from one Ollama PC to another Ollama PC. The next challenge is...the target PC is Windows and the source PC is Ubuntu. Even a solution from Ubuntu to Ubuntu would be great for me (a reason more to get rid of Windows) Thanks in advance for a possible solution. Steve
Author
Owner

@zimeg commented on GitHub (Mar 3, 2024):

Hey @sthufnagl 👋 I think the quickest way to do this is SFTP for transferring the models over the network or maybe scp between Linux machines?

A more creative solution using network attached storage might be possible too, to only keep one copy of these files!

<!-- gh-comment-id:1975395252 --> @zimeg commented on GitHub (Mar 3, 2024): Hey @sthufnagl 👋 I think the quickest way to do this is [SFTP for transferring the models over the network](https://superuser.com/a/414809) or maybe [`scp`](https://linuxize.com/post/how-to-use-scp-command-to-securely-transfer-files/#scp-command-syntax) between Linux machines? A more creative solution using network attached storage might be possible too, to only keep one copy of these files!
Author
Owner

@pdevine commented on GitHub (Mar 4, 2024):

Here's an FAQ which describes where the models are stored. You can copy them there to the appropriate location on another system (even cross platform). Keep in mind that if you're going from Linux to Windows the filenames of the blobs may have to be changed due to Windows not supporting a : character in the filename.

I'm going to go ahead and close out the issue, but feel free to feel commenting.

<!-- gh-comment-id:1976011228 --> @pdevine commented on GitHub (Mar 4, 2024): Here's an [FAQ](https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored) which describes where the models are stored. You can copy them there to the appropriate location on another system (even cross platform). Keep in mind that if you're going from Linux to Windows the filenames of the blobs may have to be changed due to Windows not supporting a `:` character in the filename. I'm going to go ahead and close out the issue, but feel free to feel commenting.
Author
Owner

@sthufnagl commented on GitHub (Mar 4, 2024):

Thanks a lot for your answers!
:-)
@zimeg:
Great idea, I wounder if I could use a NFS/SMB (your NAS?) Share for the modelstore and mount this to the other PC. But maybe loading models over the network is slow? With a 2.5 Mbits Network loading a 7b Model? Hm?

@pdevine:
Especially the hint with the file name under windows is very important for me. I recognized some copy problems with the Blobs but I thought it was the filesize.

<!-- gh-comment-id:1976036647 --> @sthufnagl commented on GitHub (Mar 4, 2024): Thanks a lot for your answers! :-) **@zimeg:** Great idea, I wounder if I could use a NFS/SMB (your NAS?) Share for the modelstore and mount this to the other PC. But maybe loading models over the network is slow? With a 2.5 Mbits Network loading a 7b Model? Hm? **@pdevine:** Especially the hint with the file name under windows is very important for me. I recognized some copy problems with the Blobs but I thought it was the filesize.
Author
Owner

@boedyirh commented on GitHub (Jun 10, 2024):

Similar situation here,
I have two computers with different model each. Is it possible for me to copy only one model from computer A, and copy it to computer B.

<!-- gh-comment-id:2157168739 --> @boedyirh commented on GitHub (Jun 10, 2024): Similar situation here, I have two computers with different model each. Is it possible for me to copy only one model from computer A, and copy it to computer B.
Author
Owner

@streetlife commented on GitHub (Sep 9, 2024):

If both machines are on the same network, you can use SyncThing to keep them syncronized. Just map the c:\Users%Username%\.ollama\models on both machines.

<!-- gh-comment-id:2337449365 --> @streetlife commented on GitHub (Sep 9, 2024): If both machines are on the same network, you can use SyncThing to keep them syncronized. Just map the c:\Users\%Username%\\.ollama\models on both machines.
Author
Owner

@pweibert commented on GitHub (Dec 26, 2024):

On my machine A (Ubuntu24.04) ollama models are located in /var/snap/ollama/common/models. I copied the models folder from my machine B (Ubuntu 22.04) using an external drive. After restarting ollama service sudo systemctl restart snap.ollama.listener.service I can see all the models.

<!-- gh-comment-id:2563041422 --> @pweibert commented on GitHub (Dec 26, 2024): On my machine A (Ubuntu24.04) ollama models are located in `/var/snap/ollama/common/models`. I copied the models folder from my machine B (Ubuntu 22.04) using an external drive. After restarting ollama service `sudo systemctl restart snap.ollama.listener.service` I can see all the models.
Author
Owner

@amiralizade2 commented on GitHub (Feb 19, 2025):

Copy Models Dire To another system.
macOS: ~/.ollama/models
Linux: /usr/share/ollama/.ollama/models
Windows: C:\Users%username%.ollama\models

It's work.

<!-- gh-comment-id:2668303952 --> @amiralizade2 commented on GitHub (Feb 19, 2025): Copy Models Dire To another system. macOS: ~/.ollama/models Linux: /usr/share/ollama/.ollama/models Windows: C:\Users\%username%\.ollama\models It's work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63783