[PR #8408] [MERGED] convert: qwen2 from safetensors #12701

Closed
opened 2026-04-13 00:07:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8408
Author: @BruceMacD
Created: 1/14/2025
Status: Merged
Merged: 1/14/2025
Merged by: @BruceMacD

Base: mainHead: brucemacd/convert-qwen


📝 Commits (2)

📊 Changes

5 files changed (+397 additions, -0 deletions)

View changed files

📝 convert/convert.go (+2 -0)
convert/convert_qwen2.go (+78 -0)
📝 convert/convert_test.go (+1 -0)
convert/testdata/Qwen2.5-0.5B-Instruct.json (+314 -0)
📝 convert/tokenizer.go (+2 -0)

📄 Description

Add native support for converting Qwen2 family models (including Qwen2.5) from safetensors to gguf format so we can run it.

Here is an example of the output model:
https://ollama.com/brxce/qwen2

How to run:

./ollama create my-qwen2 -f path/to/Modelfile

🔄 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/8408 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 1/14/2025 **Status:** ✅ Merged **Merged:** 1/14/2025 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/convert-qwen` --- ### 📝 Commits (2) - [`c406ebf`](https://github.com/ollama/ollama/commit/c406ebfc3d073d39b4665d0c73f3cda8ee1e0d82) convert: qwen2 from safetensors - [`79d33d1`](https://github.com/ollama/ollama/commit/79d33d16cc17bc4544ed49f09e9d15f6e174c056) add test ### 📊 Changes **5 files changed** (+397 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert.go` (+2 -0) ➕ `convert/convert_qwen2.go` (+78 -0) 📝 `convert/convert_test.go` (+1 -0) ➕ `convert/testdata/Qwen2.5-0.5B-Instruct.json` (+314 -0) 📝 `convert/tokenizer.go` (+2 -0) </details> ### 📄 Description Add native support for converting Qwen2 family models (including Qwen2.5) from safetensors to gguf format so we can run it. Here is an example of the output model: https://ollama.com/brxce/qwen2 How to run: ``` ./ollama create my-qwen2 -f path/to/Modelfile ``` --- <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-13 00:07:25 -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#12701