[GH-ISSUE #149] error on main: the file name is invalid #46564

Closed
opened 2026-04-27 23:00:53 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @nathanleclaire on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/149

after pull and build. from client:

$ ollama run llama2
>>> hi
Error: Post "http://127.0.0.1:11434/api/generate": EOF

on server side:

llama_new_context_with_model: kv self size  = 1024.00 MB
ggml_metal_init: allocating
ggml_metal_init: using MPS
ggml_metal_init: loading '(null)'
ggml_metal_init: error: Error Domain=NSCocoaErrorDomain Code=258 "The file name is invalid."`
Originally created by @nathanleclaire on GitHub (Jul 20, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/149 after pull and build. from client: ``` $ ollama run llama2 >>> hi Error: Post "http://127.0.0.1:11434/api/generate": EOF ``` on server side: ``` llama_new_context_with_model: kv self size = 1024.00 MB ggml_metal_init: allocating ggml_metal_init: using MPS ggml_metal_init: loading '(null)' ggml_metal_init: error: Error Domain=NSCocoaErrorDomain Code=258 "The file name is invalid."` ```
GiteaMirror added the bug label 2026-04-27 23:00:53 -05:00
Author
Owner

@nathanleclaire commented on GitHub (Jul 20, 2023):

Ah, something must be wrong in my local state, cause I now get the error on an older commit too (#132)

<!-- gh-comment-id:1644627022 --> @nathanleclaire commented on GitHub (Jul 20, 2023): Ah, something must be wrong in my local state, cause I now get the error on an older commit too (#132)
Author
Owner

@nathanleclaire commented on GitHub (Jul 20, 2023):

ah i was trying to use ollama from ~/go/bin but it only wants to be in the repo root cause that's where it can find the ggml stuff

<!-- gh-comment-id:1644632712 --> @nathanleclaire commented on GitHub (Jul 20, 2023): ah i was trying to use `ollama` from `~/go/bin` but it only wants to be in the repo root cause that's where it can find the ggml stuff
Author
Owner

@nathanleclaire commented on GitHub (Jul 20, 2023):

#48

<!-- gh-comment-id:1644632909 --> @nathanleclaire commented on GitHub (Jul 20, 2023): #48
Author
Owner

@jmorganca commented on GitHub (Jul 20, 2023):

Thanks!

<!-- gh-comment-id:1644636024 --> @jmorganca commented on GitHub (Jul 20, 2023): Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46564