Skip to content

Commit

Permalink
Fix FlashInfer + Medusa bug (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtejankar authored Dec 13, 2024
1 parent ea6a62a commit 4d7f468
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/lorax_server/models/flash_causal_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1508,10 +1508,10 @@ def forward(self, batch: FlashCausalLMBatch, adapter_data: AdapterBatchData) ->
if FLASH_INFER:
block_tables = block_tables_to_ragged(
block_tables=block_tables,
input_lengths=batch.input_lengths,
cache_lengths=batch.cache_lengths,
input_lengths_tensor=batch.input_lengths_tensor,
cache_lengths_tensor=batch.cache_lengths_tensor,
input_lengths=input_lengths.tolist(),
cache_lengths=cache_lengths_tensor.tolist(),
input_lengths_tensor=input_lengths,
cache_lengths_tensor=cache_lengths_tensor,
max_current_length=max_s,
)

Expand Down

0 comments on commit 4d7f468

Please sign in to comment.