Repository navigation
Load the real loader_utils helpers into the precision conflict test harness - #14545
Conversation
|
@codex review |
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. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
|
Codex Review: Didn't find any major issues. 🎉 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". |
Repo tests (CPU, rest) is red on main since #14516: 7 cases in
tests/test_optimized_precision_conflicts.pyfail withThe product is fine:
loader.pyimports the helper from.loader_utils. The test rebuildsFastLanguageModel.from_pretrainedfrom source inside a hand-written namespace of stubs, and #14516 added a call that namespace did not have. Seen on #14538's run (job 119354809171).Change
Instead of adding one more stub, the fixture now also loads the real definitions of the
.loader_utilsfunctions thatloader.pyimports andfrom_pretrainedreferences, for any name it does not already stub. They are compiled with postponed annotations so signatures such asUnion[...]do not need their typing imports. Existing stubs win, so every current fixture behaves as before; the next helper a PR adds to that import list is picked up without touching this test.For these fixtures the real
_fp8_dequantize_quantization_configsees a config with noquantization_configand returns None, which is exactly what a non-fp8 checkpoint does.Testing
_fp8_dequantize_quantization_configraise fails the same 7 cases with that error, so they run the real helper rather than a stub.