Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Jan 11, 2024
1 parent 756b09f commit 09ef5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python/run_llama_batched_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _prepare_eval_queries(
if sliding_window:
seq_lens.append(min(num_past_tokens + num_queries, sliding_window))
num_past = min(num_past_tokens, sliding_window)
past_slot_mapping += all_slot_mappings[request_id][num_past:]
past_slot_mapping += all_slot_mappings[request_id][:num_past]
slot_mapping += all_slot_mappings[request_id][num_past: num_past + num_queries]
else:
seq_lens.append(num_past_tokens + num_queries)
Expand Down

0 comments on commit 09ef5b3

Please sign in to comment.