[PR #8446] add conversion code for cohere2 arch #17980

Open
opened 2026-04-16 06:21:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8446
Author: @pdevine
Created: 1/16/2025
Status: 🔄 Open

Base: mainHead: pdevine/convert-cohere2


📝 Commits (5)

📊 Changes

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

View changed files

📝 convert/convert.go (+2 -0)
convert/convert_cohere2.go (+85 -0)
📝 convert/convert_test.go (+17 -0)
convert/testdata/c4ai-command-r7b-12-2024.json (+296 -0)
template/cohere2.gotmpl (+97 -0)
template/cohere2.json (+7 -0)
📝 template/index.json (+4 -0)
template/testdata/cohere2.gotmpl/system-user-assistant-user (+25 -0)
template/testdata/cohere2.gotmpl/user (+1 -0)
template/testdata/cohere2.gotmpl/user-assistant-user (+1 -0)

📄 Description

This change adds conversion + test routines for Cohere's command-r7b model.


🔄 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/8446 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 1/16/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pdevine/convert-cohere2` --- ### 📝 Commits (5) - [`453d65a`](https://github.com/ollama/ollama/commit/453d65a8ab10b2b05e48375ae7fbf7365ee77cd3) add cohere2 models - [`7571d40`](https://github.com/ollama/ollama/commit/7571d402fb6a2b189747c78516f18a3f13a49611) feed linter - [`2591979`](https://github.com/ollama/ollama/commit/2591979d3bad748cf5180cb98e9a173419c540e8) gofumpt the linter - [`5a3950a`](https://github.com/ollama/ollama/commit/5a3950a2a15761bbb2a85bd05fba8118033ce258) update the cohere2 template - [`c13fb10`](https://github.com/ollama/ollama/commit/c13fb10e1966c8acc94cb8975962ed078824c88c) fix template for cohere2 arch conversion ### 📊 Changes **10 files changed** (+535 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert.go` (+2 -0) ➕ `convert/convert_cohere2.go` (+85 -0) 📝 `convert/convert_test.go` (+17 -0) ➕ `convert/testdata/c4ai-command-r7b-12-2024.json` (+296 -0) ➕ `template/cohere2.gotmpl` (+97 -0) ➕ `template/cohere2.json` (+7 -0) 📝 `template/index.json` (+4 -0) ➕ `template/testdata/cohere2.gotmpl/system-user-assistant-user` (+25 -0) ➕ `template/testdata/cohere2.gotmpl/user` (+1 -0) ➕ `template/testdata/cohere2.gotmpl/user-assistant-user` (+1 -0) </details> ### 📄 Description This change adds conversion + test routines for Cohere's command-r7b model. --- <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-16 06:21:06 -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#17980