Repository navigation
Tests: allow the zoo's padded logits row stride in the fused linear adapter check - #15803
Merged
Merged
Conversation
…dapter check unslothai/unsloth-zoo#2190 pads the forward statistics buffer's row stride to a multiple of 16 so the no-grad and trainable-head paths agree bitwise. test_adapter_bounds_its_logits_buffer_by_chunk_size pinned the buffer to exactly n * v * 4 and fails in Repo tests (CPU, studio) against zoo main. It now reads the pad from the zoo (_FWD_PAD, 1 when absent).
Member
Author
|
@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. |
|
Codex Review: Didn't find any major issues. Swish! 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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Repo tests (CPU, studio)fails against unsloth-zoomain(seen on #15795; 4 failed, 9862 passed) since unslothai/unsloth-zoo#2190 landed:unslothai/unsloth-zoo#2190 pads the fused linear forward statistics buffer's row stride to a multiple of 16 (
_FWD_PAD = 16), so Triton keeps its divisibility-by-16 specialisation and the no-grad and trainable-head statistics agree bitwise for vocab sizes not divisible by 16. With the test'sV = 1000the one uncapped[N, V]buffer is now64 x 1008 x 4 = 258048bytes instead of256000. The zoo change is intentional; the test pinned the unpadded size.Change
The "TRL's default tile is bigger, so no row cap" check still requires
max_rows_per_chunk is Noneand a single[N, V]buffer, but sizesVwith the zoo's own pad:getattr(fused_linear, "_FWD_PAD", 1), rounded up. Against a zoo without #2190 the pad is 1 and the check is exactly the old one.Testing
tests/python/test_fused_linear_trl_routes.pywithunsloth_zooon the path:main(cd630187): 4 failed on main, 37 passed with this change.AttributeError: 'HybridCache' object has no attribute 'float'#2190 (cd630187~1): 37 passed with this change, so the zoo floor is unaffected._paddedround to 64 while_FWD_PADstays 16 (a buffer wider than the zoo says it pads) fails all four cases again.