[GH-ISSUE #2796] error loading model #1689

Closed
opened 2026-04-12 11:39:47 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @hotsmile on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2796

i just pull gemma, use the ollama to run it ,but i got the error
ollama pull gemma
pulling manifest
pulling 456402914e83... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 5.2 GB
pulling 097a36493f71... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 8.4 KB
pulling 109037bec39c... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 136 B
pulling 22a838ceb7fb... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 84 B
pulling a443857c4317... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 483 B
verifying sha256 digest
writing manifest
removing any unused layers
success
(myenv) [root@rocky9 ~]# ollama list
NAME ID SIZE MODIFIED
gemma:latest 430ed3535049 5.2 GB 15 hours ago
mistral:latest 61e88e884507 4.1 GB 4 weeks ago
(myenv) [root@rocky9 ~]# ollama run gemma:latest
Error: error loading model /usr/share/ollama/.ollama/models/blobs/sha256:456402914e838a953e0cf80caa6adbe75383d9e63584a964f504a7bbb8f7a

ollama -v
ollama version is 0.1.20
(myenv) [root@rocky9 ~]#

Originally created by @hotsmile on GitHub (Feb 28, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2796 i just pull gemma, use the ollama to run it ,but i got the error ollama pull gemma pulling manifest pulling 456402914e83... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 5.2 GB pulling 097a36493f71... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 8.4 KB pulling 109037bec39c... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 136 B pulling 22a838ceb7fb... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 84 B pulling a443857c4317... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 483 B verifying sha256 digest writing manifest removing any unused layers success (myenv) [root@rocky9 ~]# ollama list NAME ID SIZE MODIFIED gemma:latest 430ed3535049 5.2 GB 15 hours ago mistral:latest 61e88e884507 4.1 GB 4 weeks ago (myenv) [root@rocky9 ~]# ollama run gemma:latest Error: error loading model /usr/share/ollama/.ollama/models/blobs/sha256:456402914e838a953e0cf80caa6adbe75383d9e63584a964f504a7bbb8f7a ollama -v ollama version is 0.1.20 (myenv) [root@rocky9 ~]#
Author
Owner

@skwolvie commented on GitHub (Feb 28, 2024):

Check the sha256 file name used while loading, and the actual file name. For some reason, the loader is taking a fixed content length of the actual file name. Maybe that is leading to this error.

Any possible fix?

Please mark labels- bug, sdk

<!-- gh-comment-id:1968092012 --> @skwolvie commented on GitHub (Feb 28, 2024): Check the sha256 file name used while loading, and the actual file name. For some reason, the loader is taking a fixed content length of the actual file name. Maybe that is leading to this error. Any possible fix? Please mark labels- bug, sdk
Author
Owner

@hubblebubblepig commented on GitHub (Feb 29, 2024):

ollama server.log-->
"llama_model_load: error loading model: error loading model vocabulary: cannot find tokenizer merges in model file"
"Failed to load dynamic library"

<!-- gh-comment-id:1970467691 --> @hubblebubblepig commented on GitHub (Feb 29, 2024): ollama server.log--> "llama_model_load: error loading model: error loading model vocabulary: cannot find tokenizer merges in model file" "Failed to load dynamic library"
Author
Owner

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

You'll need to upgrade to a newer version of ollama to make gemma work correctly. Gemma requires at least 0.1.26.

<!-- gh-comment-id:1972291576 --> @pdevine commented on GitHub (Mar 1, 2024): You'll need to upgrade to a newer version of ollama to make gemma work correctly. Gemma requires at least 0.1.26.
Author
Owner

@markelzhang commented on GitHub (Mar 1, 2024):

I've encountered this error too, but after restarting my computer, it works.

<!-- gh-comment-id:1973380958 --> @markelzhang commented on GitHub (Mar 1, 2024): I've encountered this error too, but after restarting my computer, it works.
Author
Owner

@Kota1609 commented on GitHub (Mar 5, 2024):

im using mac, i just uninstalled and installed ollama app again and it worked.

<!-- gh-comment-id:1979578721 --> @Kota1609 commented on GitHub (Mar 5, 2024): im using mac, i just uninstalled and installed ollama app again and it worked.
Author
Owner

@akshaypatwa commented on GitHub (Mar 8, 2024):

I had this same issue, it worked after updating ollama to newer version.

<!-- gh-comment-id:1985077596 --> @akshaypatwa commented on GitHub (Mar 8, 2024): I had this same issue, it worked after updating ollama to newer version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1689