The model was available but there was not an execution config available for the feature

634 views
Skip to first unread message

Robert Oschler

unread,
Nov 2, 2024, 11:14:41 AM11/2/24
to Chrome Built-in AI Early Preview Program Discussions
I am now at the point that I have the same error as another in this group reported.  When I try to run the Summarization playground I get the error:

The Summarization API is available, but your device is unable to run it. Check device requirements in the Early Preview Program documentation.

And in the DevTools console I see:

"The model was available but there was not an execution config available for the feature."

In that other thread the solution is supposed to be to just wait a day and that the preview library will fetch the execution config and start working.  But it is now the next day and I still have the same problem.  Unfortunately I am dead stopped when it comes to creating my contest entry, so this is more troublesome then it normally would be.  I have done the "readily" test and I do get that response so it's down to this current problem, which unfortunately is a show stopper.

Is there anything I can do to try and fix this?


Robert Oschler

unread,
Nov 3, 2024, 6:25:38 AM11/3/24
to Chrome Built-in AI Early Preview Program Discussions, Robert Oschler
Some more data.  I was plinking around with DevTools in the Canary build, and despite the fact that 2 days after successfully downloading the optimization guide I still can't run the Summarization API Playground, the summarizer API does appear to be available.  Below is a record of my plinking and as you can see, I can call the summarizer API and execute a successful (albeit silly) summarization:

await summarizer.summarize('The great big house.');
`* The text describes a large, imposing house.\n* The house is described as "great big."\n* The text focuses on the house's size and scale. \n* The lack of further details suggests that the text might be a title or a brief description of the house's overall presence.`


But as you can also see, "ai.assistant" is undefined:

const session = await ai.assistant.create();
VM61:1 Uncaught TypeError: Cannot read properties of undefined (reading 'create')
    at <anonymous>:1:36
(anonymous) @ VM61:1


Here is the full plinking session, in case it helps:

summarization-api-playground/:1 The model was available but there was not an execution config available for the feature.Understand this warningAI
/vite.svg:1
       
       
       Failed to load resource: the server responded with a status of 404 ()Understand this errorAI
await window.ai.createTextSession()
VM13:1 Uncaught TypeError: window.ai.createTextSession is not a function
    at <anonymous>:1:17
(anonymous) @ VM13:1Understand this errorAI
 (await ai.languageModel.capabilities()).available;
'readily'
await ai.languageModel.create();
AILanguageModel {maxTokens: 4096, tokensSoFar: 0, tokensLeft: 4096, topK: 3, temperature: 1}maxTokens: 4096temperature: 1tokensLeft: 4096tokensSoFar: 0topK: 3[[Prototype]]: AILanguageModel
await window.ai.createTextSession()
VM29:1 Uncaught TypeError: window.ai.createTextSession is not a function
    at <anonymous>:1:17
(anonymous) @ VM29:1Understand this errorAI
const session = await ai.assistant.create();
VM61:1 Uncaught TypeError: Cannot read properties of undefined (reading 'create')
    at <anonymous>:1:36
(anonymous) @ VM61:1Understand this errorAI
await window.ai.summarizer
AISummarizerFactory {}[[Prototype]]: AISummarizerFactory
await window.ai.summarizer()
VM136:1 Uncaught TypeError: window.ai.summarizer is not a function
    at <anonymous>:1:17
(anonymous) @ VM136:1Understand this errorAI
await window.ai.summarizer.create()
AISummarizer {sharedContext: '', type: 'key-points', format: 'markdown', length: 'medium'}format: "markdown"length: "medium"sharedContext: ""type: "key-points"[[Prototype]]: AISummarizer
const summarizer = await window.ai.summarizer.create()
undefined
summarizer
AISummarizer {sharedContext: '', type: 'key-points', format: 'markdown', length: 'medium'}
summarizer.summarize('The great big house.')
Promise {<pending>}
await summarizer.summarize('The great big house.')
`* The text describes a large, imposing house.\n* The house is described as "great big."\n* The text focuses on the house's size and scale. \n* The lack of further details suggests that the text might be a title or a brief description of the house's overall presence.`

Robert Oschler

unread,
Nov 3, 2024, 6:37:29 AM11/3/24
to Chrome Built-in AI Early Preview Program Discussions, Robert Oschler
So overall it looks like I can do summarization and use the prompt API, but the Summarizer API Playground, the writer API, and the rewriter API are broken for me.  I double-checked the "components" flags and the writer and rewriter components are definitely  enabled.  They just don't work.  For example:

const writer = await ai.writer.create({
  tone: "formal"
});
const result = await writer.write(
  "A draft for an inquiry to my bank about how to enable wire transfers on my account"
);
VM144:1 Uncaught ReferenceError: writer is not defined
    at <anonymous>:1:16
(anonymous) @ VM144:1

Tang Hoong

unread,
Nov 3, 2024, 11:12:06 AM11/3/24
to Chrome Built-in AI Early Preview Program Discussions, Robert Oschler


        writer = await window.ai.writer.create({
          tone: "formal"
        });

const result = await writer.write(prompt);

Hi Robert, 

you mind to try add the "window.ai.writer.create({...})" to you code and try again.

Regards.

Robert Oschler

unread,
Nov 3, 2024, 3:56:02 PM11/3/24
to Chrome Built-in AI Early Preview Program Discussions, Tang Hoong, Robert Oschler
Hi Tang,

No luck.  Here's the console messages:


  writer = await window.ai.writer.create({
          tone: "formal"
        });
ogads-pa.googleapis.com/$rpc/google.internal.onegoogle.asyncdata.v1.AsyncDataService/GetAsyncData:1
       Failed to load resource: net::ERR_NAME_NOT_RESOLVEDUnderstand this errorAI

const result = await writer.write(prompt);
VM46:1 Uncaught ReferenceError: writer is not defined
    at <anonymous>:1:16

Robert Oschler

unread,
Nov 3, 2024, 10:37:44 PM11/3/24
to Chrome Built-in AI Early Preview Program Discussions, Tang Hoong, Robert Oschler
Interesting development.  I got a notice to relaunch (Canary) Chrome to day.  After doing it.  The Summarization API Playground for the first time works!  Unfortunately,  I reran you "writer" test and that still fails as before.


writer = await window.ai.writer.create({
          tone: "formal"
        });
const result = await writer.write(prompt);
VM47:1 Uncaught ReferenceError: writer is not defined
    at <anonymous>:1:16
(anonymous) @ VM47:1Understand this errorAI

On Sunday, November 3, 2024 at 11:12:06 AM UTC-5 Tang Hoong wrote:

Tang Hoong

unread,
Nov 3, 2024, 10:43:55 PM11/3/24
to Robert Oschler, Chrome Built-in AI Early Preview Program Discussions
I actually also ran into failed on Chrome Canary and Chrome Dev version, eventually I successfully ran them on regular chrome version 130. But be caution when using on personal account.

Thomas Steiner

unread,
Nov 4, 2024, 4:15:37 AM11/4/24
to Tang Hoong, Robert Oschler, Chrome Built-in AI Early Preview Program Discussions
Hi all,

The Summarization demo should work now if you try the latest version of Canary. The Writer and Rewriter APIs are known to be broken. I'll send an announcement in a moment. 

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/CAKyw_qExmHXVgdKG4jpBi%3DsbD3Ph3UOdz1UFrvAOUoN10PR4dA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages