[PR #5992] [MERGED] fix: model save #10720

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

📋 Pull Request Information

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

Base: mainHead: mxyng/save


📝 Commits (1)

📊 Changes

2 files changed (+60 additions, -61 deletions)

View changed files

📝 cmd/interactive.go (+26 -20)
📝 cmd/interactive_test.go (+34 -41)

📄 Description

stop parameter is saved as a slice which is incompatible with modelfile parsing. this change saves stop parameters as individual parameters

e.g.

/set parameter stop word1 word2
/save new-model

produces PARAMETER stop [word1 word2]

instead it should produce

PARAMETER stop word1
PARAMETER stop word2

🔄 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/5992 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/26/2024 **Status:** ✅ Merged **Merged:** 7/29/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/save` --- ### 📝 Commits (1) - [`3d9de80`](https://github.com/ollama/ollama/commit/3d9de805b777ca43746a6ae951b34689aa16e8e9) fix: model save ### 📊 Changes **2 files changed** (+60 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+26 -20) 📝 `cmd/interactive_test.go` (+34 -41) </details> ### 📄 Description stop parameter is saved as a slice which is incompatible with modelfile parsing. this change saves stop parameters as individual parameters e.g. ``` /set parameter stop word1 word2 /save new-model ``` produces `PARAMETER stop [word1 word2]` instead it should produce ``` PARAMETER stop word1 PARAMETER stop word2 ``` --- <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:35:04 -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#10720