mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] Failed to get base model name.

Open abaker opened this issue 7 months ago • 6 comments

Describe the bug I'm trying to run the genai samples on a Pixel 9 Pro running GrapheneOS

aicore: 0.thirdpartyeap.ffdf_aicore_20250501.00_RC02.756476720 private compute services: 1.0.release.743434649

All of the samples fail with errors like this

Failed to get base model name. (Ask Gemini)
com.google.mlkit.genai.common.GenAiException: AICore failed with error type 3-PREPARATION_ERROR and error code 606-FEATURE_NOT_FOUND: Feature 622 is not available.
at com.google.mlkit.genai.summarization.Summarizer.zze(com.google.mlkit:genai-summarization@@1.0.0-beta1:3)
at com.google.mlkit.genai.summarization.zzj.zza(Unknown Source:6)
at com.google.android.gms.internal.mlkit_genai_summarization.zzfo.zza(com.google.mlkit:genai-summarization@@1.0.0-beta1:2)
at com.google.android.gms.internal.mlkit_genai_summarization.zzfp.run(com.google.mlkit:genai-summarization@@1.0.0-beta1:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)
Caused by: com.google.android.gms.internal.mlkit_genai_summarization.zzaw: AICore failed with error type 3-PREPARATION_ERROR and error code 606-FEATURE_NOT_FOUND: Feature 622 is not available.
at com.google.android.gms.internal.mlkit_genai_summarization.zzcq.zzl(com.google.mlkit:genai-summarization@@1.0.0-beta1:9)
at com.google.android.gms.internal.mlkit_genai_summarization.zzbx.zza(Unknown Source:6)
at com.google.android.gms.internal.mlkit_genai_summarization.zzfx.zza(com.google.mlkit:genai-summarization@@1.0.0-beta1:2)
at com.google.android.gms.internal.mlkit_genai_summarization.zzfz.run(com.google.mlkit:genai-summarization@@1.0.0-beta1:8)

SDK Info:

  • SDK Name & Version com.google.mlkit:genai-*:1.0.0-beta01

Smartphone:

  • Device/Simulator: Pixel 9 Pro
  • Device/Simulator OS: GrapheneOS, Android 15

abaker avatar May 23 '25 18:05 abaker

I just noticed under common setup issues:

AICore failed with error type 3-PREPARATION_ERROR and error code 606-FEATURE_NOT_FOUND: Feature ... is not available. This could happen when AICore hasn't finished downloading the latest configurations. Keep network connection and wait for a few minutes to a few hours.

abaker avatar May 23 '25 18:05 abaker

I noticed two suspicious parts:

(1) You are getting the thirdpartyeap version of AICore instead of release version. Your account might be in https://groups.google.com/g/aicore-experimental or some other special AICore testing groups.

I just created a new account to join https://groups.google.com/g/aicore-experimental and get the thirdpartyeap version and verified it works with the ML Kit GenAI API.

However, ideally, to minimize potential frustration, please use an account not in any AICore related special groups and get the release version.

(2) I don't think "GrapheneOS" is officially supported. Not sure, but it may miss some dependencies for AICore to work properly.


Does it work now after waiting some time? (Maybe try rebooting too to trigger some AICore init logic).

ai-plays avatar May 23 '25 22:05 ai-plays

Still not working 😢

I understand GrapheneOS may be a problem. I have used the mlkit subject segmentation library on this thing, in case that is relevant

I was on the aicore beta to use the nano edge sdk on a different phone. I never got the nano edge sdk to work on this one.

I tried the release aicore right before submitting this report and it also didn't work, but I didn't give that one several hours. I'll try again

abaker avatar May 24 '25 05:05 abaker

This GenAI SDK is powered by the same model and pipeline as the nano edge sdk. Unfortunately, if that never worked on GrapheneOS, ML Kit GenAI SDK is unlikely too.

ai-plays avatar May 27 '25 17:05 ai-plays

I dont have physical device in hand, But using real devices from Browser Stack. For me, it didnt work after using release version of AICore. I will try rebooting device

hassanabidpk avatar May 28 '25 04:05 hassanabidpk

Hi hassanabidpk, unless you are also using GrapheneOS, could you file a separate issue and provide more details about what error you get? Also things like (network connection, OS level, device model, stacktrace....).

ai-plays avatar May 28 '25 20:05 ai-plays