#
Intel Gaudi

The Intel Gaudi AI accelerator family includes Intel Gaudi 1, Intel Gaudi 2, and Intel Gaudi 3. Each server is equipped with 8 devices, known as Habana Processing Units (HPUs), providing 128GB of memory on Gaudi 3, 96GB on Gaudi 2, and 32GB on the first-gen Gaudi. For more details on the underlying hardware architecture, check out the Gaudi Architecture overview.

TrainingArguments, Trainer and Pipeline detect and set the backend device to `hpu` if an Intel Gaudi device is available. No additional changes are required to enable training and inference on your device.

Some modeling code in Transformers is not optimized for HPU lazy mode. If you encounter any errors, set the environment variable below to use eager mode:

    PT_HPU_LAZY_MODE=0

In some cases, you’ll also need to enable int64 support to avoid casting issues with long integers:

    PT_ENABLE_INT64_SUPPORT=1

Refer to the Gaudi docs for more details.

For training and inference with Gaudi-optimized model implementations, we recommend using Optimum for Intel Gaudi.

< > Update on GitHub