[PR #5512] [MERGED] autodetect stop parameters from template #10549

Closed
opened 2025-11-12 15:31:05 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5512
Author: @mxyng
Created: 7/6/2024
Status: Merged
Merged: 7/26/2024
Merged by: @mxyng

Base: mainHead: mxyng/detect-stop


📝 Commits (1)

  • ebc529c autodetect stop parameters from template

📊 Changes

21 files changed (+156 additions, -4 deletions)

View changed files

📝 server/model.go (+18 -3)
📝 server/routes_create_test.go (+2 -1)
template/alfred.json (+8 -0)
template/alpaca.json (+6 -0)
template/chatml.json (+6 -0)
template/chatqa.json (+8 -0)
template/codellama-70b-instruct.json (+7 -0)
template/falcon-instruct.json (+6 -0)
template/gemma-instruct.json (+6 -0)
template/granite-instruct.json (+7 -0)
template/llama2-chat.json (+8 -0)
template/llama3-instruct.json (+7 -0)
template/magicoder.json (+6 -0)
template/mistral-instruct.json (+6 -0)
template/openchat.json (+5 -0)
template/phi-3.json (+8 -0)
template/solar-instruct.json (+7 -0)
template/starcoder2-instruct.json (+7 -0)
📝 template/template.go (+14 -0)
template/vicuna.json (+6 -0)

...and 1 more files

📄 Description

named template generally have well defined control tokens that can be used to stop generation. it might be possible to parse these directly from the template but given how few there are, it's simpler to set them manually


🔄 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/5512 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/6/2024 **Status:** ✅ Merged **Merged:** 7/26/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/detect-stop` --- ### 📝 Commits (1) - [`ebc529c`](https://github.com/ollama/ollama/commit/ebc529cbb3f0b27f6c154fa90e724db8243a7614) autodetect stop parameters from template ### 📊 Changes **21 files changed** (+156 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/model.go` (+18 -3) 📝 `server/routes_create_test.go` (+2 -1) ➕ `template/alfred.json` (+8 -0) ➕ `template/alpaca.json` (+6 -0) ➕ `template/chatml.json` (+6 -0) ➕ `template/chatqa.json` (+8 -0) ➕ `template/codellama-70b-instruct.json` (+7 -0) ➕ `template/falcon-instruct.json` (+6 -0) ➕ `template/gemma-instruct.json` (+6 -0) ➕ `template/granite-instruct.json` (+7 -0) ➕ `template/llama2-chat.json` (+8 -0) ➕ `template/llama3-instruct.json` (+7 -0) ➕ `template/magicoder.json` (+6 -0) ➕ `template/mistral-instruct.json` (+6 -0) ➕ `template/openchat.json` (+5 -0) ➕ `template/phi-3.json` (+8 -0) ➕ `template/solar-instruct.json` (+7 -0) ➕ `template/starcoder2-instruct.json` (+7 -0) 📝 `template/template.go` (+14 -0) ➕ `template/vicuna.json` (+6 -0) _...and 1 more files_ </details> ### 📄 Description named template generally have well defined control tokens that can be used to stop generation. it might be possible to parse these directly from the template but given how few there are, it's simpler to set them manually --- <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 2025-11-12 15:31:05 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#10549