[PR #13010] [MERGED] bugfix: don't include both consolidated.safetensors and model-*.safetensors #39914

Closed
opened 2026-04-23 00:56:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13010
Author: @pdevine
Created: 11/8/2025
Status: Merged
Merged: 11/8/2025
Merged by: @pdevine

Base: mainHead: pdevine/parser-dup


📝 Commits (2)

  • 12447e7 bugfix: don't include both consolidated.safetensors and model-*.safetensors
  • 09f2886 fixup

📊 Changes

2 files changed (+275 additions, -1 deletions)

View changed files

📝 parser/parser.go (+4 -1)
📝 parser/parser_test.go (+271 -0)

📄 Description

This change stops consolidated.safetensors and model-*.safetensors files both being included when calling ollama create. It also adds a bunch of unit tests for which files get included.


🔄 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/13010 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 11/8/2025 **Status:** ✅ Merged **Merged:** 11/8/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/parser-dup` --- ### 📝 Commits (2) - [`12447e7`](https://github.com/ollama/ollama/commit/12447e724a88e54050a4e7477495fcf53925b217) bugfix: don't include both consolidated.safetensors and model-*.safetensors - [`09f2886`](https://github.com/ollama/ollama/commit/09f288624c2a3e940348f6286b32d00bc7af3325) fixup ### 📊 Changes **2 files changed** (+275 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `parser/parser.go` (+4 -1) 📝 `parser/parser_test.go` (+271 -0) </details> ### 📄 Description This change stops consolidated.safetensors and model-*.safetensors files both being included when calling `ollama create`. It also adds a bunch of unit tests for which files get included. --- <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-23 00:56:03 -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#39914