Benchmarking Language Model Performance on 5th Gen Xeon at GCP
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.
Related posts
- Google Cloud C4 Brings a 70% TCO improvement on GPT OSS with Intel and Hugging Face
Hugging Face mediumAdeptGoogle 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. Because price per vCPU is roughly the same on both, the 1.7x gain at batch size 64 translates to about 1.7x better TCO. The gains also rely on a merged transformers optimization that runs each expert only on the tokens routed to it, cutting wasted FLOPs. A reproducible setup is included: instance configuration, a Docker environment pinned to a specific commit, and a Python benchmark using static KV cache and SDPA attention across batch sizes 1–64.
- AMD + 🤗: Large Language Models Out-of-the-Box Acceleration with AMD GPU
Hugging Face easyNoviceHugging 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.
- Make your llama generation time fly with AWS Inferentia2
Hugging Face mediumAdeptoptimum-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. Compiled models can be saved or pushed to the Hub and used via transformers-style generate() or optimum-neuron pipelines, supporting greedy search and top-k/top-p sampling. Benchmarks on inf2.48xlarge show Llama 2 7B encoding 256 tokens in about 0.5s, with throughput up to 750 tokens/s at batch size 4, while a 2-core 'budget' config on inf2.xlarge manages about 22–32 tokens/s. Latency is fairly insensitive to batch size, but throughput is capped by device memory and the static sequence length limits long contexts.
- Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon
Hugging Face mediumAdeptA 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. The walkthrough covers ingesting Nike 10-K filings, wiring the retrieval chain, launching TGI Gaudi via Docker (with sharding for 70B models and optional FP8 quantization, claimed 1.8x over BF16), and starting the FastAPI backend and npm GUI. Intel's benchmark of Llama2-70B with 16 concurrent users reports H100 delivering 1.13x more throughput but only 0.44x the performance per dollar of Gaudi 2, with pricing caveats.
- Introducing the AMD 5th Gen EPYC™ CPU
Hugging Face easyNoviceAMD'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. The tests used bfloat16, ZenDNN 5.0 via the zentorch plugin as a torch.compile backend, and multi-instance setups with 32 physical cores per model instance, at batch sizes 16 and 32. Five workloads (summarization, chatbot, translation, essay writing, live captioning) were measured. An optimized Dockerfile and the benchmarking code built on optimum-benchmark are promised for later release.