Repository navigation
Studio: update the NPU runtime, harden its pin updates, and polish the NPU UI - #16834
Conversation
…6.44.1, and show its versions in the Hub
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8e74f9844
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| _request(f"{_API}/repos/{repo}/releases?per_page=30"), timeout = _TIMEOUT_S | ||
| ) as r: | ||
| return json.load(r) | ||
| releases = json.load(r) | ||
| return [r for r in releases if not r.get("draft") and not r.get("prerelease")] |
There was a problem hiding this comment.
Follow pagination when searching for compatible releases
If an upstream publishes 30 prereleases or candidate builds after a compatible stable release that is newer than the pin, that stable release falls onto page 2. This function reads only page 1 and ignores the pagination link, so update_pins() finds no eligible update and incorrectly reports that the pins are current. I reproduced this with a mocked two-page response; supplying the complete release list correctly selected the update. The previous /releases/latest lookup did not lose stable releases behind intervening prereleases. Follow pagination before concluding that no compatible update exists.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 1ef4732: fetch_stable_releases now follows the Link rel="next" pages (100 per page), so stable releases behind candidate prereleases are no longer dropped. Lemonade publishes about three candidates per stable release, so this was reachable once the pin lags. A two-page test covers it, and a live run at 30 per page returned the same 78 stable Lemonade releases over 3 pages.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…++ than Ubuntu 24.04, not just glibc [skip ci]
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e861240aa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| className="pointer-events-auto inline-flex items-center justify-center gap-2 rounded-full bg-popover px-3 py-2 text-ui-13 font-medium text-destructive shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] transition-colors hover:bg-[color-mix(in_srgb,var(--foreground)_8%,var(--popover))] dark:bg-sidebar-accent dark:shadow-none dark:hover:bg-[color-mix(in_srgb,var(--foreground)_8%,var(--sidebar-accent))]" | ||
| title={ejectsAll ? "Eject all models" : "Eject model"} | ||
| data-testid="picker-npu-footer" | ||
| onClick={() => setFormatFilter("npu")} |
There was a problem hiding this comment.
Keep NPU setup reachable when opening the footer during search
On an NPU-capable machine that has not yet enabled the runtime, clicking the new footer advertising Set up the AMD NPU while a search is active preserves the query, so showHfSection stays true. useNpuCatalog supplies models: null until the runtime is ready, making npuBrowseRows empty and showNpuBrowse false. The footer then disappears without rendering NpuSetupNotice, leaving no enable/retry action until the user clears the search. Clear the query for this setup path or render the setup notice independently of matching models.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 1f53195: while the runtime is not ready, the NPU filter keeps the setup notice during a search, so the footer's setup path always lands on the enable action.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
AMD shipped a FastFlowLM fix that Studio users never got: Studio still pinned FastFlowLM v1.0.10 and Lemonade 2026.43.3, because the daily pin update workflow cannot open its pull request in this repository. This PR does four things.
1. Update the NPU runtime
studio/lemonade_prebuilt_pins.json:Users get this with the next Studio release. Their first NPU use after updating upgrades the runtime in place, as on every pin change.
Lemonade stops at 2026.44.1 on purpose. The newest release, 2026.45.3, ships a Linux
lemondthat needs glibc 2.43 and OpenSSL 3.2, so it does not start on Ubuntu 24.04 (glibc 2.39, OpenSSL 3.0).2. Skip pin updates that need a newer glibc
scripts/update_lemonade_pins.pyis what the daily pin update workflow runs to propose new pins. It does not run on users' machines.Hash and size checks still run first, so a bad download is still an error rather than a skip. Run against main's pins, the script now produces exactly this PR's pins file.
3. Show the runtime versions in the UI
A faint
FastFlowLM v1.0.12 · Lemonade v2026.44.1line, shown once the NPU runtime is set up, under the NPU models in the Hub and in the chat model picker (screenshots in section 4). It reads theversionsfield/api/npu/statusalready returns. #13797 removed the "Powered by" line that used to carry these versions.4. List GPU models before NPU models in the chat model picker
The NPU group could not simply move below the Unsloth models: that list loads more models as it is scrolled, about 30 pages and 350 rows on this machine, so the group would sit around 11,000 px down. Search follows the same rule, so NPU matches no longer appear above the GPU results. The On Device tab already lists NPU models after the GPU groups and is unchanged. The Eject model button still floats over the bottom of the list, now just above the footer.
Screenshots: main (
0ab3f0773d) vs this PR at0e1f74712e(d26ae020a3after a rebase that changed only a comment in the frontend), two fresh installs, English locale. This machine has no NPU, so/api/npu/*was mocked as a ready XDNA2 runtime reporting the versions the DevLab runs below reported.Verification
qwen3-0.6b-FLMthen downloaded, loaded and answered a chat request correctly (74 and 81 tok/s).GLIBC_2.43 not found.test_update_lemonade_pins.py,test_install_lemonade_prebuilt.pyandtest_npu_backend.py: 93 passed. The new tests cover the glibc fallback, a release exactly at the limit, all releases too new, candidate tags, ELF-only scanning, and hash checks running before the glibc check.npm run typecheck, and eslint on the changed files. The full node suite has 17 failures in 14 files: the two that read the picker fail the same way with main's picker files, and the other 12 do not reference the picker or NPU code.Not in this PR
lemonade-pins-update.yml(which would also run CI on its PRs).d3-edge-FLM, a Decision model new in FastFlowLM 1.0.12, does not load on either DevLab machine (flm serve d3:edgeexits about a second after it starts). It was not loadable before this PR either, since v1.0.10 does not have it.Maintainer follow-up
scripts/update_lemonade_pins.pynow checks every system library the Linux build links against, not only glibc: a release is skipped if it needs a newer GLIBC, GLIBCXX, CXXABI or OPENSSL symbol version than Ubuntu 24.04 ships (2.39, 3.4.33, 1.3.15, 3.0.9). Lemonade 2026.45.3 needs both GLIBC 2.43 and OPENSSL 3.2.0, so the OpenSSL break alone would have shipped alemondthat cannot start, even if a later build fixed glibc. Run live against main's pins, the script still produces exactly this PR's pins file and logsneeds GLIBC 2.43 > 2.39, OPENSSL 3.2.0 > 3.0.9.qwen3-0.6b-FLMgave the same greedy reply as before, at the same decode speed (Linux 67.9 vs 67.9 tok/s, Windows 65.6 vs 65.4 tok/s).Before (main) / after (this PR), chat model picker,
/api/npu/*mocked as a ready XDNA2 runtime: