Fix type mismatch in LoRA batch validation causing assertion failures (#15427)
This commit is contained in:
@@ -192,7 +192,8 @@ class BaseTpWorker(ABC):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def can_run_lora_batch(self, lora_ids: list[str]) -> bool:
|
def can_run_lora_batch(self, lora_ids: list[str]) -> bool:
|
||||||
return self.model_runner.lora_manager.validate_lora_batch(lora_ids)
|
lora_ids_set = set(lora_ids) if isinstance(lora_ids, list) else lora_ids
|
||||||
|
return self.model_runner.lora_manager.validate_lora_batch(lora_ids_set)
|
||||||
|
|
||||||
def forward_batch_embedding(self, model_worker_batch: ModelWorkerBatch):
|
def forward_batch_embedding(self, model_worker_batch: ModelWorkerBatch):
|
||||||
forward_batch = ForwardBatch.init_new(model_worker_batch, self.model_runner)
|
forward_batch = ForwardBatch.init_new(model_worker_batch, self.model_runner)
|
||||||
|
|||||||
Reference in New Issue
Block a user