[GH-ISSUE #111] Error trying to create custom model, fresh install #35

Closed
opened 2026-04-12 09:34:12 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @saqbach on GitHub (Jul 19, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/111

First off, this is awesome. Thank you for creating this. Running into a Error: 400 Bad Request when trying to follow the README and create a custom model.

Steps:

  1. Download Apple Silicon app from https://ollama.ai/download & install to CLI
  2. Run ollama run llama2 successfully
  3. Create a Modelfile and copy/paste the README example verbatim
  4. Run ollama create mario -f ./Modelfile
  5. Receive the Error: 400 Bad Request

Attempted a few of the other examples as well, etc. but couldn't get it to run.

Originally created by @saqbach on GitHub (Jul 19, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/111 First off, this is awesome. Thank you for creating this. Running into a `Error: 400 Bad Request` when trying to follow the README and create a custom model. Steps: 1. Download Apple Silicon app from `https://ollama.ai/download` & install to CLI 2. Run `ollama run llama2` successfully 3. Create a `Modelfile` and copy/paste the README example verbatim 4. Run `ollama create mario -f ./Modelfile` 5. Receive the `Error: 400 Bad Request` Attempted a few of the other examples as well, etc. but couldn't get it to run.
GiteaMirror added the bug label 2026-04-12 09:34:12 -05:00
Author
Owner

@mchiang0610 commented on GitHub (Jul 19, 2023):

Thanks for this bug report. There is currently a bug with using relative paths. If you use an absolute path eg.) ollama create mario -f ~/Downloads/ollama/Modelfile it should work.

<!-- gh-comment-id:1641289660 --> @mchiang0610 commented on GitHub (Jul 19, 2023): Thanks for this bug report. There is currently a bug with using relative paths. If you use an absolute path eg.) `ollama create mario -f ~/Downloads/ollama/Modelfile` it should work.
Author
Owner

@james-see commented on GitHub (Jul 19, 2023):

I was having the same issue, thanks for the workaround!

<!-- gh-comment-id:1641314765 --> @james-see commented on GitHub (Jul 19, 2023): I was having the same issue, thanks for the workaround!
Author
Owner

@mchiang0610 commented on GitHub (Jul 19, 2023):

@james-see @austinhale This issue should be fixed in the latest version (0.0.7) just released. If you have Ollama installed, it'll prompt to update.

Thanks!

The specific PR is: https://github.com/jmorganca/ollama/pull/112

<!-- gh-comment-id:1641368490 --> @mchiang0610 commented on GitHub (Jul 19, 2023): @james-see @austinhale This issue should be fixed in the latest version (0.0.7) just released. If you have Ollama installed, it'll prompt to update. Thanks! The specific PR is: https://github.com/jmorganca/ollama/pull/112
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#35