[Core] Fix scheduler considering "no LoRA" as "LoRA" (#4897)

This commit is contained in:
Antoni Baum 2024-05-20 17:48:32 -07:00 committed by GitHub
parent c3af44722c
commit 65ae8c2c8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -744,8 +744,8 @@ class Scheduler:
budget.add_num_seqs(seq_group.request_id,
seq_group.get_max_num_running_seqs())
curr_loras = set(
seq_group.lora_int_id
for seq_group in self.running) if self.lora_enabled else None
seq_group.lora_int_id for seq_group in self.running
if seq_group.lora_int_id > 0) if self.lora_enabled else None
remaining_waiting, prefills = (self.waiting,
SchedulerPrefillOutputs.create_empty())