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
Add information on model tagging to import.md
.
#4109
base: main
Are you sure you want to change the base?
Conversation
Add information on model tagging.
Clean up grammar and duplicate words.
If your model has different versions you can optionally tag them, without a tag, it will be `latest`: | ||
|
||
``` | ||
ollama push <your username>/example[:tag] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an OK example? It's based on Docker's push reference. Alternatively, the brackets can be removed.
ollama push <your username>/example[:tag] | |
ollama push <your username>/example:tag |
docs/import.md
Outdated
@@ -144,6 +144,16 @@ ollama push <your username>/example | |||
|
|||
After publishing, your model will be available at `https://ollama.com/<your username>/example`. | |||
|
|||
### Tagging models | |||
|
|||
If your model has different versions you can optionally tag them, without a tag it will be `latest`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest is a mutable tag, and not good practice. We should advocate tagging explicitly, not using latest
if possible.
Modern container repositories does not support mutable tag because of security.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it would probably be better to remove the optionally part. Given latest
is mutable it will be overwritten if you don't specify a tag. I will see if I can't come up with some better wording to get that across. 👍
I added a section to the import documentation on model tagging and cleaned up the quantization reference section a smidge.