Skip to content
Open
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions src/llmcompressor/pipelines/sequential/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ def dispatch_for_sequential(model: PreTrainedModel) -> PreTrainedModel:

if torch.cuda.is_available():
offloaded_dispatch(model, execution_device=torch.device("cuda:0"))
elif torch.npu.is_available():
offloaded_dispatch(model, execution_device=torch.device("npu:0"))
elif hasattr(torch, "xpu") and torch.xpu.is_available():
offloaded_dispatch(model, execution_device=torch.device("xpu:0"))
else:
Expand Down