[GH-ISSUE #336] model names should be case insensitive #62185

Closed
opened 2026-05-03 07:47:56 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @jmorganca on GitHub (Aug 11, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/336

Originally assigned to: @bmizerany on GitHub.

ollama pull wizard-math:13b-q3_k_m

should pull the same image as

ollama pull wizard-math:13b-q3_K_M
Originally created by @jmorganca on GitHub (Aug 11, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/336 Originally assigned to: @bmizerany on GitHub. ``` ollama pull wizard-math:13b-q3_k_m ``` should pull the same image as ``` ollama pull wizard-math:13b-q3_K_M ```
GiteaMirror added the feature request label 2026-05-03 07:47:56 -05:00
Author
Owner

@neuralcoral commented on GitHub (Aug 12, 2023):

To clarify, do we want this to work towards push's as well? I for see a possible issue where one user ollama push model:abc and another user ollama push model:Abc. If we are then ollama pull model:aBc which model should be pull down?

I am still diving into the code, so sorry if I missed something obvious here.

<!-- gh-comment-id:1675713242 --> @neuralcoral commented on GitHub (Aug 12, 2023): To clarify, do we want this to work towards push's as well? I for see a possible issue where one user `ollama push model:abc` and another user `ollama push model:Abc`. If we are then `ollama pull model:aBc` which model should be pull down? I am still diving into the code, so sorry if I missed something obvious here.
Author
Owner

@jmorganca commented on GitHub (Aug 12, 2023):

@neuralcoral yes that's right!

<!-- gh-comment-id:1675764259 --> @jmorganca commented on GitHub (Aug 12, 2023): @neuralcoral yes that's right!
Author
Owner

@neuralcoral commented on GitHub (Aug 12, 2023):

Great! Do we plan to then rename existing models to be type insensitive in the future? Any current models will need to be renamed to their case insensitive versions or might have collisions with an upload.

<!-- gh-comment-id:1675969834 --> @neuralcoral commented on GitHub (Aug 12, 2023): Great! Do we plan to then rename existing models to be type insensitive in the future? Any current models will need to be renamed to their case insensitive versions or might have collisions with an upload.
Author
Owner

@verokarhu commented on GitHub (Aug 25, 2023):

Wouldn't it be better to follow the OCI distribution spec and keep tags case sensitive? If Ollama behaves differently from e.g. docker push then it's a bit surprising for the user.

Throughout this document, as a tag MUST be at most 128 characters in length and MUST match the following regular expression:

[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}

<!-- gh-comment-id:1693191740 --> @verokarhu commented on GitHub (Aug 25, 2023): Wouldn't it be better to follow the [OCI distribution spec](https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pulling-manifests) and keep tags case sensitive? If Ollama behaves differently from e.g. docker push then it's a bit surprising for the user. > Throughout this document, <reference> as a tag MUST be at most 128 characters in length and MUST match the following regular expression: > > [a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}
Author
Owner

@aashish2057 commented on GitHub (Nov 2, 2023):

should this issue be closed now? Seems like the intended behavior based on the spec is for the model name to be case sensitive?

<!-- gh-comment-id:1791402734 --> @aashish2057 commented on GitHub (Nov 2, 2023): should this issue be closed now? Seems like the intended behavior based on the spec is for the model name to be case sensitive?
Author
Owner

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

Does ollama support loading a Pytorch model? I have trained a model and it's output is a .pt file. How do I use it with ollama? I tried doing the following and it doesn't seem to work.

[root@ trained_models]# ollama run model.pt
pulling manifest

Error: pull model manifest: file does not exist

<!-- gh-comment-id:1946515668 --> @PriyaranjanMarathe commented on GitHub (Feb 15, 2024): Does ollama support loading a Pytorch model? I have trained a model and it's output is a .pt file. How do I use it with ollama? I tried doing the following and it doesn't seem to work. [root@ trained_models]# ollama run model.pt pulling manifest Error: pull model manifest: file does not exist
Author
Owner

@mtel24 commented on GitHub (Apr 7, 2024):

@jmorganca Should this issue be closed ?

<!-- gh-comment-id:2041636080 --> @mtel24 commented on GitHub (Apr 7, 2024): @jmorganca Should this issue be closed ?
Author
Owner

@SuperRicky14 commented on GitHub (Jun 22, 2024):

I think it should just pop up with a "Did you mean: <model 1>, <model 2>, <...>" when you mess up the caseing, that way you don't accidentally pull/push to the wrong repository but it tells you what models you might've meant.

<!-- gh-comment-id:2183729882 --> @SuperRicky14 commented on GitHub (Jun 22, 2024): I think it should just pop up with a "Did you mean: <model 1>, <model 2>, <...>" when you mess up the caseing, that way you don't accidentally pull/push to the wrong repository but it tells you what models you might've meant.
Author
Owner

@jmorganca commented on GitHub (Dec 23, 2024):

This should be possible now!

<!-- gh-comment-id:2558699180 --> @jmorganca commented on GitHub (Dec 23, 2024): This should be possible now!
Author
Owner

@PriyaranjanMarathe commented on GitHub (Dec 23, 2024):

Thanks Jeff! Appreciate it.

Thanks,
Priyaranjan (Ranjan) Marathe.
+1 980 335 6511
@.*** @.***>

On Sun, Dec 22, 2024 at 5:52 PM Jeffrey Morgan @.***>
wrote:

Closed #336 https://github.com/ollama/ollama/issues/336 as completed.


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/336#event-15742802138, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A4WBGIJGCYYVKIL6NDB6FP32G5NF5AVCNFSM6AAAAABUCFCZZCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVG42DEOBQGIYTGOA
.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:2558770842 --> @PriyaranjanMarathe commented on GitHub (Dec 23, 2024): Thanks Jeff! Appreciate it. Thanks, Priyaranjan (Ranjan) Marathe. +1 980 335 6511 ***@***.*** ***@***.***> On Sun, Dec 22, 2024 at 5:52 PM Jeffrey Morgan ***@***.***> wrote: > Closed #336 <https://github.com/ollama/ollama/issues/336> as completed. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/336#event-15742802138>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/A4WBGIJGCYYVKIL6NDB6FP32G5NF5AVCNFSM6AAAAABUCFCZZCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVG42DEOBQGIYTGOA> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62185