Unleashing the Power of Intel Gaudi with Text Generation Inference (TGI)
We are thrilled to announce an exciting development in the world of AI: the native integration of Intel Gaudi hardware support into Text Generation Inference (TGI), our premier serving solution for Large Language Models (LLMs). This integration not only enhances the performance capabilities of TGI but also opens the door for broader deployment options within the open-source AI community. 🎉
✨ What’s New?
In a significant leap forward, we have fully integrated Gaudi support into TGI’s main codebase, as showcased in PR #3091. Previously, users had to navigate a separate fork for Gaudi devices at tgi-gaudi, which was often cumbersome and limited access to the latest features of TGI. With our new multi-backend architecture, Gaudi is now an integral part of TGI, eliminating the need for users to rely on custom repositories. 🙌
This fresh integration fully supports Intel’s comprehensive line of Gaudi hardware, providing a unified and streamlined experience for developers and users alike. For those looking to delve deeper, Intel’s Gaudi product page offers extensive information on the hardware capabilities.
🌟 Why This Matters
The addition of the Gaudi backend to TGI carries several critical advantages that can significantly impact AI deployment:
- Hardware Diversity 🔄: Users can now explore deployment options beyond traditional GPUs, tapping into Intel’s innovative Gaudi architecture.
- Cost Efficiency 💰: Gaudi hardware is known for its compelling price-performance ratio, making it an attractive choice for specific workloads.
- Production-Ready ⚙️: Enjoy the robust features of TGI—such as dynamic batching and streamed responses—now optimized for Gaudi hardware.
- Model Support 🤖: Run popular models like Llama 3.1, Mixtral, Mistral, and more seamlessly on Gaudi devices.
- Advanced Features 🔥: Leverage cutting-edge capabilities like multi-card inference (sharding), vision-language models, and FP8 precision for enhanced performance.
🚦 Getting Started with TGI on Gaudi
Jumping into TGI on Gaudi is straightforward, especially with our official Docker image. To get started, ensure that you are running the image on a machine equipped with Gaudi hardware. Here’s a quick command to set things in motion:
model=meta-llama/Meta-Llama-3.1-8B-Instruct
volume=$PWD/data
hf_token=YOUR_HF_ACCESS_TOKEN
docker run --runtime=habana --cap-add=sys_nice --ipc=host
-p 8080:80
-v $volume:/data
-e HF_TOKEN=$hf_token
-e HABANA_VISIBLE_DEVICES=all
ghcr.io/huggingface/text-generation-inference:3.2.1-gaudi
--model-id $model
Once you have the server running, you can send inference requests using the following command:
curl 127.0.0.1:8080/generate
-X POST
-d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":32}}'
-H 'Content-Type: application/json'
For detailed guidance on using TGI with Gaudi, including advanced configurations and how-to articles, check out our newly created Gaudi backend documentation.
🎉 Top Features
We have optimized several models for both single and multi-card configurations on Intel Gaudi, ensuring that users can harness the full potential of this hardware. The following models have been fine-tuned for maximum performance:
- Llama 3.1 (8B and 70B)
- Llama 3.3 (70B)
- Llama 3.2 Vision (11B)
- Mistral (7B)
- Mixtral (8x7B)
- CodeLlama (13B)
- Falcon (180B)
- Qwen2 (72B)
- Starcoder and Starcoder2
- Gemma (7B)
- Llava-v1.6-Mistral-7B
- Phi-2
🏃♂️ In addition, we are introducing advanced features on Gaudi hardware, such as FP8 quantization enabled by the Intel Neural Compressor (INC), which allows for even greater performance optimizations.
✨ Stay tuned! We are excited to announce that more cutting-edge models, including DeepSeek-r1/v3 and QWen-VL, will be added soon to further empower your AI applications! 🚀
💪 Getting Involved
We warmly invite the community to explore TGI on Gaudi hardware and share feedback. Our comprehensive documentation is readily available in the TGI Gaudi backend documentation. 📚 If you’re interested in contributing, check out our contribution guidelines or raise an issue with your insights on GitHub. 🤝 By incorporating Intel Gaudi support directly into TGI, we are committed to providing flexible, efficient, and production-ready tools for deploying LLMs. We can’t wait to see the innovative applications you’ll create with this powerful new capability! 🎉

