Add transformers-xpu-helper for Intel XPU / Core Ultra 7 255H training #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thesimonharms/transformers-xpu-helper!1
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/transformers-xpu-helper-255h-743d"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
transformers-xpu-helper, a Python library meant to sit alongside Hugging Face Transformers and speed up / stabilize training on Intel XPUs. Defaults are tuned for the Intel Core Ultra 7 255H (Arrow Lake-H + Arc Graphics 140T).Uses native PyTorch XPU (2.5+). IPEX is treated as EOL.
What’s included
ultra_255h_config()— BF16 (no GradScaler),torch.compile, gradient checkpointing, shared-DRAM memory fraction, hybrid-CPU thread / DataLoader knobsprepare_for_training/training_step/finalize_stepfor custom loopsbuild_training_argumentsfor Hugging FaceTrainerxpu-helper-infoCLIUsage sketch
Test plan
pytest— 12 passedruff checkcleanexamples/train_tiny_classifier.pyruns on CPU fallbackxpu-helper-inforeports XPU and a short Trainer/finetune run completes