Skip to content

Expect Dense (bf16) after a declined encoder precision - #11580

Merged
danielhanchen merged 1 commit into
mainfrom
fix/declined-encoder-shows-dense
Sep 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/declined-encoder-shows-dense

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Chat UI Tests (extra) fails in tests/studio/playwright_image_text_encoder.py on the PW_DECLINE=1 leg. It shows on main plus any PR; for example, it is the only remaining failure on the staging run of #11575:

File "tests/studio/playwright_image_text_encoder.py", line 210, in main
    expect(encoder).to_have_text("Default")
AssertionError: Locator expected to have text 'Default'
Actual value: Dense (bf16)

In that leg the stub backend declines the requested precision and reports text_encoder_quant = "off": the dense encoder ran. #11539 changed how the select reads that, on purpose (images-page.tsx):

// It maps to Dense, NOT to Default: ... reaching here with "off" means dense was pinned or a
// scheme was declined. Folding it into Default would snap a pinned Dense back to Default ...
(o) => o === v || (o === "none" && v === "off"),

Once a family default can pick a scheme on its own (Qwen-Image-2.1's hosted FP8 encoder), "Default" no longer means dense. "Dense (bf16)" is the option that describes what ran. The driver's own rule for this leg is "the select must show what RAN", so the assertion is what is stale, not the page. #11539's Chat UI legs were cancelled, so this never ran against it.

Verification

Against a local Studio built from main:

Run Result
PW_DECLINE=1, driver from main fails: expected Default, actual Dense (bf16)
PW_DECLINE=1, this change Passed: a declined encoder precision reseeds to Dense (bf16)
applied leg (no decline), this change passes, unchanged
sabotage: frontend mapping put back to o === "auto" && v === "off", rebuilt, this change fails: expected Dense (bf16)

Chat UI Tests (extra) fails the declined leg of
playwright_image_text_encoder.py on main: the select reads Dense (bf16) where
the driver expects Default. #11539, whose own Chat UI legs were cancelled, made
that change on purpose: once a family default can pick a scheme, Default no
longer means dense, so an engaged "off" maps to the Dense option. The
driver's own rule is that the select shows what ran, and a decline runs the
dense encoder.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T19:11:54.310613Z 19b757b 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 19b757baa6

ℹ️ 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 d5dc3ff into main Sep 22, 2026
20 of 23 checks passed
@danielhanchen
danielhanchen deleted the fix/declined-encoder-shows-dense branch September 22, 2026 19:40
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
Chat UI Tests (extra) fails the declined leg of
playwright_image_text_encoder.py on main: the select reads Dense (bf16) where
the driver expects Default. unslothai#11539, whose own Chat UI legs were cancelled, made
that change on purpose: once a family default can pick a scheme, Default no
longer means dense, so an engaged "off" maps to the Dense option. The
driver's own rule is that the select shows what ran, and a decline runs the
dense encoder.
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