mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-05 10:04:00 +08:00
parent
dc4aea677a
commit
21906a6f50
@ -39,6 +39,9 @@ def _get_lora_device(base_layer: nn.Module) -> torch.device:
|
||||
# unquantizedLinear
|
||||
if hasattr(base_layer, "weight"):
|
||||
return base_layer.weight.device
|
||||
# Compressed Tensor
|
||||
elif hasattr(base_layer, "weight_packed"):
|
||||
return base_layer.weight_packed.device
|
||||
# GPTQ/AWQ
|
||||
elif hasattr(base_layer, "qweight"):
|
||||
return base_layer.qweight.device
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user