ollama - 💡(How to fix) Fix Crash: Importing Gemma4 from Safetensor [4 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15298Fetched 2026-04-08 02:44:30
View on GitHub
Comments
4
Participants
2
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
commented ×4closed ×1labeled ×1

Error Message

time=2026-04-03T12:44:32.374-04:00 level=ERROR source=server.go:201 msg="ollama exited" err="signal: killed"

Code Example

GOMAXPROCS=1 ollama create gemma4:26b-a4b-heretic -f gemma4-26b.modelfile -q q8_0
gathering model components
copying file sha256:501e322eb3735099d8d32cbc8cb8f606e40001180efb27fe6f8cca0cf28e3bfd 100%
...
converting model
time=2026-04-03T12:44:32.374-04:00 level=ERROR source=server.go:201 msg="ollama exited" err="signal: killed"
RAW_BUFFERClick to expand / collapse

What is the issue?

When I tried to import Gemma4 from safetensor, it just crashes during converting model.

Relevant log output

GOMAXPROCS=1 ollama create gemma4:26b-a4b-heretic -f gemma4-26b.modelfile -q q8_0
gathering model components
copying file sha256:501e322eb3735099d8d32cbc8cb8f606e40001180efb27fe6f8cca0cf28e3bfd 100%
...
converting model
time=2026-04-03T12:44:32.374-04:00 level=ERROR source=server.go:201 msg="ollama exited" err="signal: killed"

OS

No response

GPU

Apple

CPU

Apple

Ollama version

0.20.0

extent analysis

TL;DR

The issue may be resolved by checking the compatibility of the Gemma4 model with the current version of ollama and safetensor, and potentially updating or modifying the model conversion process.

Guidance

  • Verify that the Gemma4 model is compatible with the current version of ollama (0.20.0) and safetensor.
  • Check the model file (gemma4-26b.modelfile) for any corruption or issues that may be causing the conversion to fail.
  • Consider updating ollama or safetensor to a newer version, if available, to ensure compatibility with the Gemma4 model.
  • Review the error message "signal: killed" in the log output, which may indicate a resource issue or other system limitation that is causing the conversion process to be terminated.

Notes

The lack of information about the OS and other system details may limit the ability to provide a more specific solution. Additionally, the Apple GPU and CPU may have specific requirements or limitations that need to be considered when working with ollama and safetensor.

Recommendation

Apply workaround: The current information suggests that a workaround, such as modifying the model conversion process or updating ollama or safetensor, may be necessary to resolve the issue, rather than a straightforward upgrade to a fixed version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING