[GH-ISSUE #8585] Error: neither ‘from’ or ‘files’ was specified when creating a model #52060

Closed
opened 2026-04-28 21:46:05 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @latent-variable on GitHub (Jan 25, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8585

What is the issue?

Hello,

I’m encountering an issue when trying to create a model using ollama create on my Mac. The command fails with the following error message:

transferring model data
Error: neither 'from' or 'files' was specified

This issue occurs despite ensuring the path to the .gguf file is correct. The problem did not happen with earlier versions of Ollama.

Steps to Reproduce:

  1. Run the following command:
ollama create FuseO1 -f Modelfile
  1. The error appears immediately after transferring model data.

Environment Details:
• Ollama Version:
• CLI: 0.5.7
• Client: 0.2.1 (Warning shown for version mismatch)
• OS: macOS
• File Contents:
Here is the content of my Modelfile:

FROM ./FuseO1-DeepSeekR1-QwQ-SkyT1-32B-Preview.i1-Q4_K_M.gguf

TEMPLATE """<|begin▁of▁sentence|>{system_prompt}<|User|>{prompt}<|Assistant|><|end▁of▁sentence|><|Assistant|>
"""
PARAMETER stop "<|begin▁of▁sentence|>"
PARAMETER stop "<|end▁of▁sentence|>"
PARAMETER stop "<|User|>"
PARAMETER stop "<|Assistant|>"

Troubleshooting Attempts:

1.	Verified the file path (both relative and absolute paths).
2.	Ensured there are no empty spaces in filenames.
3.	Tested with multiple .gguf files and filenames.
4.	Successfully imported the same files when running Ollama in a Docker container, so the issue seems specific to the macOS version.

Expected Behavior:

The ollama create command should successfully create a model as it did previously.

Additional Context:

•	The issue began after updating to the current version.
•	The version mismatch warning for the client version (0.2.1) might be related, but I’m unsure if that’s the root cause.

Let me know if you need more details to troubleshoot!

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.5.7

Originally created by @latent-variable on GitHub (Jan 25, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8585 ### What is the issue? Hello, I’m encountering an issue when trying to create a model using ollama create on my Mac. The command fails with the following error message: transferring model data Error: neither 'from' or 'files' was specified This issue occurs despite ensuring the path to the .gguf file is correct. The problem did not happen with earlier versions of Ollama. Steps to Reproduce: 1. Run the following command: ``` ollama create FuseO1 -f Modelfile ``` 2. The error appears immediately after transferring model data. Environment Details: • Ollama Version: • CLI: 0.5.7 • Client: 0.2.1 (Warning shown for version mismatch) • OS: macOS • File Contents: Here is the content of my Modelfile: ``` FROM ./FuseO1-DeepSeekR1-QwQ-SkyT1-32B-Preview.i1-Q4_K_M.gguf TEMPLATE """<|begin▁of▁sentence|>{system_prompt}<|User|>{prompt}<|Assistant|><|end▁of▁sentence|><|Assistant|> """ PARAMETER stop "<|begin▁of▁sentence|>" PARAMETER stop "<|end▁of▁sentence|>" PARAMETER stop "<|User|>" PARAMETER stop "<|Assistant|>" ``` Troubleshooting Attempts: 1. Verified the file path (both relative and absolute paths). 2. Ensured there are no empty spaces in filenames. 3. Tested with multiple .gguf files and filenames. 4. Successfully imported the same files when running Ollama in a Docker container, so the issue seems specific to the macOS version. Expected Behavior: The ollama create command should successfully create a model as it did previously. Additional Context: • The issue began after updating to the current version. • The version mismatch warning for the client version (0.2.1) might be related, but I’m unsure if that’s the root cause. Let me know if you need more details to troubleshoot! ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-28 21:46:05 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 25, 2025):

The create functionality had some surgery in 0.5.5. Error: neither 'from' or 'files' was specified most likely means that your server and client are different versions. What's the output of ollama -v?

<!-- gh-comment-id:2614123058 --> @rick-github commented on GitHub (Jan 25, 2025): The create functionality had some surgery in 0.5.5. `Error: neither 'from' or 'files' was specified` most likely means that your server and client are different versions. What's the output of `ollama -v`?
Author
Owner

@latent-variable commented on GitHub (Jan 25, 2025):

% ollama -v
ollama version is 0.5.7
Warning: client version is 0.2.1

@rick-github yes I seem to have different version. I try uninstalling and reinstalling ollama but I still have the same issue.

<!-- gh-comment-id:2614123996 --> @latent-variable commented on GitHub (Jan 25, 2025): ``` % ollama -v ollama version is 0.5.7 Warning: client version is 0.2.1 ``` @rick-github yes I seem to have different version. I try uninstalling and reinstalling ollama but I still have the same issue.
Author
Owner

@rick-github commented on GitHub (Jan 25, 2025):

You have an ancient ollama client in your path. What does which ollama show?

<!-- gh-comment-id:2614124526 --> @rick-github commented on GitHub (Jan 25, 2025): You have an ancient ollama client in your path. What does `which ollama` show?
Author
Owner

@latent-variable commented on GitHub (Jan 25, 2025):

% which ollama 
/opt/homebrew/bin/ollama

How do I go about updating my client ?

<!-- gh-comment-id:2614124949 --> @latent-variable commented on GitHub (Jan 25, 2025): ``` % which ollama /opt/homebrew/bin/ollama ``` How do I go about updating my client ?
Author
Owner

@rick-github commented on GitHub (Jan 25, 2025):

Rename the old client and let your shell find the new one.

% sudo mv /opt/homebrew/bin/ollama /opt/homebrew/bin/ollama:0.2.1
% which ollama
<!-- gh-comment-id:2614125528 --> @rick-github commented on GitHub (Jan 25, 2025): Rename the old client and let your shell find the new one. ```sh % sudo mv /opt/homebrew/bin/ollama /opt/homebrew/bin/ollama:0.2.1 % which ollama ```
Author
Owner

@latent-variable commented on GitHub (Jan 25, 2025):

@rick-github after renaming the old client, I am now able to import gguf files. Thanks for the help!

<!-- gh-comment-id:2614130303 --> @latent-variable commented on GitHub (Jan 25, 2025): @rick-github after renaming the old client, I am now able to import gguf files. Thanks for the help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52060