[GH-ISSUE #12852] How to save the model to safetensor format? #70576

Closed
opened 2026-05-04 22:03:38 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @liamsun2019 on GitHub (Oct 30, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12852

Hi, a new comer here. Anyone that knows how to save the model to safetensor format? For instance:

ollama pull gemma3:1b
ollama show gemma3:1b --modelfile > gemma3-translator-1b.modelfile
ollama create gemma3-translator:1b -f gemma3-translator-1b.modelfile

Is there any approach to save such model to huggingface safetensor? Big thanks for tips.

Originally created by @liamsun2019 on GitHub (Oct 30, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12852 Hi, a new comer here. Anyone that knows how to save the model to safetensor format? For instance: ollama pull gemma3:1b ollama show gemma3:1b --modelfile > gemma3-translator-1b.modelfile ollama create gemma3-translator:1b -f gemma3-translator-1b.modelfile Is there any approach to save such model to huggingface safetensor? Big thanks for tips.
Author
Owner

@rick-github commented on GitHub (Oct 30, 2025):

ollama does not support exporting models in safetensor format.

<!-- gh-comment-id:3467004149 --> @rick-github commented on GitHub (Oct 30, 2025): ollama does not support exporting models in safetensor format.
Author
Owner

@pdevine commented on GitHub (Nov 2, 2025):

I'm going to close this as not planned.

<!-- gh-comment-id:3476978358 --> @pdevine commented on GitHub (Nov 2, 2025): I'm going to close this as not planned.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#70576