Accelerate v1.13.0

v1.13.0

v1.13.0: Neuron support, IPEX removal, and distributed training fixes

Added 2
  • Support for AWS Neuron (Trainium/Inferentia) devices
  • Enable evaluation during deepspeed Sequence Parallel
Changed 5
  • Use spawn instead of fork for XPU device
  • Enhance new codes to XPU and make them device agnostic
  • DeepSpeed has its own process group
  • Accelerate now imports faster by deferring heavy dependencies
  • Torch.compile hooks are disabled lazily
Fixed 11
  • Fix KMP_AFFINITY incorrectly set for non-CPU training
  • Upcast FSDP2 parameters only if requires_grad
  • Fix FSDP2 tied embedding errors with targeted ValueError guidance
  • Fix FSDP2 cannot load optimizer state using dcp
  • Fix crash in optimizer.step when fsdp2 is enabled and model is bfloat16
  • Fix FSDP2 crash with ignored_params on torch < 2.7.0
Removed 1
  • Remove IPEX dependency
Deprecated 1
  • Add MS-AMP deprecation warnings
AWS Neuron support

We now have support for AWS Neuron (Trainium/Inferentia) devices. Thanks @michaelbenayoun for adding this.

XPU Improvements

We've removed IPEX dependency and improved device-agnostic code for XPU.

FSDP2 Improvements

We've added a bunch of important fixes for FSDP2 users: upcasting only grad-requiring params, better tied embedding errors, DCP optimizer loading, bf16 optimizer step crash fix, and torch < 2.7.0 compatibility.

DeepSpeed Sequence Parallelism

We've added several fixes to the DeepSpeed + Sequence Parallelism integration introduced in v1.12.0, including evaluation support during SP training and proper process group handling.

FP8

We've enhanced FP8 training. Thanks @shimizust for fixing torchao support.

Performance

Accelerate now imports faster by deferring heavy dependencies, and torch.compile hooks are disabled lazily.

Minor fixes
View original

Upgraded? How did it go?

Discussion