[GH-ISSUE #10282] ollama create error #68809

Closed
opened 2026-05-04 15:18:25 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Nyoko74 on GitHub (Apr 15, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10282

ollama create bge-large-zh-v15:latest -f ./Modelfile

I used this ollama command to create a model, but it failed.
Error information:

gathering model components 
copying file …… 100% 
……
Error: unknown type

How should I solve this problem?

Originally created by @Nyoko74 on GitHub (Apr 15, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10282 `ollama create bge-large-zh-v15:latest -f ./Modelfile` I used this ollama command to create a model, but it failed. Error information: ``` gathering model components copying file …… 100% …… Error: unknown type ``` How should I solve this problem?
Author
Owner

@rick-github commented on GitHub (Apr 15, 2025):

Contents of Modelfile?

<!-- gh-comment-id:2804160502 --> @rick-github commented on GitHub (Apr 15, 2025): Contents of Modelfile?
Author
Owner

@Nyoko74 commented on GitHub (Apr 17, 2025):

Contents of Modelfile?
@rick-github only one line, which is the model path.
FROM /home/bge-large-zh-v15

<!-- gh-comment-id:2811600096 --> @Nyoko74 commented on GitHub (Apr 17, 2025): > Contents of Modelfile? @rick-github only one line, which is the model path. `FROM /home/bge-large-zh-v15`
Author
Owner

@rick-github commented on GitHub (Apr 17, 2025):

ollama only imports safetensor and gguf files, BAAI/bge-large-zh-v1.5 is a pytorch bin file. If you want to import this model, you will need to use llama.cpp to convert to to a gguf and import that with 'FROM'.

<!-- gh-comment-id:2813510217 --> @rick-github commented on GitHub (Apr 17, 2025): ollama only [imports](https://github.com/ollama/ollama/blob/main/docs/import.md) safetensor and gguf files, BAAI/bge-large-zh-v1.5 is a pytorch bin file. If you want to import this model, you will need to use [llama.cpp](https://github.com/ggml-org/llama.cpp/blob/master/convert_hf_to_gguf.py) to convert to to a gguf and import that with 'FROM'.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68809