[GH-ISSUE #7251] debug modelfile on create #30367

Closed
opened 2026-04-22 09:56:23 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @belfie13 on GitHub (Oct 18, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7251

Originally assigned to: @pdevine on GitHub.

i get

Error: command must be one of "from", "license...

when creating via model file i generated from some text eg:

ollama create test -f test.modelfile

i have to cut out the code and paste it line by line back into the modelfile to find where the issue is.

in the error message, could you add a line number where the issue was found when attempting to create a model from file

Originally created by @belfie13 on GitHub (Oct 18, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7251 Originally assigned to: @pdevine on GitHub. i get Error: command must be one of "from", "license... when creating via model file i generated from some text eg: ollama create test -f test.modelfile i have to cut out the code and paste it line by line back into the modelfile to find where the issue is. in the error message, could you add a line number where the issue was found when attempting to create a model from file
GiteaMirror added the feature request label 2026-04-22 09:56:23 -05:00
Author
Owner

@gfunsAi commented on GitHub (Oct 18, 2024):

can you show content of test.modelfile ?

<!-- gh-comment-id:2421951414 --> @gfunsAi commented on GitHub (Oct 18, 2024): can you show content of test.modelfile ?
Author
Owner

@belfie13 commented on GitHub (Nov 7, 2024):

#7326 solves this when it gets closed. I have found that the /save function produces the same error, i'll open another issue.

<!-- gh-comment-id:2461806315 --> @belfie13 commented on GitHub (Nov 7, 2024): #7326 solves this when it gets closed. I have found that the `/save` function produces the same error, i'll open another issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30367