[GH-ISSUE #5871] finetuning model can't runing in ollama #29422

Open
opened 2026-04-22 08:17:10 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @DanielSunHub on GitHub (Jul 23, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5871

What is the issue?

I fine-tuned a sqlcoder model and generated a model file. When I deployed it on Ollama, there was a problem. The model could not run and the size of the Ollama file was incorrect. Has anyone encountered this problem?
Screenshot 2024-07-23 at 6 49 50 PM
Screenshot 2024-07-23 at 6 50 41 PM
Screenshot 2024-07-23 at 6 51 26 PM

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.1.47

Originally created by @DanielSunHub on GitHub (Jul 23, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5871 ### What is the issue? I fine-tuned a sqlcoder model and generated a model file. When I deployed it on Ollama, there was a problem. The model could not run and the size of the Ollama file was incorrect. Has anyone encountered this problem? ![Screenshot 2024-07-23 at 6 49 50 PM](https://github.com/user-attachments/assets/6aaf3a5a-e15d-43a8-9c7d-3f2f940a0e25) ![Screenshot 2024-07-23 at 6 50 41 PM](https://github.com/user-attachments/assets/6f8595cf-7460-46c7-b094-ac9d96e936b7) ![Screenshot 2024-07-23 at 6 51 26 PM](https://github.com/user-attachments/assets/c7a12bd4-42b9-4071-82a8-fdd74f0ba854) ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.1.47
GiteaMirror added the bug label 2026-04-22 08:17:10 -05:00
Author
Owner

@DanielSunHub commented on GitHub (Jul 23, 2024):

Screenshot 2024-07-23 at 6 56 13 PM
create process looks good

<!-- gh-comment-id:2244907363 --> @DanielSunHub commented on GitHub (Jul 23, 2024): ![Screenshot 2024-07-23 at 6 56 13 PM](https://github.com/user-attachments/assets/5dd63a7b-8f57-4ffa-88c0-16bb936077a2) create process looks good
Author
Owner

@rick-github commented on GitHub (Jul 23, 2024):

Server logs may help to diagnose the problem.

What are the contents of your Modelfile?

<!-- gh-comment-id:2244974273 --> @rick-github commented on GitHub (Jul 23, 2024): Server logs may help to diagnose the problem. What are the contents of your Modelfile?
Author
Owner

@DanielSunHub commented on GitHub (Jul 24, 2024):

Server logs may help to diagnose the problem.

What are the contents of your Modelfile?

Modelfile is just the path of Model

<!-- gh-comment-id:2246731854 --> @DanielSunHub commented on GitHub (Jul 24, 2024): > Server logs may help to diagnose the problem. > > What are the contents of your Modelfile? Modelfile is just the path of Model
Author
Owner

@pdevine commented on GitHub (Sep 12, 2024):

@DanielSunHub I think without the server logs this is going to be really hard to diagnose. Here are the troubleshooting docs which explain how to get the log files.

My guess is you fused a gguf file and the process somehow didn't work (and generated an invalid gguf file). You could alternatively try the ADAPTER command which is covered in the importing docs.

Sorry it took so long to get back to this! It looks like it fell through the cracks.

<!-- gh-comment-id:2347321213 --> @pdevine commented on GitHub (Sep 12, 2024): @DanielSunHub I think without the server logs this is going to be really hard to diagnose. Here are the [troubleshooting docs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md) which explain how to get the log files. My guess is you fused a gguf file and the process somehow didn't work (and generated an invalid gguf file). You could alternatively try the `ADAPTER` command which is covered in the [importing docs](https://github.com/ollama/ollama/blob/main/docs/import.md#Importing-a-fine-tuned-adapter-from-Safetensors-weights). Sorry it took so long to get back to this! It looks like it fell through the cracks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29422