[XPU][DOCKER] update dockerfile.xpu after main repo updating to pt2.11 (#3393)

Signed-off-by: Chendi Xue <chendi.xue@intel.com>
This commit is contained in:
Chendi.Xue authored and GitHub committed 2026-05-07 06:45:30 +08:00
1 parent 56ca5d9a8f
commit 2856ff7aea
2 files changed
+33 -22

No files matched your search

@@ -76,10 +76,14 @@ class SequentialOffloadHook(ModelHook):
if param.device.type == "cpu":
return
# XPU's allocator doesn't respect stream dependencies in empty_cache,
# so non-blocking copies can race with cache eviction. Use blocking
# copies on XPU to avoid NULL pointer errors during DMA.
non_blocking = not self.use_hsdp and not current_omni_platform.is_xpu()
self._move_params(
module,
torch.device("cpu"),
non_blocking=not self.use_hsdp,
non_blocking=non_blocking,
pin_memory=self.pin_memory,
)
current_omni_platform.empty_cache()