[PR #1211] [MERGED] fix: allow specifying relative files in modelfile #15777

Closed
opened 2026-04-16 05:07:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1211
Author: @BruceMacD
Created: 11/20/2023
Status: Merged
Merged: 11/20/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/relative-create-file


📝 Commits (1)

  • 7a1e53f resolve FROM path before sending modelfile

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+4 -0)

📄 Description

Small regression here from remote models. Previously you could specify files relative to a modelfile without their path, this is my normal workflow. This change restores this behaviour to match v0.1.9.

Example modelfile:

FROM nous-capybara-34b.Q4_0.gguf
TEMPLATE "USER: { .Prompt } ASSISTANT: "

🔄 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/1211 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 11/20/2023 **Status:** ✅ Merged **Merged:** 11/20/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/relative-create-file` --- ### 📝 Commits (1) - [`7a1e53f`](https://github.com/ollama/ollama/commit/7a1e53f429148061d2c50b1abe2264244163a6aa) resolve FROM path before sending modelfile ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+4 -0) </details> ### 📄 Description Small regression here from remote models. Previously you could specify files relative to a modelfile without their path, this is my normal workflow. This change restores this behaviour to match v0.1.9. Example modelfile: ``` FROM nous-capybara-34b.Q4_0.gguf TEMPLATE "USER: { .Prompt } ASSISTANT: " ``` --- <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 05:07:55 -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#15777