Diffusers documentation

Intel Gaudi

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v0.42.1).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Intel Gaudi

Họ gia tốc AI Intel Gaudi bao gồm Intel Gaudi 1, Intel Gaudi 2 và Intel Gaudi 3. Mỗi máy chủ được trang bị 8 thiết bị, được gọi là Habana Processing Units (HPU), cung cấp 128GB bộ nhớ trên Gaudi 3, 96GB trên Gaudi 2 và 32GB trên Gaudi thế hệ đầu. Để biết thêm chi tiết về kiến trúc phần cứng cơ bản, hãy xem phần tổng quan về Gaudi Architecture.

Các pipeline của Diffusers có thể tận dụng khả năng tăng tốc HPU, ngay cả khi pipeline đó chưa được thêm vào Optimum for Intel Gaudi, nhờ vào GPU Migration Toolkit.

Gọi .to("hpu") trên pipeline của bạn để chuyển nó sang thiết bị HPU như minh họa bên dưới cho Flux:

import torch
from diffusers import DiffusionPipeline

pipeline = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", dtype=torch.bfloat16)
pipeline.to("hpu")

image = pipeline("An image of a squirrel in Picasso style").images[0]

Đối với các triển khai pipeline khuếch tán được tối ưu hóa cho Gaudi, chúng tôi khuyến nghị sử dụng Optimum for Intel Gaudi.

Update on GitHub