[PR #6063] [MERGED] convert: import support for command-r models from safetensors #43251

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6063
Author: @joshyan1
Created: 7/29/2024
Status: Merged
Merged: 1/16/2025
Merged by: @pdevine

Base: mainHead: jyan/convert-cmdr


📝 Commits (6)

📊 Changes

10 files changed (+503 additions, -0 deletions)

View changed files

📝 convert/convert.go (+2 -0)
convert/convert_commandr.go (+76 -0)
📝 convert/convert_test.go (+1 -0)
convert/testdata/c4ai-command-r-v01.json (+344 -0)
template/command-r.gotmpl (+67 -0)
template/command-r.json (+6 -0)
📝 template/index.json (+4 -0)
template/testdata/command-r.gotmpl/system-user-assistant-user (+1 -0)
template/testdata/command-r.gotmpl/user (+1 -0)
template/testdata/command-r.gotmpl/user-assistant-user (+1 -0)

📄 Description

working for
https://huggingface.co/CohereForAI/aya-23-8B
https://huggingface.co/CohereForAI/c4ai-command-r-v01


🔄 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/6063 **Author:** [@joshyan1](https://github.com/joshyan1) **Created:** 7/29/2024 **Status:** ✅ Merged **Merged:** 1/16/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `jyan/convert-cmdr` --- ### 📝 Commits (6) - [`069cc8d`](https://github.com/ollama/ollama/commit/069cc8d8badd120332ce12e2adc3e96992989dce) rebased - [`c8a4bc5`](https://github.com/ollama/ollama/commit/c8a4bc58bea72e470f3eef978d15c6f643ee3a94) linter - [`982db10`](https://github.com/ollama/ollama/commit/982db10f6e7e84b3e487fd1477a454216d5087c4) renaming - [`f0a0875`](https://github.com/ollama/ollama/commit/f0a0875af091a717b4ba02d9915d133b3ec80aca) remove merges - [`1b6df40`](https://github.com/ollama/ollama/commit/1b6df406a1e6f0f8e9e32a3fa8f921525aac26b8) add autotemplate - [`9e320f3`](https://github.com/ollama/ollama/commit/9e320f305dd2b0d41ac408656620c0a4784ba6cc) add template test data ### 📊 Changes **10 files changed** (+503 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert.go` (+2 -0) ➕ `convert/convert_commandr.go` (+76 -0) 📝 `convert/convert_test.go` (+1 -0) ➕ `convert/testdata/c4ai-command-r-v01.json` (+344 -0) ➕ `template/command-r.gotmpl` (+67 -0) ➕ `template/command-r.json` (+6 -0) 📝 `template/index.json` (+4 -0) ➕ `template/testdata/command-r.gotmpl/system-user-assistant-user` (+1 -0) ➕ `template/testdata/command-r.gotmpl/user` (+1 -0) ➕ `template/testdata/command-r.gotmpl/user-assistant-user` (+1 -0) </details> ### 📄 Description working for https://huggingface.co/CohereForAI/aya-23-8B https://huggingface.co/CohereForAI/c4ai-command-r-v01 --- <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-24 22:54:54 -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#43251