---
title: "Benchmarking Language Model Performance on 5th Gen Xeon at GCP"
description: "On Google Cloud, C4 instances (5th Gen Xeon Emerald Rapids with AMX) deliver 10x–24x higher throughput than N2 instances (3rd Gen Ice Lake, AVX-512 only) for text embedding with UAE-Large-V1, and 2.3x–3.6x higher throughput for Llama 3.2 3B text generation."
url: "https://swe.quest/articles/benchmarking-language-model-performance-on-5th-gen-xeon-at-gcp-7e85a320d2818cb1"
canonical: "https://huggingface.co/blog/intel-gcp-c4"
source: "Hugging Face"
published: "2024-12-17"
difficulty: "medium"
kind: "Research"
reading_minutes: 6
tags: ["inference","performance","hardware","cloud","llms"]
---

# Benchmarking Language Model Performance on 5th Gen Xeon at GCP

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-12-17, 6 min read, Research. Original: [https://huggingface.co/blog/intel-gcp-c4](https://huggingface.co/blog/intel-gcp-c4)

## Summary

On Google Cloud, C4 instances (5th Gen Xeon Emerald Rapids with AMX) deliver 10x–24x higher throughput than N2 instances (3rd Gen Ice Lake, AVX-512 only) for text embedding with UAE-Large-V1, and 2.3x–3.6x higher throughput for Llama 3.2 3B text generation. C4 costs about 1.3x more per hour, which works out to a 7x–19x TCO advantage for embedding and 1.7x–2.9x for generation. The post gives reproducible setup steps using optimum-benchmark with the optimum-intel IPEX backend in bfloat16, including NUMA binding and OpenMP settings. It argues that lightweight agentic AI pipelines built on small language models could run entirely on CPUs.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

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

## Prerequisites

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

## Keywords

Intel AMX, Xeon Emerald Rapids, Google Cloud C4, optimum-benchmark, optimum-intel, Intel Extension for PyTorch, Llama 3.2, UAE-Large-V1

## Related posts

- [Google Cloud C4 Brings a 70% TCO improvement on GPT OSS with Intel and Hugging Face](https://swe.quest/articles/google-cloud-c4-brings-a-70-tco-improvement-on-gpt-oss-with-intel-and-hugging-1662abf0ec54a8e1.md): Hugging Face · 2025-10-16 · Medium · 6 min read · Inference & serving, Performance engineering, Hardware, Cloud platforms, Cost optimization
  Google Cloud C4 VMs on Intel Xeon 6 (Granite Rapids) deliver 1.4x–1.7x per-vCPU decoding throughput over C3 (Sapphire Rapids) for CPU inference of the GPT OSS 120B mixture-of-experts model in bfloat16.
- [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.
- [Make your llama generation time fly with AWS Inferentia2](https://swe.quest/articles/make-your-llama-generation-time-fly-with-aws-inferentia2-bc8b5e1981a590c0.md): Hugging Face · 2023-11-07 · Medium · 7 min read · Inference & serving, LLMs, Hardware, Cloud platforms, Performance engineering
  optimum-neuron can now compile and export Llama 2 models for text generation on AWS Inferentia2, using static input shapes (batch size, 2048 sequence length that also bounds the KV cache) and a configurable core count and fp16 precision.
- [Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon](https://swe.quest/articles/building-cost-efficient-enterprise-rag-applications-with-intel-gaudi-2-and-b583c6eb9fcf2d2e.md): Hugging Face · 2024-05-09 · Medium · 8 min read · RAG & retrieval, Inference & serving, Hardware, Cost optimization, LLMs
  A RAG chatbot built with LangChain's rag-redis template runs BAAI/bge-base-en-v1.5 embeddings on Intel Granite Rapids Xeon CPUs, Redis as the vector store, and an LLM served by Hugging Face TGI on Gaudi 2.
- [Introducing the AMD 5th Gen EPYC™ CPU](https://swe.quest/articles/introducing-the-amd-5th-gen-epyctm-cpu-6391410f34a61546.md): Hugging Face · 2024-10-10 · Easy · 3 min read · Inference & serving, Hardware, Performance engineering, LLMs
  AMD's 5th-gen EPYC "Turin" server CPU (Zen5, up to 192 cores/384 threads) delivers roughly 2X the LLM decode throughput of the previous-gen Genoa in Hugging Face's benchmarks of Llama 3.1 8B Instruct.

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)
