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.
Summary
BlockManagerpath.Motivation
This PR adds two recurrent model architectures to InfiniLM for NVIDIA GPUs. Mamba2 and RWKV5 do not consume Transformer attention KV blocks; their per-request convolution/SSM or RWKV state is managed independently. The existing generic Transformer KV admission and reservation policy is unchanged. This work is intentionally separate from the KV admission performance work in PR 590.
Type of Change
feat- new modeltest- model and scheduler coveragedocs- usage and benchmark notesTest Results of Involved Models on Supported Platforms
pytest -q test/models/rwkv5/test_scheduler.py test/models/mamba2/test_scheduler.py: 4 passed.pytest -q test/models/rwkv5/test_adaptation.py test/models/mamba2/test_adaptation.py: 14 passed.INFINILM_RUN_GPU_TESTS=1 pytest -q test/models/rwkv5/test_correctness.py test/models/mamba2/test_correctness.py: 2 passed.Benchmark / Performance Impact
The included raw-token benchmark reports Mamba2 throughput on RTX 4090 D. The scheduler comparison is an architectural ablation for pure recurrent state versus a forced attention-KV path; it does not modify generic KV over-reservation.
Notes for Reviewers
Mamba2currently supports the tested NVIDIA configuration with one scan group; tensor parallelism and graph compilation remain disabled.Checklist