[PR #1774] [MERGED] fix: pull either original model or from model on create #41914

Closed
opened 2026-04-24 21:43:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1774
Author: @BruceMacD
Created: 1/3/2024
Status: Merged
Merged: 1/4/2024
Merged by: @BruceMacD

Base: mainHead: brucemacd/create-ggml-pull


📝 Commits (2)

  • 2ae9e2c pull either original model or from model on create
  • bb3e32b Update images.go

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 server/images.go (+8 -2)

📄 Description

I created a bug here when accounting for the "pull parent model" case when pull gguf models on deprecated ggml models. In the case of a Modelfile like this:

FROM orca-mini
SYSTEM "you are mario"

where orca-mini is a ggml library model there is no ParentModel and the model itself should be pulled.

This handles both:

FROM orca-mini
SYSTEM "you are mario"

and a child:

FROM mario
PARAMETER temperature 0

correctly and will pull the root model for both cases.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1774 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 1/3/2024 **Status:** ✅ Merged **Merged:** 1/4/2024 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/create-ggml-pull` --- ### 📝 Commits (2) - [`2ae9e2c`](https://github.com/ollama/ollama/commit/2ae9e2c2df08db4f654513839a2ae34fe61646f3) pull either original model or from model on create - [`bb3e32b`](https://github.com/ollama/ollama/commit/bb3e32bf2998d6aeaa32c575c02554471e67a238) Update images.go ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+8 -2) </details> ### 📄 Description I created a bug here when accounting for the "pull parent model" case when pull gguf models on deprecated ggml models. In the case of a Modelfile like this: ``` FROM orca-mini SYSTEM "you are mario" ``` where orca-mini is a `ggml` library model there is no `ParentModel` and the model itself should be pulled. This handles both: ``` FROM orca-mini SYSTEM "you are mario" ``` and a child: ``` FROM mario PARAMETER temperature 0 ``` correctly and will pull the root model for both cases. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 21:43:51 -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#41914