[GH-ISSUE #15800] importing safetensors model zsh: killed #56580

Open
opened 2026-04-29 11:03:32 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @eduard-sukharev on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15800

What is the issue?

I'm trying to build a model with Modelfile from mlx-community/gemma-4-e4b-4bit quantized mlx model.
I have pulled the model files with hf download, the Modelfile is basically the same as ollama's gemma4:e2b:

FROM /Volumes/EXT_SSD/mlx-community_gemma-4-e4b-4bit

TEMPLATE {{ .Prompt }}
RENDERER gemma4
PARSER gemma4
PARAMETER top_p 0.95
PARAMETER temperature 1
PARAMETER top_k 64
LICENSE """                                Apache License

I'm doing this to try to fit the e4b model onto a 8Gb Mac Mini, which I actually run creating on:

GOMAXPROCS=1 ollama create gemma4:e4b-4bit -f gemma4_e4b_4bit.Modelfile --experimental

and after a couple of seconds thinking it just quits:

importing safetensors model ⠧ zsh: killed     GOMAXPROCS=1 ollama create gemma4:e4b-4bit -f gemma4_e4b_4bit.Modelfile --experimental

Is it running out of memory or is there some internal error?

Relevant log output


OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.21.2

Originally created by @eduard-sukharev on GitHub (Apr 24, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15800 ### What is the issue? I'm trying to build a model with Modelfile from `mlx-community/gemma-4-e4b-4bit` quantized mlx model. I have pulled the model files with `hf download`, the Modelfile is basically the same as ollama's gemma4:e2b: ``` FROM /Volumes/EXT_SSD/mlx-community_gemma-4-e4b-4bit TEMPLATE {{ .Prompt }} RENDERER gemma4 PARSER gemma4 PARAMETER top_p 0.95 PARAMETER temperature 1 PARAMETER top_k 64 LICENSE """ Apache License ``` I'm doing this to try to fit the e4b model onto a 8Gb Mac Mini, which I actually run creating on: ``` GOMAXPROCS=1 ollama create gemma4:e4b-4bit -f gemma4_e4b_4bit.Modelfile --experimental ``` and after a couple of seconds thinking it just quits: ``` importing safetensors model ⠧ zsh: killed GOMAXPROCS=1 ollama create gemma4:e4b-4bit -f gemma4_e4b_4bit.Modelfile --experimental ``` Is it running out of memory or is there some internal error? ### Relevant log output ```shell ``` ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.21.2
GiteaMirror added the bug label 2026-04-29 11:03:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56580