[GH-ISSUE #1154] Cannot push models FROM library models #26345

Closed
opened 2026-04-22 02:34:31 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @BruceMacD on GitHub (Nov 16, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1154

Originally assigned to: @mxyng on GitHub.

Attempting to push models with FROM <library-model> fails with scope errors.

Steps to reproduce:

  1. Create a Modelfile from a library model.
FROM llama2
SYSTEM """
You are Mario from super mario bros, acting as an assistant.
"""

ollama create <namespace>/mario -f path/to/modelfile

  1. Push the model
    ollama push <namespace>/mario

retrieving manifest
Error: max retries exceeded

Root cause:
Scopes on the tokens are not being set correctly for library models. It fails on the ollama.ai side with "Scope parameter set incorrectly" due to the scope being set to :llama2:pull.

This is the fix:
bd86eab426

Once I make this change, I then see 405 errors on the first push (subsequent push of the same model succeeds after the inital 405). Have not had time to track down the cause of these 405s yet.

Originally created by @BruceMacD on GitHub (Nov 16, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1154 Originally assigned to: @mxyng on GitHub. Attempting to push models with `FROM <library-model>` fails with scope errors. **Steps to reproduce:** 1. Create a Modelfile from a library model. ``` FROM llama2 SYSTEM """ You are Mario from super mario bros, acting as an assistant. """ ``` `ollama create <namespace>/mario -f path/to/modelfile` 2. Push the model `ollama push <namespace>/mario` 3. ``` retrieving manifest Error: max retries exceeded ``` **Root cause:** Scopes on the tokens are not being set correctly for library models. It fails on the ollama.ai side with "Scope parameter set incorrectly" due to the scope being set to `:llama2:pull`. This is the fix: https://github.com/jmorganca/ollama/commit/bd86eab4261ca545c6ad6384da0bbcdcb4270e61 Once I make this change, I then see 405 errors on the first push (subsequent push of the same model succeeds after the inital 405). Have not had time to track down the cause of these 405s yet.
GiteaMirror added the bug label 2026-04-22 02:34:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26345