[GH-ISSUE #2514] Support for safetensors #47982

Closed
opened 2026-04-28 06:17:56 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @gracehubai on GitHub (Feb 15, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2514

Do we already support inferencing safetensors?

Originally created by @gracehubai on GitHub (Feb 15, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2514 Do we already support inferencing safetensors?
Author
Owner

@easp commented on GitHub (Feb 15, 2024):

You need to convert them to gguf: https://github.com/jmorganca/ollama/blob/main/docs/import.md

<!-- gh-comment-id:1946429021 --> @easp commented on GitHub (Feb 15, 2024): You need to convert them to gguf: https://github.com/jmorganca/ollama/blob/main/docs/import.md
Author
Owner

@pdevine commented on GitHub (Feb 18, 2024):

As @easp mentioned, you can use the convert scripts to pull in a safetensors model. Going to close the issue.

<!-- gh-comment-id:1950981596 --> @pdevine commented on GitHub (Feb 18, 2024): As @easp mentioned, you can use the convert scripts to pull in a safetensors model. Going to close the issue.
Author
Owner

@gabrielcolab commented on GitHub (Feb 21, 2024):

I tried to convert, but:

python convert.py ../moondream/tinyllava/ --outtype f16 --outfile converted.bin
raise Exception("failed to guess 'n_ctx'. This model is unknown or unsupported.\n"
Exception: failed to guess 'n_ctx'. This model is unknown or unsupported.
Suggestion: provide 'config.json' of the model in the same directory containing model files.

<!-- gh-comment-id:1955932466 --> @gabrielcolab commented on GitHub (Feb 21, 2024): I tried to convert, but: python convert.py ../moondream/tinyllava/ --outtype f16 --outfile converted.bin raise Exception("failed to guess 'n_ctx'. This model is unknown or unsupported.\n" Exception: failed to guess 'n_ctx'. This model is unknown or unsupported. Suggestion: provide 'config.json' of the model in the same directory containing model files.
Author
Owner

@KaKi87 commented on GitHub (May 15, 2025):

Hi,
Native support would be nice.
Thanks

<!-- gh-comment-id:2885200696 --> @KaKi87 commented on GitHub (May 15, 2025): Hi, Native support would be nice. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47982