[PR #8319] Add Safetensor Conversion for Granite Models #17957

Open
opened 2026-04-16 06:20:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8319
Author: @alex-jw-brooks
Created: 1/6/2025
Status: 🔄 Open

Base: mainHead: granite_safetensors


📝 Commits (3)

  • 04338c5 Add safetensor conversion for IBM granite
  • 867f92c Add test for IBM granite safetensor conversion
  • 05028b0 Embed llama struct for granite conversion

📊 Changes

4 files changed (+500 additions, -0 deletions)

View changed files

📝 convert/convert.go (+2 -0)
convert/convert_granite.go (+101 -0)
📝 convert/convert_test.go (+1 -0)
convert/testdata/granite-3.0-2b-base.json (+396 -0)

📄 Description

This PR fixes the unrecognized architecture for converting Granite Models (GraniteForCausalLM) for use from safetensors.


🔄 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/8319 **Author:** [@alex-jw-brooks](https://github.com/alex-jw-brooks) **Created:** 1/6/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `granite_safetensors` --- ### 📝 Commits (3) - [`04338c5`](https://github.com/ollama/ollama/commit/04338c52f719c418bfe582c7f47bd6332772903d) Add safetensor conversion for IBM granite - [`867f92c`](https://github.com/ollama/ollama/commit/867f92cccaee47cc29ce6f71111daf4189e61de3) Add test for IBM granite safetensor conversion - [`05028b0`](https://github.com/ollama/ollama/commit/05028b0334ac96b4231074da465687872360a6ef) Embed llama struct for granite conversion ### 📊 Changes **4 files changed** (+500 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert.go` (+2 -0) ➕ `convert/convert_granite.go` (+101 -0) 📝 `convert/convert_test.go` (+1 -0) ➕ `convert/testdata/granite-3.0-2b-base.json` (+396 -0) </details> ### 📄 Description This PR fixes the unrecognized architecture for converting Granite Models (`GraniteForCausalLM`) for use from safetensors. --- <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-16 06:20:30 -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#17957