Torch Xpu Run

Run an arbitrary Hugging Face safetensors model on an Intel GPU using **upstream PyTorch** (>= 2.8) with the built-in `torch.xpu` device. Covers loading from the Hub, picking the right dtype, autocast, multi-GPU with accelerate's `device_map`, and the CUDA -> XPU code translation a user has to do once. Use for the Transformers / Accelerate / Diffusers path. Not for OpenAI-compatible serving (use vllm-xpu-run); explicitly not via intel-extension-for-pytorch (ipex) or ipex-llm — those paths are end-of-life and upstream PyTorch supersedes them.

intel 14fcfb8 2 files · 13.3 KB Updated

File contents

intel/gpu-ai-skills/tree/main/plugins/intel-gpu-ai-skills/skills/torch-xpu-run commit 14fcfb883b

Frequently asked questions

npx skillmds@latest add intel/torch-xpu-run