<story><title>Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser</title><url>https://twitter.com/rauchg/status/1806385778064564622</url></story><parent_chain><item><author>simonw</author><text>If this is the API that Google are going with here:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    const model = await window.ai.createTextSession();
    const result = await model.prompt(&amp;quot;3 names for a pet pelican&amp;quot;);
&lt;/code&gt;&lt;/pre&gt;
There&amp;#x27;s a VERY obvious flaw: is there really no way to specify the model to use?&lt;p&gt;Are we expecting that Gemini Nano will be the one true model, forever supported by this API baked into the world&amp;#x27;s most popular browser?&lt;p&gt;Given the rate at which models are improving that would be ludicrous. But... if the browser model is being invisibly upgraded, how are we supposed to test out prompts and expect them to continue working without modifications against whatever future versions of the bundled model show up?&lt;p&gt;Something like this would at least give us a fighting chance:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    const supportedModels = await window.ai.getSupportedModels();
    if (supportedModels.includes(&amp;quot;gemini-nano:0.4&amp;quot;)) {
        const model = await window.ai.createTextSession(&amp;quot;gemini-nano:0.4&amp;quot;);
        &amp;#x2F;&amp;#x2F; ...&lt;/code&gt;&lt;/pre&gt;</text></item></parent_chain><comment><author>pmg0</author><text>&amp;gt; But... if the browser model is being invisibly upgraded, how are we supposed to test out prompts and expect them to continue working without modifications against whatever future versions of the bundled model show up?&lt;p&gt;Pinning the design of a language model task against checkpoint with known functionality is critical to really support building cool and consistent features on top of it&lt;p&gt;However the alternative to an invisibly evolving model is deploying an innumerable number of base models and versions, which web pages would be free to select from. This would rapidly explode the long tail of models which users would need to fetch and store locally to use their web pages, eg HF&amp;#x27;s long tail of LoRA fine tunes all combinations of datasets &amp;amp; foundation models. How many foundation model + LoRAs can people store and run locally?&lt;p&gt;So it makes some sense for google to deploy a single model which they believe strikes a balance in the size&amp;#x2F;latency and quality space. They are likely looking for developers to build out on their platform first, bringing features to their browser first and directing usage towards their models. The most useful fuel to steer the training of these models is knowing what clients use it for</text></comment>
<story><title>Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser</title><url>https://twitter.com/rauchg/status/1806385778064564622</url></story><parent_chain><item><author>simonw</author><text>If this is the API that Google are going with here:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    const model = await window.ai.createTextSession();
    const result = await model.prompt(&amp;quot;3 names for a pet pelican&amp;quot;);
&lt;/code&gt;&lt;/pre&gt;
There&amp;#x27;s a VERY obvious flaw: is there really no way to specify the model to use?&lt;p&gt;Are we expecting that Gemini Nano will be the one true model, forever supported by this API baked into the world&amp;#x27;s most popular browser?&lt;p&gt;Given the rate at which models are improving that would be ludicrous. But... if the browser model is being invisibly upgraded, how are we supposed to test out prompts and expect them to continue working without modifications against whatever future versions of the bundled model show up?&lt;p&gt;Something like this would at least give us a fighting chance:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    const supportedModels = await window.ai.getSupportedModels();
    if (supportedModels.includes(&amp;quot;gemini-nano:0.4&amp;quot;)) {
        const model = await window.ai.createTextSession(&amp;quot;gemini-nano:0.4&amp;quot;);
        &amp;#x2F;&amp;#x2F; ...&lt;/code&gt;&lt;/pre&gt;</text></item></parent_chain><comment><author>j10u</author><text>I&amp;#x27;m pretty sure that with time, they will be forced to let users choose the model. Just like it happened with the search engine...</text></comment>