[None][feat] Disable mamba replay by default#14439
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR contains two independent fixes: ensuring the Mamba state tensor is contiguous before CUDA operations and updating the default Mamba replay configuration from enabled to disabled. ChangesMamba State Update Tensor Contiguity
Mamba Replay Default Behavior
🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
5586966 to
02139aa
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #49853 [ run ] triggered by Bot. Commit: |
| # (CppMambaHybridCacheManager) packs SSM + conv state into each block, giving | ||
| # `ssm_states` a non-contiguous batch stride. Stage through a contiguous copy | ||
| # and write the updated slots back when the kernel mutates the state. | ||
| state_in = state if state.is_contiguous() else state.contiguous() |
There was a problem hiding this comment.
Nit: isn't contiguous() a no-op if it already is contiguous? https://docs.pytorch.org/docs/2.12/generated/torch.Tensor.contiguous.html
Summary by CodeRabbit
Bug Fixes
Chores
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.