File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
vllm/model_executor/layers/mamba/ops Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -476,15 +476,8 @@ def _chunk_scan_fwd(
476
476
# with initial states, we need to take care of how
477
477
# seq_idx crosses the boundaries
478
478
assert batch == 1 , "chunk scan only supports initial states with batch 1"
479
-
480
- if initial_states .shape [0 ] == 1 :
481
- # no in this case no point to use initial states
482
- initial_states = None
483
- else :
484
- assert chunk_indices is not None and chunk_offsets is not None , \
485
- (
486
- "chunk_indices and chunk_offsets should have been set"
487
- )
479
+ assert chunk_indices is not None and chunk_offsets is not None , \
480
+ "chunk_indices and chunk_offsets should have been set"
488
481
else :
489
482
chunk_indices , chunk_offsets = None , None
490
483
else :
You can’t perform that action at this time.
0 commit comments