Skip to content

Fix ggml_metal_supports_op#8021

Merged
ggerganov merged 1 commit intoggml-org:masterfrom
mdegans:fix-ggml-metal-supports-op
Jun 20, 2024
Merged

Fix ggml_metal_supports_op#8021
ggerganov merged 1 commit intoggml-org:masterfrom
mdegans:fix-ggml-metal-supports-op

Conversation

@mdegans
Copy link
Copy Markdown
Contributor

@mdegans mdegans commented Jun 19, 2024

Currently the Metal backend does not support BF16. ggml_metal_supports_op was returning true in these cases, leading to a crash with models converted with --leave-output-tensor. This commit checks if the first few sources types are BF16 and returns false if that's the case.

Fixes #8019

Currently the Metal backend does not support BF16. `ggml_metal_supports_op` was returning true in these cases, leading to a crash with models converted with `--leave-output-tensor`. This commit checks if the first few sources types are BF16 and returns false if that's the case.
@mofosyne mofosyne added the Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix label Jun 19, 2024
@ggerganov ggerganov merged commit 2075a66 into ggml-org:master Jun 20, 2024
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
Currently the Metal backend does not support BF16. `ggml_metal_supports_op` was returning true in these cases, leading to a crash with models converted with `--leave-output-tensor`. This commit checks if the first few sources types are BF16 and returns false if that's the case.
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
Currently the Metal backend does not support BF16. `ggml_metal_supports_op` was returning true in these cases, leading to a crash with models converted with `--leave-output-tensor`. This commit checks if the first few sources types are BF16 and returns false if that's the case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Hardware support check

4 participants