Repository navigation
Description
Prerequisites
Please answer the following questions for yourself before submitting an issue.
- I am running the latest code. Development is very rapid so there are no tagged versions as of now.
- I carefully followed the README.md.
- I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
- I reviewed the Discussions, and have a new bug or useful enhancement to share.
Expected Behavior
Run server properly.
Current Behavior
After launching the command, macOS GUI frozen.
./server -m path-to-gguf/some-gguf-previously-worked
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
-
Physical (or virtual) hardware you are using, e.g. for Linux:
macbook pro 2022
$ lscpu
4 core intel core i5 -
Operating System, e.g. for Linux:
macOS 13.5.1
$ uname -a -
SDK version, e.g. for Linux:
Xcode 15.0.1 15A507
$ python3 --version
$ make --version
$ g++ --version
Failure Information (for bugs)
The GUI froze after loading metal file.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
- build from git source
- run
./server -m path-to-gguf
The screen output suggests:
ggml_metal_init: found device: Intel(R) Iris(TM) Plus Graphics
ggml_metal_init: picking default device: Intel(R) Iris(TM) Plus Graphics
ggml_metal_init: default.metallib not found, loading from source
ggml_metal_init: loading '....../llama.cpp/ggml-metal.metal'
Then the GUI froze. After about 2 minutes, the watchdog was triggered and the OS panic occurred.
Activity
zhangchn commentedon Nov 9, 2023
Tested with a smaller weight, e.g. llama-2-7b-chat.Q4_0.gguf from TheBloke/llama2-7b-chat-gguf.
With
-ngl 0and no metal acceleration, server output was normal and reasonable.With
-ngl 1or higher, the output would be abnormal:[-]Intel Mac GUI frozen and panic[/-][+]Metal issues with Intel Mac[/+]MikeLP commentedon Dec 16, 2023
I have the same issue.
Basten7 commentedon Dec 18, 2023
Tested on 6800XT or RX 580 on my Intel Mac and I have the same issue.
devYonz commentedon Jan 18, 2024
I also have the same issue, and i've tried OpenCL mode and get gibberish for anything over ngl=1. My setup is Intel mac with AMD GPU.
tjohnman commentedon Feb 19, 2024
I have the same issue with a 2017 13-inch MBP (2,3 GHz Dual-Core Intel Core i5, Intel Iris Plus Graphics 640 1536 MB, 8 GB 2133 MHz LPDDR3, macOS Ventura 13.6.4).
Using a smaller quantisation (Q2_K), instead of a UI freeze I get an endless string of
ggml_metal_graph_compute: command buffer 0 failed with status 5errors. According to what someone said in this Reddit comment, and unless I'm mistaken, this might be a memory issue. My recommendedMaxWorkingSetSize is 1610.61 MB, which means even 1 layer of the smallest 7B quantisation is not going to fit on my computer using Metal.github-actions commentedon Apr 4, 2024
This issue was closed because it has been inactive for 14 days since being marked as stale.
cilin1105 commentedon Dec 19, 2024
Guys Metal is for M series so doesn't work with intel or I am wrong?
zhangchn commentedon Dec 25, 2024
Metal API precedes Apple Silicon M series by a few years. Metal 2 supports Macs since 2012, and Metal 3 supports devices later than 2017/2018.