[GH-ISSUE #625] ollama cp followed by ollama push requires re-pushing layers #62316

Closed
opened 2026-05-03 08:10:38 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @jmorganca on GitHub (Sep 27, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/625

To reproduce:

ollama cp llama2 <username>/llama2
ollama push <username>/llama2
Originally created by @jmorganca on GitHub (Sep 27, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/625 To reproduce: ``` ollama cp llama2 <username>/llama2 ollama push <username>/llama2 ```
GiteaMirror added the bug label 2026-05-03 08:10:38 -05:00
Author
Owner

@technovangelist commented on GitHub (Dec 4, 2023):

so there are two possible ways to look at this. If i cp llama2 and try to push that, I have to repush the full model from scratch. But I have previously pushed mattw/shambler. I did a ollama cp mattw/shambler mattw/testcpmodelshambler and pushed that and i didn't have to repush the layers.

I seem to remember this was by design. Or is it?

<!-- gh-comment-id:1839370596 --> @technovangelist commented on GitHub (Dec 4, 2023): so there are two possible ways to look at this. If i cp llama2 and try to push that, I have to repush the full model from scratch. But I have previously pushed mattw/shambler. I did a `ollama cp mattw/shambler mattw/testcpmodelshambler` and pushed that and i didn't have to repush the layers. I seem to remember this was by design. Or is it?
Author
Owner

@mxyng commented on GitHub (Jan 16, 2024):

This is by design. copying a model does not inherit it in the same way as creating a model with FROM. If that's the desired behaviour, it should be considered an enhancement

<!-- gh-comment-id:1894606114 --> @mxyng commented on GitHub (Jan 16, 2024): This is by design. copying a model does not inherit it in the same way as creating a model with `FROM`. If that's the desired behaviour, it should be considered an enhancement
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62316