[GH-ISSUE #11961] When deploying gpt-oss on an offline device, the error "Error: invalid file magic" appears. #33701

Closed
opened 2026-04-22 16:37:17 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ganganngannn on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11961

What is the issue?

Download gpt-oss on a device with internet access, run
ollama show
to generate the Modelfile content, transfer the downloaded model file to the offline device, modify the model file name and path, and then run
ollama create gpt-oss-20b -f Modelfile
An error message appears:
"Error: invalid file magic"

Other models do not experience this issue.

Relevant log output

E:\ollama\GPT-oss-20b>ollama create gpt-oss-20b -f Modelfile
gathering model components
copying file sha256:b112e727c6f18875636c56a779790a590d705aec9e1c0eb5a97d51fc2a778583 100%
parsing GGUF
Error: invalid file magic

OS

windows

GPU

A4000

CPU

i9 13900k

Ollama version

0.5.7

Originally created by @ganganngannn on GitHub (Aug 19, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11961 ### What is the issue? Download gpt-oss on a device with internet access, run `ollama show` to generate the Modelfile content, transfer the downloaded model file to the offline device, modify the model file name and path, and then run `ollama create gpt-oss-20b -f Modelfile` An error message appears: "Error: invalid file magic" Other models do not experience this issue. ### Relevant log output ```shell E:\ollama\GPT-oss-20b>ollama create gpt-oss-20b -f Modelfile gathering model components copying file sha256:b112e727c6f18875636c56a779790a590d705aec9e1c0eb5a97d51fc2a778583 100% parsing GGUF Error: invalid file magic ``` ### OS windows ### GPU A4000 ### CPU i9 13900k ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-22 16:37:17 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 19, 2025):

gpt-oss is not supported by version 0.5.7 of ollama.

<!-- gh-comment-id:3199958436 --> @rick-github commented on GitHub (Aug 19, 2025): gpt-oss is not supported by version 0.5.7 of ollama.
Author
Owner

@jmorganca commented on GitHub (Aug 19, 2025):

Thanks @rick-github. @ganganngannn indeed make sure to upgrade to v0.11 😊

<!-- gh-comment-id:3201430026 --> @jmorganca commented on GitHub (Aug 19, 2025): Thanks @rick-github. @ganganngannn indeed make sure to upgrade to v0.11 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33701