[PR #5365] [MERGED] convert gemma2 #58456

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5365
Author: @mxyng
Created: 6/28/2024
Status: Merged
Merged: 8/21/2024
Merged by: @mxyng

Base: mainHead: mxyng/convert-gemma2


📝 Commits (1)

📊 Changes

13 files changed (+132 additions, -46 deletions)

View changed files

📝 convert/convert.go (+8 -3)
📝 convert/convert_bert.go (+4 -5)
📝 convert/convert_gemma.go (+6 -8)
convert/convert_gemma2.go (+44 -0)
📝 convert/convert_llama.go (+8 -11)
📝 convert/convert_mixtral.go (+7 -2)
📝 convert/convert_phi3.go (+5 -6)
📝 convert/convert_test.go (+1 -0)
📝 convert/reader.go (+6 -6)
📝 convert/reader_safetensors.go (+3 -2)
📝 convert/reader_torch.go (+3 -2)
convert/testdata/gemma-2-9b-it.json (+6 -0)
📝 convert/tokenizer_spm.go (+31 -1)

📄 Description

resolves #6426


🔄 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/5365 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/28/2024 **Status:** ✅ Merged **Merged:** 8/21/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/convert-gemma2` --- ### 📝 Commits (1) - [`3546bbd`](https://github.com/ollama/ollama/commit/3546bbd08c52df73eb6523b06b13f1b2dfeaa5fb) convert gemma2 ### 📊 Changes **13 files changed** (+132 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert.go` (+8 -3) 📝 `convert/convert_bert.go` (+4 -5) 📝 `convert/convert_gemma.go` (+6 -8) ➕ `convert/convert_gemma2.go` (+44 -0) 📝 `convert/convert_llama.go` (+8 -11) 📝 `convert/convert_mixtral.go` (+7 -2) 📝 `convert/convert_phi3.go` (+5 -6) 📝 `convert/convert_test.go` (+1 -0) 📝 `convert/reader.go` (+6 -6) 📝 `convert/reader_safetensors.go` (+3 -2) 📝 `convert/reader_torch.go` (+3 -2) ➕ `convert/testdata/gemma-2-9b-it.json` (+6 -0) 📝 `convert/tokenizer_spm.go` (+31 -1) </details> ### 📄 Description resolves #6426 --- <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 13:20:43 -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#58456