fix(qwen): preserve checkpoint exports and bound QSA memory - #202
Draft
dingzhiqiang wants to merge 3 commits into
Draft
dingzhiqiang wants to merge 3 commits into
dingzhiqiang wants to merge 3 commits into
Conversation
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.
Qwen PLE tables trained in BF16 must export their updated values without restoring stale FP8 scales. This change preserves trainable-table precision, chunks unpacked QSA scoring to bound workspace memory, and releases consumed PLE backward temporaries earlier.
The bridge also owns Qwen-specific checkpoint validation and export completion through
mcore_bridge.utils.qwen4_exp_checkpoint: validate PLE assets, restore fixed vision weights without overwriting trained text weights, and produce export configuration consistent with MTP. These helpers and their tests move out of AReaL; AReaL retains distributed save coordination and its engine adapter. Integration: areal-project/AReaL#1731.Validation:
tests/test_ple_checkpoint.py tests/test_ple_fp8_scale.py tests/test_qsa_indexer.py -k "not peak_memory"). Peak-memory benchmark excluded to avoid competing with active training.