Skip to content

Risky loader baseline: record the float8 training precision fallback - #16428

Merged
danielhanchen merged 1 commit into
mainfrom
risky-loader-baseline-precision
Nov 1, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
risky-loader-baseline-precision

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Source lint's "No new risky loader call sites" step fails on every PR based on current main. #16413 shows it, a frontend-only PR:

1 risky loader call site(s) not in the baseline:

  unsloth/models/float8_training.py:29  [dynamic-import] spec_from_file_location

#16387 (0bfae01738, "Add unsloth.precision") added _load_precision() to unsloth/models/float8_training.py. It imports unsloth.precision. When the file is loaded on its own, as the gloo test workers do by path without the unsloth package, it falls back to spec_from_file_location on unsloth/precision/__init__.py in the sibling directory. The path is built from __file__ and a constant, not from any input, so it is safe. It just was not recorded.

Change

python scripts/lint_risky_loaders.py --update, as the step asks, then the new entry's REVIEW ME replaced with why it is safe. The diff adds that one entry and changes nothing else in the baseline.

Testing

  • python scripts/lint_risky_loaders.py: exit 1 on main with the finding above; here, ok: 116 risky loader call site(s), all recorded.
  • tests/security/test_lint_risky_loaders.py: 46 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T20:18:08.131783Z 10839ae 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. Can't wait for the next one!

Reviewed commit: 10839aea80

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

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