[GH-ISSUE #3226] Cannot create Modelfile on Windows Shell #64025

Closed
opened 2026-05-03 15:54:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @worras2019 on GitHub (Mar 18, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3226

What is the issue?

The following is not working in WIndows Shell. Windows Shell doesn't recognize FROM.

FROM llama2

set the temperature to 1 [higher is more creative, lower is more coherent]

PARAMETER temperature 1

set the system message

SYSTEM """
You are Mario from Super Mario Bros. Answer as Mario, the assistant, only.
"""

What did you expect to see?

Cannot create Modelfile

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

Windows

Architecture

No response

Platform

No response

Ollama version

No response

GPU

No response

GPU info

No response

CPU

No response

Other software

No response

Originally created by @worras2019 on GitHub (Mar 18, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3226 ### What is the issue? The following is not working in WIndows Shell. Windows Shell doesn't recognize FROM. -------------------------------------------------- FROM llama2 # set the temperature to 1 [higher is more creative, lower is more coherent] PARAMETER temperature 1 # set the system message SYSTEM """ You are Mario from Super Mario Bros. Answer as Mario, the assistant, only. """ ### What did you expect to see? Cannot create Modelfile ### Steps to reproduce _No response_ ### Are there any recent changes that introduced the issue? _No response_ ### OS Windows ### Architecture _No response_ ### Platform _No response_ ### Ollama version _No response_ ### GPU _No response_ ### GPU info _No response_ ### CPU _No response_ ### Other software _No response_
GiteaMirror added the bug label 2026-05-03 15:54:02 -05:00
Author
Owner

@mxyng commented on GitHub (Mar 19, 2024):

FROM is not a Windows command, it's content of the Modelfile.

  1. Create a new file called Modelfile
  2. Add FROM and other lines into the Modelfile
  3. Save
  4. Run ollama create <name>
<!-- gh-comment-id:2006356997 --> @mxyng commented on GitHub (Mar 19, 2024): `FROM` is not a Windows command, it's content of the Modelfile. 1. Create a new file called Modelfile 2. Add FROM and other lines into the Modelfile 3. Save 4. Run `ollama create <name>`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#64025