[PR #7250] [MERGED] default to "FROM ." if a Modelfile isn't present #12362

Closed
opened 2026-04-12 23:56:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7250
Author: @pdevine
Created: 10/18/2024
Status: Merged
Merged: 10/22/2024
Merged by: @pdevine

Base: mainHead: pdevine/automodelfile


📝 Commits (2)

  • 26b5608 default to "FROM ." if a Modelfile isn't present
  • 213e4a2 cleanup err handling

📊 Changes

2 files changed (+146 additions, -12 deletions)

View changed files

📝 cmd/cmd.go (+47 -12)
📝 cmd/cmd_test.go (+99 -0)

📄 Description

If you have checked out a safetensors model which is supported by Ollama and it doesn't require any extra parameters, it's annoying to have to make a Modelfile which has a single line which looks like:

FROM .

This change will make a default FROM . modelfile if one isn't specified.


🔄 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/7250 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 10/18/2024 **Status:** ✅ Merged **Merged:** 10/22/2024 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/automodelfile` --- ### 📝 Commits (2) - [`26b5608`](https://github.com/ollama/ollama/commit/26b560869e689aed0ee35d48a7e6afb5090934ad) default to "FROM ." if a Modelfile isn't present - [`213e4a2`](https://github.com/ollama/ollama/commit/213e4a2cbcd6e56685818c64e82f53392a27fcfe) cleanup err handling ### 📊 Changes **2 files changed** (+146 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+47 -12) 📝 `cmd/cmd_test.go` (+99 -0) </details> ### 📄 Description If you have checked out a safetensors model which is supported by Ollama and it doesn't require any extra parameters, it's annoying to have to make a Modelfile which has a single line which looks like: ``` FROM . ``` This change will make a default `FROM .` modelfile if one isn't specified. --- <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-12 23:56:54 -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#12362