Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ggml_metal_supports_op #8021

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

mdegans
Copy link
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 ggerganov:master Jun 20, 2024
65 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jun 29, 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.
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