Issues with model download when testing under origin trials

185 views
Skip to first unread message

Rishi Gorantala

unread,
Dec 10, 2024, 3:14:33 PM12/10/24
to Chrome Built-in AI Early Preview Program Discussions
Hello folks! 

I have a Chrome extension that works fine with origin trials (chrome.aiOriginTrial) namespace API. However, before submitting updates to publish on Chrome store I wanted to test it out (i.e., trying to simulate experience of a new user) if it works without enabling the 2 flags. So I flipped the following two flags back to Default:
  1. Prompt API for Gemini Nano
  2. Enables optimization guide on device
I restarted by Chrome, and re-installed my extension unpacked to see if it works now, but the model is always stuck at 'after-download' as per console logs
1.jpg

I have the following code to log the progress but I see nothing in console:
const session = await chrome.aiOriginTrial.languageModel.create({
  monitor(m) {
    m.addEventListener("downloadprogress", e => {
      console.log(`Downloaded ${e.loaded} of ${e.total} bytes.`);
    });
  }
});

In order to ensure it's not an issue with my extension, I built and installed the sample from the team but I notice the same issue there.
2.jpg
I reinstalled Chrome, tried on Chrome Canary but have the same issue everywhere. The Optimization Guide On Device Model under Chrome://components says up-to-date. I have over 140 GB free space, and waited for a long time to see if there's any progress but no luck.

Versions:
Chrome: Version 131.0.6778.109 (Official Build) (arm64)
Chrome Canary: Version 133.0.6887.0 (Official Build) canary (arm64)

What am I missing? Or is it a bug? Thanks!


Thomas Steiner

unread,
Dec 11, 2024, 6:38:50 AM12/11/24
to Rishi Gorantala, Chrome Built-in AI Early Preview Program Discussions
Hi Rishi,

Could it be that you're on a slow network, or have enabled data saver mode? Also, the model won't download on metered connections, like when tethered to a phone. 

Cheers,
Tom

--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/93a46e23-99f8-400f-98e2-41156d52796en%40chromium.org.


--
Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Germany GmbH, ABC-Str. 19, 20354 Hamburg, Germany
Geschäftsführer: Paul Manicle, Liana Sebastian
Registergericht und -nummer: Hamburg, HRB 86891

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.3 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----

Rishi Gorantala

unread,
Dec 11, 2024, 9:10:16 AM12/11/24
to Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Hi Thomas! It's my home wifi network -- the same one where I did all dev/tests and the model downloaded fine before.

Any way to force kick/offload the model to see if there's any edge case here? Thanks!
--
Regards,
-rishi

Thomas Steiner

unread,
Dec 11, 2024, 10:02:42 AM12/11/24
to Rishi Gorantala, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Hey again,

Hmm, strange. And you said it worked fine before, right. Maybe file a Chrome bug with the exact steps you took and we can investigate. Thanks!

Cheers,
Tom

Rishi Gorantala

unread,
Dec 11, 2024, 11:18:36 AM12/11/24
to Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
--
Regards,
-rishi

Thomas Steiner

unread,
Dec 11, 2024, 1:24:03 PM12/11/24
to Rishi Gorantala, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Thank you. Added a few folks and triaged this to a closer component. 

Cheers,
Tom

Rishi Gorantala

unread,
Dec 20, 2024, 11:19:54 AM12/20/24
to Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Hi there! Just checking in to see if someone had a chance to look into this. Or is it safe to assume this will be looked into after holidays? Thanks!
Message has been deleted

Mehrdad Gharibi

unread,
Jan 14, 2025, 9:23:46 AM1/14/25
to Chrome Built-in AI Early Preview Program Discussions, Rishi Gorantala, Chrome Built-in AI Early Preview Program Discussions

I think the problem is because your network is slow

Rishi Gorantala

unread,
Jan 14, 2025, 12:38:44 PM1/14/25
to Chrome Built-in AI Early Preview Program Discussions, Mehrdad Gharibi, Rishi Gorantala, Chrome Built-in AI Early Preview Program Discussions
Mehrdad: Thanks! Checked for that already (details in thread above).
Reply all
Reply to author
Forward
0 new messages