test: MambaConfig and varlen helper regression coverage - #1009
Open
Chessing234 wants to merge 3 commits into
Open
test: MambaConfig and varlen helper regression coverage#1009Chessing234 wants to merge 3 commits into
Chessing234 wants to merge 3 commits into
Conversation
Ensure mutable dataclass fields are not shared across instances and that configs survive json encode/decode for save_pretrained compatibility.
Regression guard for varlen Mamba-3 paths where int32 cu_seqlens are required by TileLang kernels.
Cover the pad_vocab_size_multiple rounding applied during LM head construction.
Chessing234
force-pushed
the
test/config-and-model-utils
branch
from
August 5, 2026 10:23
090e4cc to
9ed887a
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.
Summary
MambaConfigmutable defaults are independent and JSON round-trip safe.MambaLMHeadModel.cu_seqlensint32 aftercumsumfor varlen Mamba-3 paths.Test plan
pytest tests/test_config_mamba.py tests/test_varlen_helpers.pyMade with Cursor