Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pull/push models from/to OCI registries #2745

Closed
raffaelespazzoli opened this issue Feb 25, 2024 · 4 comments
Closed

Ability to pull/push models from/to OCI registries #2745

raffaelespazzoli opened this issue Feb 25, 2024 · 4 comments

Comments

@raffaelespazzoli
Copy link

if we wish ollama to be adopted in traditional enterprises, it should be possible to pull/push models from/to private model registries.
I am not sure if there is a standard for model registries, but the OCI container registry spec[1] can be adapted to manage any type of content and OCI registries are readily available in enterprises.
It seems to make sense then to enhance ollama to be able to pull and push from/to OCI registries.
I'd like to know what the feedback from the community is on this idea. If positive, I'd be happy to try to contribute this feature.

[1] OCI distribution specification to be precise: https://github.com/opencontainers/distribution-spec

@mofanke
Copy link
Contributor

mofanke commented Feb 26, 2024

It will work for private OCI container registry, I've tried it, and it does work.

@raffaelespazzoli
Copy link
Author

how do you do pull from a registry? I didn't find the option.

@pdevine
Copy link
Contributor

pdevine commented Mar 1, 2024

You can use Ollama with an OCI registry right now as long as you don't need auth.

To pull from a different registry you can use: ollama pull <host>/<namespace>/<repo>:<tag>

I'm going to go ahead and close the issue, but feel free to keep commenting.

@pdevine pdevine closed this as completed Mar 1, 2024
@raffaelespazzoli
Copy link
Author

ok, wonderful. I didn't find that in the docs. Should we work on supporting authenticated repos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants