[GH-ISSUE #6737] Model looses modelfile context #4245

Closed
opened 2026-04-12 15:10:33 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @kayloren on GitHub (Sep 11, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6737

What is the issue?

Hi, I have created a custom model using llava and also I created a custom modelfile, however, after several requests or computer restarts the model looses the modelfile configuration, I supposed that modelfile configuration wont change at least if I perform manual changes otherwise it should be working as expected, In the beggining I thought that I should save the session/state but that just works with the interactive console, I'm experiencing the error through the API calls (generate endpoint)

any help or advice is welcome
thanks in advance!

OS

Linux, Docker

GPU

Nvidia

CPU

Intel

Ollama version

0.3.9

Originally created by @kayloren on GitHub (Sep 11, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6737 ### What is the issue? Hi, I have created a custom model using llava and also I created a custom modelfile, however, after several requests or computer restarts the model looses the modelfile configuration, I supposed that modelfile configuration wont change at least if I perform manual changes otherwise it should be working as expected, In the beggining I thought that I should save the session/state but that just works with the interactive console, I'm experiencing the error through the API calls (generate endpoint) any help or advice is welcome thanks in advance! ### OS Linux, Docker ### GPU Nvidia ### CPU Intel ### Ollama version 0.3.9
GiteaMirror added the bug label 2026-04-12 15:10:33 -05:00
Author
Owner

@rick-github commented on GitHub (Sep 13, 2024):

What are the contents of your Modelfile? Can you give examples of API calls that fail, and the expected results? Can you supply system logs for the times when the API calls fail?

<!-- gh-comment-id:2347889882 --> @rick-github commented on GitHub (Sep 13, 2024): What are the contents of your Modelfile? Can you give examples of API calls that fail, and the expected results? Can you supply [system logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues) for the times when the API calls fail?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4245