---
title: "Google Cloud C4 Brings a 70% TCO improvement on GPT OSS with Intel and Hugging Face"
description: "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."
url: "https://swe.quest/articles/google-cloud-c4-brings-a-70-tco-improvement-on-gpt-oss-with-intel-and-hugging-1662abf0ec54a8e1"
canonical: "https://huggingface.co/blog/gpt-oss-on-intel-xeon"
source: "Hugging Face"
published: "2025-10-16"
difficulty: "medium"
kind: "Research"
reading_minutes: 6
tags: ["inference","performance","hardware","cloud","cost-optimization"]
---

# Google Cloud C4 Brings a 70% TCO improvement on GPT OSS with Intel and Hugging Face

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-10-16, 6 min read, Research. Original: [https://huggingface.co/blog/gpt-oss-on-intel-xeon](https://huggingface.co/blog/gpt-oss-on-intel-xeon)

## Summary

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. 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.

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)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- Mixture of Experts models
- LLM inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- Hugging Face transformers

## Keywords

GPT OSS, Intel Xeon 6, Granite Rapids, Google Cloud C4, Hugging Face Transformers, Mixture of Experts, PyTorch

## Related posts

- [Benchmarking Language Model Performance on 5th Gen Xeon at GCP](https://swe.quest/articles/benchmarking-language-model-performance-on-5th-gen-xeon-at-gcp-7e85a320d2818cb1.md): Hugging Face · 2024-12-17 · Medium · 6 min read · Inference & serving, Performance engineering, Hardware, Cloud platforms, LLMs
  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.
- [How GPT-5.6 fuses frontier intelligence with frontier efficiency](https://swe.quest/articles/how-gpt-5-6-fuses-frontier-intelligence-with-frontier-efficiency-a9efc2ffff6e005e.md): OpenAI · 2026-07-29 · Easy · 7 min read · Inference & serving, AI agents, Performance engineering, Cost optimization, LLMs
  GPT-5.6's cost efficiency comes from optimizations across inference and the agentic harness, many of them landed by GPT-5.6 Sol running in Codex.
- [Optimizing inference speed and costs: Lessons learned from large-scale deployments](https://swe.quest/articles/optimizing-inference-speed-and-costs-lessons-learned-from-large-scale-1e80b28572985147.md): Together AI · 2026-01-22 · Easy · 6 min read · Inference & serving, LLMs, Cost optimization, Performance engineering
  Lower LLM inference latency and cost come mainly from how inference runs rather than from buying more GPUs.
- [Accelerating PyTorch Transformers with Intel Sapphire Rapids - part 2](https://swe.quest/articles/accelerating-pytorch-transformers-with-intel-sapphire-rapids-part-2-c41ef6f6c233e349.md): Hugging Face · 2023-02-06 · Medium · 6 min read · Inference & serving, Hardware, Performance engineering, Python
  Intel Sapphire Rapids CPUs with AMX instructions, combined with Hugging Face Optimum Intel running in bfloat16 with JIT compilation, cut p99 inference latency for DistilBERT, BERT and RoBERTa text classification by roughly 3x compared with vanilla Transformers on Ice Lake.
- [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.

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)
