[GH-ISSUE #2888] Fail to load dynamic library - unicode character path #1764

Closed
opened 2026-04-12 11:46:50 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @08183080 on GitHub (Mar 3, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2888

Originally assigned to: @dhiltgen on GitHub.

Error: Unable to load dynamic library: Unable to load dynamic server library: �Ҳ���ָ����ģ�顣

Originally created by @08183080 on GitHub (Mar 3, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2888 Originally assigned to: @dhiltgen on GitHub. Error: Unable to load dynamic library: Unable to load dynamic server library: �Ҳ���ָ����ģ�顣
GiteaMirror added the bugwindows labels 2026-04-12 11:46:50 -05:00
Author
Owner

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

你可以试一试在Windows上运行wsl,在Ubuntu中下载运行

<!-- gh-comment-id:1976366825 --> @xiangbianpangde commented on GitHub (Mar 4, 2024): 你可以试一试在Windows上运行wsl,在Ubuntu中下载运行
Author
Owner

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

行,我可以试一试。不过我的电脑明明刚重置却还是有问题就很不理解。别人的电脑ok没有问题

<!-- gh-comment-id:1976374879 --> @08183080 commented on GitHub (Mar 4, 2024): 行,我可以试一试。不过我的电脑明明刚重置却还是有问题就很不理解。别人的电脑ok没有问题
Author
Owner

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

llama_model_load: error loading model: error loading model vocabulary: cannot find tokenizer merges in model file

llama_load_model_from_file: failed to load model

<!-- gh-comment-id:1976767064 --> @hubblebubblepig commented on GitHub (Mar 4, 2024): llama_model_load: error loading model: error loading model vocabulary: cannot find tokenizer merges in model file llama_load_model_from_file: failed to load model
Author
Owner

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

---Original---
From: @.>
Date: Mon, Mar 4, 2024 22:55 PM
To: @.
>;
Cc: @.@.>;
Subject: Re: [ollama/ollama] Fail to load dynamic library (Issue #2888)

llama_model_load: error loading model: error loading model vocabulary: cannot find tokenizer merges in model file

llama_load_model_from_file: failed to load model


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

<!-- gh-comment-id:1976776296 --> @xiangbianpangde commented on GitHub (Mar 4, 2024): ---Original--- From: ***@***.***&gt; Date: Mon, Mar 4, 2024 22:55 PM To: ***@***.***&gt;; Cc: ***@***.******@***.***&gt;; Subject: Re: [ollama/ollama] Fail to load dynamic library (Issue #2888) llama_model_load: error loading model: error loading model vocabulary: cannot find tokenizer merges in model file llama_load_model_from_file: failed to load model — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***&gt;
Author
Owner

@dhiltgen commented on GitHub (Mar 6, 2024):

This is likely a bug related to unicode characters not being handled correctly. As a workaround until we get this fixed, set OLLAMA_MODELS to a path that doesn't contain unicode characters. https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored

<!-- gh-comment-id:1982007909 --> @dhiltgen commented on GitHub (Mar 6, 2024): This is likely a bug related to unicode characters not being handled correctly. As a workaround until we get this fixed, set OLLAMA_MODELS to a path that doesn't contain unicode characters. https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored
Author
Owner

@xiangbianpangde commented on GitHub (Mar 7, 2024):

I tried to change the environment variables to exclude Unicode characters, but still encountered failure in loading the dynamic library.

<!-- gh-comment-id:1982335617 --> @xiangbianpangde commented on GitHub (Mar 7, 2024): I tried to change the environment variables to exclude Unicode characters, but still encountered failure in loading the dynamic library.
Author
Owner

@dhiltgen commented on GitHub (Mar 7, 2024):

@xiangbianpangde can you share the server log showing the failure when there weren't unicode characters?

<!-- gh-comment-id:1984066898 --> @dhiltgen commented on GitHub (Mar 7, 2024): @xiangbianpangde can you share the server log showing the failure when there weren't unicode characters?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1764