Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Aug 27, 2024
1 parent b58465a commit 0f6f8b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swift/llm/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ async def inference_pt_async(request: Union[ChatCompletionRequest, CompletionReq
error_msg = 'GPTQ/AWQ/AQLM model'
else:
error_msg = 'Multimodal model'
assert request.model == 'default-lora', f'{error_msg} only support default-lora'
if request.model != 'default-lora':
return create_error_response(f'{error_msg} only support `default-lora`')
elif request.model != _args.model_type:
adapter_names = None
for lora_req in _args.lora_request_list:
Expand Down

0 comments on commit 0f6f8b6

Please sign in to comment.