Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 6 min read Research mediumAdept

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

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.

Assumes: Mixture of Experts modelsLLM inference basicsHugging Face transformers

Related posts

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

    Hugging Face mediumAdept

    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.

  • How GPT-5.6 fuses frontier intelligence with frontier efficiency

    OpenAI easyNovice

    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. On the inference side, Sol tuned load-balancing heuristics, rewrote production Triton/Gluon kernels (validated with the FpSan floating-point sanitizer) for a 20% cut in end-to-end serving cost, improved its own speculative-decoding draft model for over 15% better token-generation efficiency, and searched workload-specific batching, sharding and KV-cache configurations. The Rust agent harness reduces repeated work by deferring tool and MCP discovery, capping tool output at 10,000 tokens by default, and keeping model-visible history append-only with deterministic tool ordering so prompt-cache prefixes stay intact.

  • Optimizing inference speed and costs: Lessons learned from large-scale deployments

    Together AI easyNovice

    Lower LLM inference latency and cost come mainly from how inference runs rather than from buying more GPUs. The levers covered are FP8/FP4 quantization (claimed 20–40% throughput gains), distilled models like DeepSeek-R1 variants (2–5× lower cost), regional proxies that cut 50–100 ms of TTFT, removing GPU stalls via kernel fusion, MoE execution and scheduling, and speculative decoding or MTP (20–50% faster decode). It also covers Blackwell-class hardware with tensor or expert parallelism and dynamically shifting GPU capacity between endpoints. A starting checklist: measure TTFT, decode TPS and network RTT, then add proxies, continuous batching and decoding optimizations.

  • Accelerating PyTorch Transformers with Intel Sapphire Rapids - part 2

    Hugging Face mediumAdept

    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. The benchmark uses EC2 c6i.16xlarge and r7iz.16xlarge-metal instances, short (16-token) and long (128-token) inputs, single and batch-of-8 predictions, and libtcmalloc. Optimum needs only a small wrapper around the existing pipeline code, and the results show single-digit millisecond latency on long sequences without a GPU.

  • Hugging Face on AMD Instinct MI300 GPU

    Hugging Face easyNovice

    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. TGI optimizations for MI300 include Flash Attention v2, Paged Attention, GPTQ/AWQ kernels, fused kernels, and PyTorch's ROCm TunableOp. TunableOp tunes GEMMs during server warmup and gives an 8-10% decode latency gain on small inputs. On Llama 3 70B, MI300X on Azure delivers 2-3x faster time to first token and 2x faster decoding than MI250, and roughly 2x faster LoRA fine-tuning. Its 192 GB HBM3 also fits the full ~140 GB fp16 model on a single GPU.

The quest for software engineering knowledge.

Look:
Layout: