-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
MediaPipe LLMInference Task Crash #5825
Comments
I added some logs to find out where it is crashing. In Native side, Can someone check and confirm if some other kind of file needs to be passed for model ? And where can I get information about file format of model that mediapipe supports ? |
Could you please provide the complete steps you are following from our documentation, or share the command you are using along with the full error log? This will help us better understand the issue and reproduce it on our end. Thank you!! |
|
For the logs, I could not find the way to get logs on Android. I am using my custom logging that probably wont help much. |
We believe the issue may be occurring because you are trying to generate the app using the AAR method. However, we typically recommend using the Maven package, as we are unsure about the AAR method. Please allow us some time to discuss this with our team, and we will provide you with more information soon. Thank you!! |
Sure, I will wait for response. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
Android 15
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
LLMInference
Programming Language and version (e.g. C++, Python, Java)
Java
Describe the actual behavior
I compiled LLMInference task from MediaPipe source code and tried to use in place of the one available from play service maven repo and it crashed while trying to use gemma-2b-it-gpu-int8.
Describe the expected behaviour
LLMInference task should not crash.
Standalone code/steps you may have used to try to get what you need
Compile mediapipe for Android using docker. In Android Studio project , remove "implementation 'com.google.mediapipe:tasks-genai:0.10.14'" and add dependency on local built aar i.e. tasks_genai.aar. Run app it crashed. Remove local aar dependency and use maven repo dependency for mediapipe lib, it works well.
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: