Skill / SKILL.md

Torch Xpu Run

intel/skills

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.
2 views 34 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/intel/skills' skill-source

Use the complete skill-source/skills/torch-xpu-run directory with your client’s skill installer.

Source directory skills/torch-xpu-run

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
a87b5dade8867f1dce9012023745a5373019e890c88ed3f9019f5bb9081e9d96
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills