Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Lightning ⚡ Intel Habana

lightning PyPI Status PyPI - Python Version PyPI Status Deploy Docs

General checks Build Status pre-commit.ci status

Habana® Gaudi® AI Processor (HPU) training processors are built on a heterogeneous architecture with a cluster of fully programmable Tensor Processing Cores (TPC) along with its associated development tools and libraries, and a configurable Matrix Math engine.

The TPC core is a VLIW SIMD processor with an instruction set and hardware tailored to serve training workloads efficiently. The Gaudi memory architecture includes on-die SRAM and local memories in each TPC and, Gaudi is the first DL training processor that has integrated RDMA over Converged Ethernet (RoCE v2) engines on-chip.

On the software side, the PyTorch Habana bridge interfaces between the framework and SynapseAI software stack to enable the execution of deep learning models on the Habana Gaudi device.

Gaudi offers a substantial price/performance advantage -- so you get to do more deep learning training while spending less.

For more information, check out Gaudi Architecture and Gaudi Developer Docs.


Installation

pip install -U lightning lightning-habana

Usage

To enable PyTorch Lightning to utilize the HPU accelerator, simply provide accelerator="hpu" parameter to the Trainer class.

from lightning import Trainer

# run on as many Gaudi devices as available by default
trainer = Trainer(accelerator="auto", devices="auto", strategy="auto")
# equivalent to
trainer = Trainer()

# run on one Gaudi device
trainer = Trainer(accelerator="hpu", devices=1)
# run on multiple Gaudi devices
trainer = Trainer(accelerator="hpu", devices=8)
# choose the number of devices automatically
trainer = Trainer(accelerator="hpu", devices="auto")

The devices>1 parameter with HPUs enables the Habana accelerator for distributed training. It uses HPUParallelStrategy internally which is based on DDP strategy with the addition of Habana's collective communication library (HCCL) to support scale-up within a node and scale-out across multiple nodes.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightning-habana-1.0.0rc0.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lightning_habana-1.0.0rc0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file lightning-habana-1.0.0rc0.tar.gz.

File metadata

  • Download URL: lightning-habana-1.0.0rc0.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for lightning-habana-1.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 5dcd1de7237147bc82da7bbc3bcb7f076779112f974e38f3132bc7bd47dce527
MD5 6a1fa57f1c067b7afedb46c27d72027f
BLAKE2b-256 3694b3a622b79e2cbfc58628fb539e7401dc0e36bdb1a9aaccec8c7ef8ad0f91

See more details on using hashes here.

File details

Details for the file lightning_habana-1.0.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for lightning_habana-1.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 45c533bf5c6b58dd41fef4d71ff1dac805d9f972785d255b5233d7683374c774
MD5 40937fccb29d9d12f6868abdc4e172b0
BLAKE2b-256 9ba79d189fa53b70672c03a4db248f34e21c9fa8dc2b6300378f50924d6dc984

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page