惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
雷峰网
雷峰网
S
SegmentFault 最新的问题
博客园 - 【当耐特】
博客园_首页
量子位
爱范儿
爱范儿
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
V
V2EX
美团技术团队
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Gemma-4-31B on v6e-4 TPU Benchmarks
xbill · 2026-05-09 · via DEV Community
Cover image for Gemma-4-31B on v6e-4 TPU Benchmarks

This is a submission for the Gemma 4 Challenge: Build with Gemma 4

model: Gemma-4-31B

🚀 Gemma 4 TPU v6e-4 Performance Report

📋 Deployment Overview

  • Model: google/gemma-4-31B-it
  • Hardware: Cloud TPU v6e-4 (Trillium)
  • Runtime: v2-alpha-tpuv6e (Flex-start)
  • TPU Location: southamerica-east1-c
  • Serving Engine: vLLM (v0.20.2rc1.dev111+g8eb401134)

📊 Performance Summary (C1 - C1024)

  • Peak Prefill Throughput: 463,345 tokens/sec
  • Avg TTFT (~1.6k tokens): 2.597 seconds
  • Avg TTFT (16k tokens): 4.775 seconds

📈 Concurrency Scaling Matrix (Mean per Concurrency)

concurrency avg_ttft prefill_tps
1 0.546599 14778.3
2 0.562068 28121.7
4 0.595823 51869.1
8 0.679816 88055.5
16 0.872466 133697
32 1.16488 191631
64 1.55596 261802
128 2.15464 328909
256 3.55723 352654
512 7.59987 318854
1024 21.005 240170

🔍 Key Findings

  1. Efficiency Saturated: Maximum throughput was achieved at concurrency 256, reaching 463,345 tok/s.
  2. Trillium Scalability: The TPU v6e-4 architecture handled 1024 concurrent requests without memory exhaustion, maintaining throughput stability even under extreme queueing.
  3. Responsive Context: Even at 16k tokens, the TTFT remained under 1 second for low concurrencies (C1-C8).

💸 Cost Efficiency

  • Estimated Hourly Cost: ~.40 (Flex-start rate for v6e-4)
  • Throughput Efficiency: ~308,000,000 tokens per dollar at peak saturation.

Report generated by Gemini CLI on 2026-05-08.

⚖️ Competitive Analysis: Dense (31B) vs. MoE (26B A4B)

Metric Gemma 4 31B (Dense) Gemma 4 26B (MoE) Winner
Model Architecture Dense (31B parameters) Sparse (26B Total / 3.8B Active) MoE (Efficiency)
Peak Throughput (TPU v6e-4) 463,345 tok/s ~457,000 tok/s Dense (Slightly)
Interactive Latency (TTFT) 0.314s (at C1/128t) < 1.200s (Interactive) Dense (Low Load)
Active Compute cost 31B params / token 3.8B params / token MoE (7.5x lower)
Max Context Window 64K (Tested to 16K) 256K (Shared KV Cache) MoE

Analysis Summary

  1. Throughput Parity: Our benchmarks show that the 31B Dense model actually matches or slightly exceeds the peak throughput of the 26B MoE model on the same TPU v6e-4 hardware. This indicates exceptional hardware-software co-optimization for dense matrix operations in the Trillium architecture.
  2. Compute Efficiency: While throughput is similar, the MoE model is 7.5x more compute-efficient per token generated (activating only 3.8B parameters). In a multi-tenant environment, the MoE model would likely sustain higher concurrent user counts before hitting power or thermal limits.
  3. Latency Advantage: The Dense model demonstrates superior snappiness for low-load interactive tasks, with a TTFT of 0.314s, which is significantly below the MoE target of 1.2s.
  4. Context Scaling: The MoE model's Shared KV Cache allows it to scale to 256K tokens, whereas our Dense stack is currently optimized for high-throughput within the 16K-64K range.