Draft
Conversation
f876cb6 to
d3c4615
Compare
d3c4615 to
c2a20af
Compare
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.
Description
Enable Structured Sparsity in Qwix:
get_fp8_full_qwix_rule_w_sparsityinquantizations.pyto configure N:M sparsity (N, M, and update steps) viaadditional_qt_config.Support Non-Differentiable State (
batch_stats):loss_fn,train_step, andeval_stepintrain.pyto accept and passbatch_stats.{"params": params, "batch_stats": sparsity_state}.train_stepfilters gradients so that they are only applied to differentiable parameters, whilebatch_statsare updated from the model's auxiliary outputs.Safe Partial Checkpoint Loading:
setup_initial_stateinmaxtext_utils.pyto intelligently merge loaded parameters. It now ignoresjax.ShapeDtypeStructplaceholders (which indicate un-loaded variables) and falls back to initialized parameters.Tests
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.