Skip to content

Studio NPU: delete the old lemond once FastFlowLM runs without it - #18658

Merged
danielhanchen merged 1 commit into
mainfrom
npu-remove-lemond
Nov 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
npu-remove-lemond

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Since #18554 Studio runs FastFlowLM directly on Windows and Linux and never starts lemond, but an install that had lemond kept its folder (<studio home>/lemonade/2026.44.1/, lemond plus its DLLs). It is never run, so it does nothing, but it is an unsigned lemond.exe sitting in the Studio folder for no reason.

Changes

  • install_lemonade_prebuilt.py: after the FastFlowLM-only install verifies, delete every lemond version folder, identified by the UNSLOTH_LEMONADE_INFO.json marker the lemond install writes. FastFlowLM, the downloaded models and config/ carry no such marker and are left alone.
  • Each folder is renamed before it is deleted. Windows refuses to rename a folder whose lemond.exe is still running, so a live lemond is left whole and retried on the next Enable. A removal interrupted halfway leaves a .lemond-remove-* folder, which the next run finishes.
  • Nothing is removed when UNSLOTH_NPU_LEMONADE=1 asks for lemond. Turning it back on later downloads lemond again (about 6 MB).

Re-running is a no-op: the second install finds no marked folder.

Testing

  • New tests in test_npu_flm_host.py: an old lemond folder and an interrupted removal are deleted while a downloaded model and config/ stay, a second install changes nothing, and a lemond that cannot be moved is left whole. Both fail on main. FastFlowLM host and NPU backend suites: 119 passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T18:51:21.859153Z ddb3295 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: ddb3295f68

ℹ️ 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".

@danielhanchen
danielhanchen merged commit 3a70d12 into main Nov 20, 2026
@danielhanchen
danielhanchen deleted the npu-remove-lemond branch November 20, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant