Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions aphrodite/lora/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def _get_lora_device(base_layer: nn.Module) -> torch.device:
# MoE GPTQ/AWQ/GGUF
elif hasattr(base_layer, "w2_qweight"):
return base_layer.w2_qweight.device
# EXL3 (exllamav3) — CUDA-only; tensors are placed on the current device
# in Exl3LinearMethod.process_weights_after_loading.
elif hasattr(base_layer, "trellis"):
return torch.device("cuda", torch.accelerator.current_device_index())
else:
raise ValueError(f"Unsupported base layer: {base_layer}")

Expand Down
Loading