[None][fix] Align dense Qwen3.5-VL SSM cache dtype test with #16065 semantics - #16264
Conversation
Signed-off-by: Michal Guzek <mguzek@nvidia.com>
|
/bot run |
📝 WalkthroughWalkthroughThe dense Qwen3.5-VL Mamba SSM cache dtype test now expects automatic resolution to ChangesQwen3.5-VL Mamba cache dtype validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py (1)
160-163: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winConsider asserting
extract_mamba_kv_cache_paramsfor the explicit float32 path too.The auto path verifies both
quant_config.mamba_ssm_cache_dtypeand the downstreamextract_mamba_kv_cache_params(...).mamba_ssm_cache_dtype(lines 153-158), but the explicit"float32"opt-in path only assertsquant_config.mamba_ssm_cache_dtype. For symmetry and to catch regressions in_coerce_torch_dtypehandling oftorch.float32on the extraction side, consider adding the same extraction-path check here.🧪 Proposed addition
opt_in_config = ModelConfig(pretrained_config=config) validate_and_set_mamba_ssm_cache_dtype(opt_in_config, "float32") assert opt_in_config.quant_config.mamba_ssm_cache_dtype is torch.float32 + + opt_in_mamba_params = extract_mamba_kv_cache_params( + config.text_config, + quant_config=opt_in_config.quant_config, + ) + assert opt_in_mamba_params.mamba_ssm_cache_dtype is torch.float32As per path instructions for
tests/**, coverage here is largely sufficient but this symmetric check would close a small gap.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py` around lines 160 - 163, Extend the explicit float32 opt-in test around validate_and_set_mamba_ssm_cache_dtype to also call extract_mamba_kv_cache_params and assert its mamba_ssm_cache_dtype is torch.float32, matching the existing auto-path coverage and validating downstream dtype coercion.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py`:
- Around line 160-163: Extend the explicit float32 opt-in test around
validate_and_set_mamba_ssm_cache_dtype to also call
extract_mamba_kv_cache_params and assert its mamba_ssm_cache_dtype is
torch.float32, matching the existing auto-path coverage and validating
downstream dtype coercion.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: a416c4de-da88-4d0b-bd4a-88184eed1ddc
📒 Files selected for processing (1)
tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py
|
PR_Github #58719 [ run ] triggered by Bot. Commit: |
|
PR_Github #58719 [ run ] completed with state |
Summary by CodeRabbit
Description
Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.