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

Bug: SwiftUI example does not work on simulator. #10089

Closed
guinmoon opened this issue Oct 29, 2024 · 1 comment
Closed

Bug: SwiftUI example does not work on simulator. #10089

guinmoon opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working low severity Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)

Comments

@guinmoon
Copy link
Contributor

What happened?

Previously, when model_params.n_gpu_layers = 0 metal backend was not initialized. Now even if model_params.n_gpu_layers = 0, metal backend initialization is still performed, which is terminated by the following error:

ggml_metal_init: error: load pipeline error: Error Domain=CompilerError Code=2 "only 14 constant buffers binding are supported in the simulator but 25 were used" UserInfo={NSLocalizedDescription=only 14 constant buffers binding are supported in the simulator but 25 were used}
ggml_backend_metal_device_init: error: failed to allocate context
llama_new_context_with_model: failed to initialize Metal backend

Name and Version

version: b3982

What operating system are you seeing the problem on?

No response

Relevant log output

No response

@guinmoon guinmoon added bug-unconfirmed low severity Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches) labels Oct 29, 2024
@slaren slaren added bug Something isn't working and removed bug-unconfirmed labels Oct 30, 2024
@BB-fat
Copy link
Contributor

BB-fat commented Mar 20, 2025

It seems that this bug should have been fixed in #12194.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low severity Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)
Projects
None yet
Development

No branches or pull requests

4 participants