Torch Xpu Bench

Benchmark a Hugging Face model on an Intel GPU through pure PyTorch + Transformers, **single-process, no HTTP server**. Measures generate() throughput in tokens/sec, time-to-first-token, decode-step latency, and peak XPU memory. Also covers diffusion and encoder-only models via `references/non-llm-snippets.md`. Use after **model-can-it-fit** to validate predicted memory against `torch.xpu.max_memory_allocated()`.

intel a5af499 3 files · 14.7 KB Updated

File contents

intel/gpu-ai-skills/tree/main/plugins/intel-gpu-ai-skills/skills/torch-xpu-bench commit a5af499972

Frequently asked questions

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