---
title: "AMD + 🤗: Large Language Models Out-of-the-Box Acceleration with AMD GPU"
description: "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."
url: "https://swe.quest/articles/amd-large-language-models-out-of-the-box-acceleration-with-amd-gpu-fa18508c54402fa1"
canonical: "https://huggingface.co/blog/huggingface-and-optimum-amd"
source: "Hugging Face"
published: "2023-12-05"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 7
tags: ["inference","hardware","llms","performance"]
---

# AMD + 🤗: Large Language Models Out-of-the-Box Acceleration with AMD GPU

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-12-05, 7 min read, Announcement. Original: [https://huggingface.co/blog/huggingface-and-optimum-amd](https://huggingface.co/blog/huggingface-and-optimum-amd)

## Summary

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. Text Generation Inference gains initial MI210/MI250 support through a ROCm Docker image, with GeMM kernel tuning to reach performance parity. Benchmarks show one MI250 (two 64 GB ROCm devices) delivering over 2.33x the decode throughput and half the prefill latency of an A100 at large batch sizes. Its 128 GB memory also fits Llama 70B workloads that run out of memory on two A100-80GBs.

Written by swe.quest, not by the author.

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

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- LLM inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- PyTorch

## Keywords

AMD Instinct MI250, ROCm, Text Generation Inference, Hugging Face Transformers, Flash Attention 2, GPTQ, Optimum-Benchmark, vLLM

## Related posts

- [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.
- [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.
- [Creating custom kernels for the AMD MI300](https://swe.quest/articles/creating-custom-kernels-for-the-amd-mi300-c9305116e3ce561c.md): Hugging Face · 2025-07-09 · Hard · 31 min read · Inference & serving, Hardware, Performance engineering, LLMs
  Hugging Face and AMD wrote three open-source fused kernels for serving Llama 3.1 405B in FP8 with vLLM on an 8x MI300X node: residual add + RMS norm + FP8 quantization, SwiGLU + FP8 conversion, and a skinny GEMM for decode-sized batches.
- [Tricks from OpenAI gpt-oss YOU 🫵 can use with transformers](https://swe.quest/articles/tricks-from-openai-gpt-oss-you-can-use-with-transformers-aad70bf42c0bd3ff.md): Hugging Face · 2025-09-11 · Hard · 15 min read · Inference & serving, LLMs, Python, Performance engineering
  Hugging Face upgraded transformers to support OpenAI's gpt-oss models, and most of the new features carry over to other models.
- [Run a Chatgpt-like Chatbot on a Single GPU with ROCm](https://swe.quest/articles/run-a-chatgpt-like-chatbot-on-a-single-gpu-with-rocm-f3f0645e3f4c9b17.md): Hugging Face · 2023-05-15 · Medium · 7 min read · Inference & serving, LLMs, Hardware
  Vicuna-13B can run on a single AMD GPU under ROCm by quantizing it to 4 bits with GPTQ, shrinking GPU memory use from over 28GB in fp16 to about 7.5GB so it fits on a 16GB Radeon RX6900XT.

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)
