---
title: "Accelerating Protein Language Model ProtST on Intel Gaudi 2"
description: "ProtST, a multi-modal protein language model from MILA and Intel Labs, runs faster on Intel Gaudi 2 than on an NVIDIA A100 80GB using the Optimum for Intel Gaudi library with minimal code changes."
url: "https://swe.quest/articles/accelerating-protein-language-model-protst-on-intel-gaudi-2-8726b8333bad484f"
canonical: "https://huggingface.co/blog/intel-protein-language-model-protst"
source: "Hugging Face"
published: "2024-07-03"
difficulty: "easy"
kind: "Research"
reading_minutes: 3
tags: ["hardware","inference","model-training","scientific-computing","performance"]
---

# Accelerating Protein Language Model ProtST on Intel Gaudi 2

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-07-03, 3 min read, Research. Original: [https://huggingface.co/blog/intel-protein-language-model-protst](https://huggingface.co/blog/intel-protein-language-model-protst)

## Summary

ProtST, a multi-modal protein language model from MILA and Intel Labs, runs faster on Intel Gaudi 2 than on an NVIDIA A100 80GB using the Optimum for Intel Gaudi library with minimal code changes. In bfloat16 at batch size 1, subcellular localization inference on 2,772 sequences reaches identical accuracy (0.44) with a 1.76x speedup on Gaudi 2. Fine-tuning ProtST-ESM-1b for binary membrane/soluble localization matches the paper's ~92.5% accuracy, runs 2.92x faster on a single Gaudi 2, and scales near-linearly to 4 and 8 accelerators.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Scientific computing](https://swe.quest/tags/scientific-computing.md) (Domains)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Hugging Face transformers
- model fine-tuning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))

## Keywords

ProtST, Intel Gaudi 2, Optimum for Intel Gaudi, ESM-1b, NVIDIA A100, bfloat16

## Related posts

- [Fast Inference on Large Language Models: BLOOMZ on Habana Gaudi2 Accelerator](https://swe.quest/articles/fast-inference-on-large-language-models-bloomz-on-habana-gaudi2-accelerator-b18b18c9b1b881f4.md): Hugging Face · 2023-03-28 · Medium · 8 min read · Inference & serving, LLMs, Hardware, Performance engineering
  BLOOMZ (176B parameters, 352 GB in 16-bit) runs inference on a single 8-HPU Habana Gaudi2 server using Optimum Habana with Habana's DeepSpeed-inference fork, HPU graphs and a KV cache.
- [Blazing Fast SetFit Inference with 🤗 Optimum Intel on Xeon](https://swe.quest/articles/blazing-fast-setfit-inference-with-optimum-intel-on-xeon-804c53c4c80ba1a3.md): Hugging Face · 2024-04-03 · Medium · 6 min read · Inference & serving, Performance engineering, Hardware, Python
  Post-training static int8 quantization of a SetFit model body with Optimum Intel and Intel Neural Compressor speeds up inference on Xeon CPUs by up to 7.8x in throughput with negligible accuracy loss.
- [AMD + 🤗: Large Language Models Out-of-the-Box Acceleration with AMD GPU](https://swe.quest/articles/amd-large-language-models-out-of-the-box-acceleration-with-amd-gpu-fa18508c54402fa1.md): Hugging Face · 2023-12-05 · Easy · 7 min read · Inference & serving, Hardware, LLMs, Performance engineering
  Hugging Face Transformers now runs all models and tasks on AMD Instinct GPUs with no code changes versus NVIDIA, backed by ROCm support for Flash Attention v2, vLLM Paged Attention, DeepSpeed, GPTQ via AutoGPTQ, ONNX Runtime's ROCMExecutionProvider, and Optimum-Benchmark.
- [Hugging Face on AMD Instinct MI300 GPU](https://swe.quest/articles/hugging-face-on-amd-instinct-mi300-gpu-f116bf43c7c06916.md): Hugging Face · 2024-05-21 · Easy · 7 min read · Inference & serving, Hardware, LLMs, Performance engineering, Model training
  Hugging Face's transformers and text-generation-inference (TGI) now run on AMD Instinct MI300X GPUs with no code changes, backed by a Kubernetes-scheduled CI pipeline that runs tens of thousands of unit tests on MI250 and MI300 hardware.
- [Accelerating Vision-Language Models: BridgeTower on Habana Gaudi2](https://swe.quest/articles/accelerating-vision-language-models-bridgetower-on-habana-gaudi2-c636dc65d8f4aecd.md): Hugging Face · 2023-06-29 · Medium · 9 min read · Model training, Hardware, Performance engineering, Computer vision
  Fine-tuning the 866M-parameter BridgeTower vision-language model with Optimum Habana on Gaudi2 reaches 847.7 samples/s, about 1.4x faster than H100 and 2.45x faster than A100 80GB, mostly because image data loading is the bottleneck.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
