[GH-ISSUE #15835] run Any model reports an error #72153

Open
opened 2026-05-05 03:33:23 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @132094gtq on GitHub (Apr 27, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15835

What is the issue?

ollama run tinyllama

Relevant log output

ProductName:		macOS
ProductVersion:		26.2
BuildVersion:		25C56
ollama run tinyllama               
Error: 500 Internal Server Error: llama runner process has terminated: %!w(<nil>)

In file included from program_source:2837:
In file included from /System/Library/Frameworks/MetalPerformancePrimitives.framework/Headers/MetalPerformancePrimitives.h:10:
In file included from /System/Library/Frameworks/MetalPerformancePrimitives.framework/Headers/MPPTensorOpsMatMul2d.h:368:
/System/Library/Frameworks/MetalPerformancePrimitives.framework/Headers/__impl/MPPTensorOpsMatMul2dImpl.h:3267:5: error: static_assert failed due to requirement '__tensor_ops_detail::__is_same_v<half, bfloat>' "Input types must match cooperative tensor types"
    static_assert(__tensor_ops_detail::__is_same_v<_rightType, rightValueType>, "Input types must match cooperative tensor types");
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
ggml_metal_init: error: failed to initialize the Metal library
ggml_backend_metal_device_init: error: failed to allocate context
llama_init_from_model: failed to initialize the context: failed to initialize Metal backend
panic: unable to create llama context

goroutine 39 [running]:
github.com/ollama/ollama/runner/llamarunner.(*Server).loadModel(0x14000558280, {{0x0, 0x0, 0x0}, 0x0, 0x0, 0x0, {0x0, 0x0, 0x0}, ...}, ...)
	/Users/runner/work/ollama/ollama/runner/llamarunner/runner.go:849 +0x298
created by github.com/ollama/ollama/runner/llamarunner.(*Server).load in goroutine 22
	/Users/runner/work/ollama/ollama/runner/llamarunner/runner.go:934 +0x6fc
time=2026-04-27T21:07:15.580+08:00 level=INFO source=server.go:1398 msg="waiting for server to become available" status="llm server not responding"
time=2026-04-27T21:07:15.658+08:00 level=ERROR source=server.go:316 msg="llama runner terminated" error="exit status 2"
time=2026-04-27T21:07:15.832+08:00 level=INFO source=sched.go:511 msg="Load failed" model=/Users/gao/.ollama/models/blobs/sha256-2af3b81862c6be03c769683af18efdadb2c33f60ff32ab6f83e42c043d6c7816 error="llama runner process has terminated: %!w(<nil>)"
[GIN] 2026/04/27 - 21:07:15 | 500 |  3.875531125s |       127.0.0.1 | POST     "/api/generate"

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.21.3-rc0 neither,0.21.2neither

Originally created by @132094gtq on GitHub (Apr 27, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15835 ### What is the issue? ollama run tinyllama ### Relevant log output ```shell ProductName: macOS ProductVersion: 26.2 BuildVersion: 25C56 ollama run tinyllama Error: 500 Internal Server Error: llama runner process has terminated: %!w(<nil>) In file included from program_source:2837: In file included from /System/Library/Frameworks/MetalPerformancePrimitives.framework/Headers/MetalPerformancePrimitives.h:10: In file included from /System/Library/Frameworks/MetalPerformancePrimitives.framework/Headers/MPPTensorOpsMatMul2d.h:368: /System/Library/Frameworks/MetalPerformancePrimitives.framework/Headers/__impl/MPPTensorOpsMatMul2dImpl.h:3267:5: error: static_assert failed due to requirement '__tensor_ops_detail::__is_same_v<half, bfloat>' "Input types must match cooperative tensor types" static_assert(__tensor_ops_detail::__is_same_v<_rightType, rightValueType>, "Input types must match cooperative tensor types"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ } ggml_metal_init: error: failed to initialize the Metal library ggml_backend_metal_device_init: error: failed to allocate context llama_init_from_model: failed to initialize the context: failed to initialize Metal backend panic: unable to create llama context goroutine 39 [running]: github.com/ollama/ollama/runner/llamarunner.(*Server).loadModel(0x14000558280, {{0x0, 0x0, 0x0}, 0x0, 0x0, 0x0, {0x0, 0x0, 0x0}, ...}, ...) /Users/runner/work/ollama/ollama/runner/llamarunner/runner.go:849 +0x298 created by github.com/ollama/ollama/runner/llamarunner.(*Server).load in goroutine 22 /Users/runner/work/ollama/ollama/runner/llamarunner/runner.go:934 +0x6fc time=2026-04-27T21:07:15.580+08:00 level=INFO source=server.go:1398 msg="waiting for server to become available" status="llm server not responding" time=2026-04-27T21:07:15.658+08:00 level=ERROR source=server.go:316 msg="llama runner terminated" error="exit status 2" time=2026-04-27T21:07:15.832+08:00 level=INFO source=sched.go:511 msg="Load failed" model=/Users/gao/.ollama/models/blobs/sha256-2af3b81862c6be03c769683af18efdadb2c33f60ff32ab6f83e42c043d6c7816 error="llama runner process has terminated: %!w(<nil>)" [GIN] 2026/04/27 - 21:07:15 | 500 | 3.875531125s | 127.0.0.1 | POST "/api/generate" ``` ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.21.3-rc0 neither,0.21.2neither
GiteaMirror added the bug label 2026-05-05 03:33:23 -05:00
Author
Owner

@andreinknv commented on GitHub (Apr 27, 2026):

https://github.com/ollama/ollama/pull/15793, check if this fixes your issue

<!-- gh-comment-id:4329462549 --> @andreinknv commented on GitHub (Apr 27, 2026): https://github.com/ollama/ollama/pull/15793, check if this fixes your issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#72153