Skip to content

Studio NPU: name a refused FastFlowLM DLL when Enable fails, instead of an empty reason - #18648

Merged
oobabooga merged 1 commit into
unslothai:mainfrom
oobabooga:studio-npu-silent-refusal
Nov 20, 2026
Merged

oobabooga merged 1 commit into
unslothai:mainfrom
oobabooga:studio-npu-silent-refusal

Conversation

@oobabooga

Copy link
Copy Markdown
Member

Problem: On Windows, when Smart App Control or an App Control policy refuses one of FastFlowLM's DLLs, flm.exe exits with 0xC0E90002 and prints nothing. Since #18554, Enable NPU then fails with "Installing FastFlowLM failed: FastFlowLM does not run:" and no reason.

Change: flm_host.py reports the exit code when flm prints nothing. Enable recognizes the code integrity status in that error and shows the message Studio already uses for these blocks, which names the blocked folder.

Status: Tested on the AMD DevLab Windows runner (Strix Halo), main against this branch, with flm.exe replaced by a stub that exits 0xC0E90002 without output.

Before and after

Details

  • flm_host.py: Flm.run turns a failed run with no output into [ERROR] exit code N (0xC0E90002).
  • npu_backend.py: when FastFlowLM's install check fails, the reason goes through the existing _blocked_message. Any other failure keeps "Installing FastFlowLM failed: ...".
  • Loading a model already explained a silent refusal through _explain, so the load path is unchanged. A test now covers it.

Not covered

The runner has Smart App Control off, so the refusal comes from the stub, not from a real policy. The exit status and the empty output match what #18549 recorded on a machine with Smart App Control on.

Testing

  • New tests for the install message, an ordinary install failure, the load message, and the exit code text. The install-message and exit-code tests fail on main.
  • NPU backend suites: 729 passed, 1 skipped.

@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-20T16:33:26.256135Z 7fc3708 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.

@oobabooga

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 7fc3708b4e

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

@oobabooga
oobabooga merged commit 7b1ab41 into unslothai:main Nov 20, 2026
@oobabooga
oobabooga deleted the studio-npu-silent-refusal branch November 20, 2026 19:35
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