main
py 16 lines 408 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
4 from pydantic import BaseModel, Field
5
6
7 class LoadLoRAAdapterRequest(BaseModel):
8 lora_name: str
9 lora_path: str
10 load_inplace: bool = False
11 is_3d_lora_weight: bool = False
12
13
14 class UnloadLoRAAdapterRequest(BaseModel):
15 lora_name: str
16 lora_int_id: int | None = Field(default=None)