Getting GGML_ASSERT false && not implemented (LLAMA_MPI enabled build) #4407
Replies: 2 comments 16 replies
-
MPI is disabled at the moment due to being broken awhile ago. I've been working on fixing it but had to pause development for semester finals, you can use my current implementation from one of my forks but be warned, there's a bug with synchronizing the KV cache operations |
Beta Was this translation helpful? Give feedback.
-
Hello. Firstly, thanks for producing an amazing project. Being able to run an LLM on a RPi is awesome! I have had no issues with running it on a Rpi 5B with 8GB. using your phi-2 branch following this blog: https://github.com/ggerganov/llama.cpp/tree/gg/phi-2 Since I have a few 4Gb RPi 4Bs lying around I was trying to use the mpirun approach to run a model across a few RPIs. I was following this interesting thread: #2164 However, in the end I had to restrict myself to just one remote Pi as I had issues with dynamically linked executables not working other than on the machine they were built on. I ensured that the OS as the same on them all though. I managed to get the phi-2.Q2_K.gguf model to work on the RPi4, but only when llama.cp was compiled normally. The moment I tried the 'make CC=mpicc CXX=mpicxx LLAMA_MPI=1' approach I got the error: _llama_new_context_with_model: KV self size = 160.00 MiB, K (f16): 80.00 MiB, V (f16): 80.00 MiB I can't find the branch you suggested NoelVictor89 should try. Is there a more recent one you suggest I try? Many thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All, I followed the instructions in README to enable MPI and it fails with this message. I looked at the code and found that there is an assertion.
5834 #ifdef GGML_USE_MPI
5835 // TODO: needs fix after #3228
5836 GGML_ASSERT(false && "not implemented");
5837 //ggml_mpi_eval_init(lctx.ctx_mpi, &n_tokens, &n_past, &n_threads);
5838 #endif
Let me know if I am doing anything wrong. The command line i am using is,
mpirun --hostfile machinefile -np 2 ./main -m -p -n 1024 -c 512
I would appreciate all the help. Thanks in Advance
Beta Was this translation helpful? Give feedback.
All reactions