[PR #3121] [CLOSED] simplify parsing safetensor file #36943

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3121
Author: @mxyng
Created: 3/13/2024
Status: Closed

Base: mainHead: mxyng/simple-safetensor


📝 Commits (2)

📊 Changes

13 files changed (+910 additions, -932 deletions)

View changed files

📝 .golangci.yaml (+0 -10)
📝 cmd/cmd.go (+4 -1)
📝 cmd/interactive.go (+6 -2)
📝 convert/convert.go (+45 -166)
convert/safetensors.go (+283 -0)
📝 go.mod (+1 -2)
📝 go.sum (+0 -2)
📝 llm/ggla.go (+25 -23)
📝 llm/ggml.go (+82 -3)
📝 llm/gguf.go (+445 -718)
📝 readline/history.go (+3 -1)
📝 server/images.go (+4 -2)
📝 server/routes_test.go (+12 -2)

📄 Description

remove the indirection in parsing the safetensor head json


🔄 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/3121 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 3/13/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mxyng/simple-safetensor` --- ### 📝 Commits (2) - [`e132c80`](https://github.com/ollama/ollama/commit/e132c804e2efc03744959b90da35c20a23495951) update convert - [`fbe1fef`](https://github.com/ollama/ollama/commit/fbe1fef4bf9cb7532901d464fc2deaf0ac32fe14) simplify parsing safetensor file ### 📊 Changes **13 files changed** (+910 additions, -932 deletions) <details> <summary>View changed files</summary> 📝 `.golangci.yaml` (+0 -10) 📝 `cmd/cmd.go` (+4 -1) 📝 `cmd/interactive.go` (+6 -2) 📝 `convert/convert.go` (+45 -166) ➕ `convert/safetensors.go` (+283 -0) 📝 `go.mod` (+1 -2) 📝 `go.sum` (+0 -2) 📝 `llm/ggla.go` (+25 -23) 📝 `llm/ggml.go` (+82 -3) 📝 `llm/gguf.go` (+445 -718) 📝 `readline/history.go` (+3 -1) 📝 `server/images.go` (+4 -2) 📝 `server/routes_test.go` (+12 -2) </details> ### 📄 Description remove the indirection in parsing the safetensor head json --- <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:35:26 -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#36943