mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
[BUG] Ollama create method is only creating a single model based on the _from parameter, but not the derivate model like the cli
#263
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PouyaT on GitHub (Apr 16, 2025).
System & Packages:
ollama version is 0.6.5My Issue:
This outputs a single model, which is just the base model, and I need to run
ollama.create()twice to get the derivative modelMario.Output after one run:
Output after my second run:
Expected Outcome:
With a
Modelfile:This is not true with the cli, after running the cli command once I get both models as an output from
ollama list:ollama create Mario -f ./ModelfileOutput:
@mxyng commented on GitHub (May 6, 2025):
This appears to be a bug in the Ollama server. With
stream=False, which is the default for ollama-python but not the CLI or API,createreturns after pulling the parent model but before creating the new one.