[PR #3458] [CLOSED] fix model needLoad always be true #37033

Closed
opened 2026-04-22 21:42:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3458
Author: @mofanke
Created: 4/2/2024
Status: Closed

Base: mainHead: fix-model-load-issue


📝 Commits (1)

  • 01b6681 fix needLoad always be true

📊 Changes

2 files changed (+7 additions, -7 deletions)

View changed files

📝 llm/server.go (+2 -2)
📝 server/routes.go (+5 -5)

📄 Description

image
loaded.Options.Runner.NumGPU was change to 33 or other value by
func New(model string, adapters, projectors []string, opts *api.Options)

so !reflect.DeepEqual(loaded.Options.Runner, opts.Runner) will always be true, because opts.Runner.NumGPU which default to -1


🔄 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/3458 **Author:** [@mofanke](https://github.com/mofanke) **Created:** 4/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-model-load-issue` --- ### 📝 Commits (1) - [`01b6681`](https://github.com/ollama/ollama/commit/01b668160be355db8dd28a72a0012cf5302ebfc9) fix needLoad always be true ### 📊 Changes **2 files changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+2 -2) 📝 `server/routes.go` (+5 -5) </details> ### 📄 Description ![image](https://github.com/ollama/ollama/assets/54242816/d82726b0-9988-42f1-bf1f-3b97b476b504) loaded.Options.Runner.NumGPU was change to 33 or other value by `` func New(model string, adapters, projectors []string, opts *api.Options) `` so `!reflect.DeepEqual(loaded.Options.Runner, opts.Runner)` will always be true, because` opts.Runner.NumGPU` which default to -1 --- <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-22 21:42:58 -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#37033