[PR #5524] [CLOSED] allow converting adapters from npz #37690

Closed
opened 2026-04-22 22:22:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5524
Author: @pdevine
Created: 7/7/2024
Status: Closed

Base: mainHead: pdevine/ggla


📝 Commits (10+)

📊 Changes

33 files changed (+2907 additions, -1498 deletions)

View changed files

📝 convert/convert.go (+86 -152)
convert/convert_adapter.go (+56 -0)
convert/convert_gemma.go (+103 -0)
convert/convert_llama.go (+176 -0)
convert/convert_mixtral.go (+89 -0)
📝 convert/convert_test.go (+185 -53)
convert/gemma.go (+0 -102)
convert/llama.go (+0 -159)
convert/mistral.go (+0 -79)
convert/mixtral.go (+0 -87)
convert/reader.go (+74 -0)
convert/reader_npz.go (+140 -0)
convert/reader_safetensors.go (+140 -0)
convert/reader_torch.go (+46 -0)
convert/safetensors.go (+0 -309)
convert/testdata/Meta-Llama-3-8B-Instruct.json (+313 -0)
convert/testdata/Mistral-7B-Instruct-v0.2.json (+313 -0)
convert/testdata/Mixtral-8x7B-Instruct-v0.1.json (+348 -0)
convert/testdata/adapters.npz (+0 -0)
convert/testdata/gemma-2b-it.json (+188 -0)

...and 13 more files

📄 Description

No description provided


🔄 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/5524 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 7/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pdevine/ggla` --- ### 📝 Commits (10+) - [`a4978a9`](https://github.com/ollama/ollama/commit/a4978a94b51a7aec2eeff4a29a340d02ef3b843e) update convert test to check result data - [`9f32c63`](https://github.com/ollama/ollama/commit/9f32c634aeaec3c43680f76a842a6b8a0a6e611b) refactor convert - [`2e055e3`](https://github.com/ollama/ollama/commit/2e055e3af8daf2c44e98475e70549cfad3c428b7) ggla checkin - [`5d4a331`](https://github.com/ollama/ollama/commit/5d4a331de3b8ec554b5f0a21a30b00600f946e80) more unittests - [`a451611`](https://github.com/ollama/ollama/commit/a4516117614467325bf5753ec2e0e2c44dc24d32) add adapter conversion for modelfiles - [`a305800`](https://github.com/ollama/ollama/commit/a3058002c44ec2dcff026294fbd5bb70dda2354b) feed the linter - [`8ba3f38`](https://github.com/ollama/ollama/commit/8ba3f38f821027140cc1c86a9b13a5a7dd7c3625) feed the linter again + llama.cpp patches - [`6367b74`](https://github.com/ollama/ollama/commit/6367b7449efefe22ba6391f03d2d7a9282241068) try feeding the linter again - [`c37ab3b`](https://github.com/ollama/ollama/commit/c37ab3b9f281f27ebf32aea5c8da12a488573a3a) punch the linter in the face - [`e32de89`](https://github.com/ollama/ollama/commit/e32de893ec670f657be38753645686ff01f4502f) punch the linter again ### 📊 Changes **33 files changed** (+2907 additions, -1498 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert.go` (+86 -152) ➕ `convert/convert_adapter.go` (+56 -0) ➕ `convert/convert_gemma.go` (+103 -0) ➕ `convert/convert_llama.go` (+176 -0) ➕ `convert/convert_mixtral.go` (+89 -0) 📝 `convert/convert_test.go` (+185 -53) ➖ `convert/gemma.go` (+0 -102) ➖ `convert/llama.go` (+0 -159) ➖ `convert/mistral.go` (+0 -79) ➖ `convert/mixtral.go` (+0 -87) ➕ `convert/reader.go` (+74 -0) ➕ `convert/reader_npz.go` (+140 -0) ➕ `convert/reader_safetensors.go` (+140 -0) ➕ `convert/reader_torch.go` (+46 -0) ➖ `convert/safetensors.go` (+0 -309) ➕ `convert/testdata/Meta-Llama-3-8B-Instruct.json` (+313 -0) ➕ `convert/testdata/Mistral-7B-Instruct-v0.2.json` (+313 -0) ➕ `convert/testdata/Mixtral-8x7B-Instruct-v0.1.json` (+348 -0) ➕ `convert/testdata/adapters.npz` (+0 -0) ➕ `convert/testdata/gemma-2b-it.json` (+188 -0) _...and 13 more files_ </details> ### 📄 Description _No description provided_ --- <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 22:22:17 -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#37690