mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-31 18:27:05 +08:00
use new request object so that errors dont update request
Signed-off-by: Jackmin801 <ongjackm@gmail.com>
This commit is contained in:
parent
0616d19f8b
commit
0718a782ee
@ -142,14 +142,14 @@ class OpenAIServingModels:
|
||||
return error_check_ret
|
||||
|
||||
lora_path = request.lora_path
|
||||
if lora_name in self.lora_requests:
|
||||
lora_request = self.lora_requests[lora_name]
|
||||
lora_request.lora_path = lora_path
|
||||
else:
|
||||
unique_id = self.lora_id_counter.inc(1)
|
||||
lora_request = LoRARequest(
|
||||
lora_name=lora_name, lora_int_id=unique_id, lora_path=lora_path
|
||||
)
|
||||
lora_int_id = (
|
||||
self.lora_requests[lora_name].lora_int_id
|
||||
if lora_name in self.lora_requests
|
||||
else self.lora_id_counter.inc(1)
|
||||
)
|
||||
lora_request = LoRARequest(
|
||||
lora_name=lora_name, lora_int_id=lora_int_id, lora_path=lora_path
|
||||
)
|
||||
if base_model_name is not None and self.is_base_model(base_model_name):
|
||||
lora_request.base_model_name = base_model_name
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user