llama.cpp
llama.cpp copied to clipboard
Android App load model error: ILL_ILLOPN
I compiled the examples/llama.android project, and ran the app to load the model, but it did not work. The error log is as follows:
2024-03-08 16:45:03.588 28604-28727 llama-android.cpp com.example.llama I Loading model from /storage/emulated/0/Android/data/com.example.llama/files/phi-2-dpo.Q3_K_M.gguf
2024-03-08 16:45:03.627 28604-28727 libc com.example.llama A Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x74348e92e1f5 in tid 28727 (Llm-RunLoop), pid 28604 (m.example.llama)
2024-03-08 16:45:04.222 28730-28730 DEBUG pid-28730 A Cmdline: com.example.llama
2024-03-08 16:45:04.222 28730-28730 DEBUG pid-28730 A pid: 28604, tid: 28727, name: Llm-RunLoop >>> com.example.llama <<<
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #00 pc 00000000000e41f5 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (gguf_init_from_file+2709) (BuildId: dc9b1f6ff7828a32e1c2a7a0eea0b88e8ee87cad)
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #01 pc 0000000000184e61 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (llama_model_loader::llama_model_loader(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, bool, llama_model_kv_override const*)+737) (BuildId: dc9b1f6ff7828a32e1c2a7a0eea0b88e8ee87cad)
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #02 pc 0000000000167b3f /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (BuildId: dc9b1f6ff7828a32e1c2a7a0eea0b88e8ee87cad)
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #03 pc 0000000000167a15 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (llama_load_model_from_file+533) (BuildId: dc9b1f6ff7828a32e1c2a7a0eea0b88e8ee87cad)
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #04 pc 00000000000c3818 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (Java_com_example_llama_Llm_load_1model+136) (BuildId: dc9b1f6ff7828a32e1c2a7a0eea0b88e8ee87cad)
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #07 pc 000000000000c098 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (com.example.llama.Llm.access$load_model+0)
2024-03-08 16:45:04.223 28730-28730 DEBUG pid-28730 A #09 pc 000000000000b78a /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (com.example.llama.Llm$load$2.invokeSuspend+90)
2024-03-08 16:45:04.224 28730-28730 DEBUG pid-28730 A #11 pc 00000000000b8242 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+42)
2024-03-08 16:45:04.224 28730-28730 DEBUG pid-28730 A #18 pc 000000000000ba22 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (com.example.llama.Llm$runLoop$1$1.invoke+138)
2024-03-08 16:45:04.224 28730-28730 DEBUG pid-28730 A #20 pc 000000000000b958 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (com.example.llama.Llm$runLoop$1$1.invoke+0)
2024-03-08 16:45:04.224 28730-28730 DEBUG pid-28730 A #22 pc 00000000000b5d30 /data/app/~~5b97k5qL4kXnbWpg3n4hQQ==/com.example.llama-UAFKNl8hRWS4OHw1m6P4qQ==/base.apk (kotlin.concurrent.ThreadsKt$thread$thread$1.run+4)
the model file doesn't exist
@FSSRepo i checked the model was existed, but not check the integrity of the model file, i will have a try, thanks.
@FSSRepo i checked the model was existed, but not check the integrity of the model file, i will have a try, thanks.
did this solve your issue?
@FSSRepo i checked the model was existed, but not check the integrity of the model file, i will have a try, thanks.
did this solve your issue?
yes, my model file does not support loading, then i replace it with another one and it runs normally.
This issue was closed because it has been inactive for 14 days since being marked as stale.