[GH-ISSUE #1069] FROM: command not found" #26287

Closed
opened 2026-04-22 02:27:26 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @seyi33 on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1069

i installed ollama via WSL, but i keep getting "FROM: command not found", when i try to create a model file using a local model and this is the command i have been using "FROM /mistral-7b-instruct-v0.1.Q4_K_M.gguf".

Originally created by @seyi33 on GitHub (Nov 10, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1069 i installed ollama via WSL, but i keep getting "FROM: command not found", when i try to create a model file using a local model and this is the command i have been using "FROM /mistral-7b-instruct-v0.1.Q4_K_M.gguf".
Author
Owner

@mxyng commented on GitHub (Nov 10, 2023):

It seems you're running FROM from the command line interface. FROM is an instruction/command in the Modelfile so you'll need to create a file called Modelfile and add that line as the first time of the file. Then, you can create a model with ollama create <name> where <name> is the name you want the new model to be called. I hope this helps.

<!-- gh-comment-id:1805948467 --> @mxyng commented on GitHub (Nov 10, 2023): It seems you're running `FROM` from the command line interface. `FROM` is an instruction/command in the Modelfile so you'll need to create a file called Modelfile and add that line as the first time of the file. Then, you can create a model with `ollama create <name>` where `<name>` is the name you want the new model to be called. I hope this helps.
Author
Owner

@seyi33 commented on GitHub (Nov 11, 2023):

It seems you're running FROM from the command line interface. FROM is an instruction/command in the Modelfile so you'll need to create a file called Modelfile and add that line as the first time of the file. Then, you can create a model with ollama create <name> where <name> is the name you want the new model to be called. I hope this helps.

Yes, it did, Thanks . i saved it as a file in wsl and the rest was smooth

<!-- gh-comment-id:1806674988 --> @seyi33 commented on GitHub (Nov 11, 2023): > It seems you're running `FROM` from the command line interface. `FROM` is an instruction/command in the Modelfile so you'll need to create a file called Modelfile and add that line as the first time of the file. Then, you can create a model with `ollama create <name>` where `<name>` is the name you want the new model to be called. I hope this helps. Yes, it did, Thanks . i saved it as a file in wsl and the rest was smooth
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26287