WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

LanguageModel.GetReadyState() takes 20 to over 100 seconds to run on Intel

Open jonathankhootek opened this issue 9 months ago • 1 comments

Describe the bug

I've filed feedback https://aka.ms/AAwhb0j -- but in case anyone knows if this is an easily fixable problem.

i have a new surface laptop for business 7 and using Phi Silica is really sluggish to start up. this is seen in the AI Dev Gallery (just trying to start a text generation task -- AI APIs --> click Phi Silica, and it looks like it is stuck) and using the exported Phi Silica solution, untouched except for adding a stopwatch.

running it three times, it's taken ~110 seconds, ~20 seconds, and ~60 seconds.

Steps to reproduce the bug

    var stopwatch = Stopwatch.StartNew();
    var readyState = LanguageModel.GetReadyState();
    stopwatch.Stop();
    Debug.WriteLine($"LanguageModel.GetReadyState() took {stopwatch.ElapsedMilliseconds} ms");

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

WindowsAppSDK 1.8experimental2, Windows build 26120.4161, no more updates available in Windows Update

jonathankhootek avatar Jun 02 '25 18:06 jonathankhootek

oh, i should note this seems to be ok on my Qualcomm device (Surface Pro 11)

jonathankhootek avatar Jun 02 '25 18:06 jonathankhootek

Thank you for sharing this feedback. We are looking into performance improvements.

kaysabelle avatar Jun 26 '25 18:06 kaysabelle