[GH-ISSUE #887] invalid version #78105

Closed
opened 2026-05-08 21:59:07 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @UICJohn on GitHub (Oct 24, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/887

Hi guys
I am tring to build model from Modelfile by following this guid.It works fine until I am tring to create from Modelfile using this command:
ollama create 7b-32k-instruct -f ./Modelfile
Here is my Modelfile:

FROM ./q4_0.bin
TEMPLATE "[INST] {{ .Prompt }} [/INST]"

It returns:
⠋ creating model layer Error: invalid version

Originally created by @UICJohn on GitHub (Oct 24, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/887 Hi guys I am tring to build model from Modelfile by following this [guid](https://github.com/jmorganca/ollama/blob/main/docs/import.md).It works fine until I am tring to create from Modelfile using this command: `ollama create 7b-32k-instruct -f ./Modelfile` Here is my Modelfile: ``` FROM ./q4_0.bin TEMPLATE "[INST] {{ .Prompt }} [/INST]" ``` It returns: `⠋ creating model layer Error: invalid version`
Author
Owner

@jmorganca commented on GitHub (Oct 24, 2023):

Hi @UICJohn , may I ask which model you're looking to import?

<!-- gh-comment-id:1776328792 --> @jmorganca commented on GitHub (Oct 24, 2023): Hi @UICJohn , may I ask which model you're looking to import?
Author
Owner

@UICJohn commented on GitHub (Oct 24, 2023):

@jmorganca I was tring to import togethercomputer/Llama-2-7B-32K-Instruct which is ft with llama2 7B and support longer context length.

<!-- gh-comment-id:1776424245 --> @UICJohn commented on GitHub (Oct 24, 2023): @jmorganca I was tring to import [togethercomputer/Llama-2-7B-32K-Instruct](https://huggingface.co/togethercomputer/Llama-2-7B-32K-Instruct) which is ft with llama2 7B and support longer context length.
Author
Owner

@olafgeibig commented on GitHub (Oct 24, 2023):

Duplicate of https://github.com/jmorganca/ollama/issues/877
Has been fixed in 0.1.4

<!-- gh-comment-id:1776775897 --> @olafgeibig commented on GitHub (Oct 24, 2023): Duplicate of https://github.com/jmorganca/ollama/issues/877 Has been fixed in 0.1.4
Author
Owner

@BruceMacD commented on GitHub (Oct 24, 2023):

Thanks for reporting this, as noted this is fixed in our new release (as of yesterday).

<!-- gh-comment-id:1777338836 --> @BruceMacD commented on GitHub (Oct 24, 2023): Thanks for reporting this, as noted this is fixed in our new release (as of yesterday).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#78105