[PR #12793] [MERGED] create: inherit FROM model's renderer/parser #13952

Closed
opened 2026-04-13 00:41:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12793
Author: @drifkin
Created: 10/27/2025
Status: Merged
Merged: 10/28/2025
Merged by: @drifkin

Base: mainHead: drifkin/12792_renderer-parser-from


📝 Commits (1)

  • 1bdd816 create: inherit FROM model's renderer/parser

📊 Changes

2 files changed (+87 additions, -0 deletions)

View changed files

📝 server/create.go (+21 -0)
📝 server/routes_create_test.go (+66 -0)

📄 Description

On main, the RENDERER and PARSER fields from the Modelfile don't get propagated to a new model created with a req.From parameter. This is easily triggered via ollama run qwen3-coder, then running some save command like /save qwen3-coder-custom.

Added a regression test for this, and then open the config for the "from" model in order to use its renderer/parser as a default for the new model. This will fix the CLI and also API-based creates.

Fixes: https://github.com/ollama/ollama/issues/12792


🔄 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/12793 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 10/27/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/12792_renderer-parser-from` --- ### 📝 Commits (1) - [`1bdd816`](https://github.com/ollama/ollama/commit/1bdd81691063003e8be5a856942273bd7ca15acd) create: inherit FROM model's renderer/parser ### 📊 Changes **2 files changed** (+87 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/create.go` (+21 -0) 📝 `server/routes_create_test.go` (+66 -0) </details> ### 📄 Description On main, the `RENDERER` and `PARSER` fields from the `Modelfile` don't get propagated to a new model created with a `req.From` parameter. This is easily triggered via `ollama run qwen3-coder`, then running some save command like `/save qwen3-coder-custom`. Added a regression test for this, and then open the config for the "from" model in order to use its renderer/parser as a default for the new model. This will fix the CLI and also API-based creates. Fixes: https://github.com/ollama/ollama/issues/12792 --- <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:41:03 -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#13952