Repository navigation
Conversation
…ositional and softcapped calls
…and keep the overflow guard and counters out of grad mode and tracing
… and hand a refusing torch varlen back to sdpa
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 727018e5ff
ℹ️ 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".
| pass | ||
| setattr(_sdpa_packed_varlen, _FLAG, True) | ||
| # Direct assignment: register() does not update the mapping layers read. | ||
| ALL_ATTENTION_FUNCTIONS["sdpa"] = _sdpa_packed_varlen |
There was a problem hiding this comment.
Register the wrapper in the class-level attention mapping
For models such as Doge that construct their own AttentionInterface, Transformers resolves sdpa from the class mapping rather than this shared instance. This assignment updates only ALL_ATTENTION_FUNCTIONS; the existing flex patch updates both mappings specifically for that case (unsloth/models/_utils.py:900-909). As a result, packed forwards on those models retain the original dense SDPA function and never use this varlen path. Register the wrapper through type(ALL_ATTENTION_FUNCTIONS).register("sdpa", ...) as well.
Useful? React with 👍 / 👎.
Staging-only CI validation for unslothai#13234.
This PR exists only to run fork GitHub Actions checks and should be closed after validation.