[PR #1129] [CLOSED] fix: parse ggml model types #57172

Closed
opened 2026-04-29 11:45:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1129
Author: @BruceMacD
Created: 11/14/2023
Status: Closed

Base: mainHead: brucemacd/ggml_model_import


📝 Commits (1)

  • 5ac5af3 fix: parse ggml model types

📊 Changes

2 files changed (+32 additions, -27 deletions)

View changed files

📝 llm/ggml.go (+30 -20)
📝 llm/gguf.go (+2 -7)

📄 Description

I'm kind of surprised this didn't come up earlier, noticed this while importing a less common ggml model type. Model parsing was returning nil for uncommon types which results in a nil pointer dereference. Fix this by moving model parsing up a level and try to decode as a llama model in the default case.


🔄 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/1129 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 11/14/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `brucemacd/ggml_model_import` --- ### 📝 Commits (1) - [`5ac5af3`](https://github.com/ollama/ollama/commit/5ac5af3edc50a7e2aaf8e20630e0c5c0f4a1aefa) fix: parse ggml model types ### 📊 Changes **2 files changed** (+32 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `llm/ggml.go` (+30 -20) 📝 `llm/gguf.go` (+2 -7) </details> ### 📄 Description I'm kind of surprised this didn't come up earlier, noticed this while importing a less common ggml model type. Model parsing was returning `nil` for uncommon types which results in a nil pointer dereference. Fix this by moving model parsing up a level and try to decode as a llama model in the default case. --- <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-29 11:45:20 -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#57172