Skip to main content

Quick Overview

This video is a technical presentation and product demonstration from Google Cloud Tech, hosted by Senior Product Manager Injae Kwak and Customer Engineer Chris Yang. It presents the integration of the SGLang inference framework with Google Cloud TPUs via SGLang-JAX. Viewers are guided through the architecture, model support, environment installation, functional testing, and benchmark execution.

Key Points

  • 1.SGLang-JAX is built from the ground up to serve large language models on Google Cloud TPUs using custom Pallas kernels and a JAX backend.
  • 2.The framework supports modern state of the art models including Qwen, DeepSeek, GLM, and Xiaomi MiMo-v2-Flash.
  • 3.Setting up and serving models with SGLang on TPU environments matches the standard workflow used on GPU platforms.
  • 4.Benchmark tests demonstrate that serving performance on TPUs achieves parity with GPU deployments.
  • 5.Google partnered with the open source SGLang community to bring native TPU support and performance optimizations to the framework.

Summary

Injae Kwak introduces SGLang-JAX as a dedicated implementation of the SGLang inference engine tailored for Google Cloud TPUs. SGLang-JAX is built from the ground up with specific hardware optimizations, incorporating custom Pallas kernels and using JAX as the primary backend. Kwak highlights support for contemporary open foundation models, including Qwen, DeepSeek, GLM, and MiMo-v2.6. For practitioners interested in Mixture of Experts (MoE) optimizations, Kwak points to architectural co-design approaches that span from model design down to custom execution kernels.

Chris Yang takes over to provide a live console demonstration showing the end to end setup and serving process on a Cloud TPU instance. The demonstration begins in a bash terminal environment managed via kubectl. Yang installs SGLang-JAX within a dedicated Python virtual environment using standard pip installation commands, emphasizing that developers familiar with GPU environments will experience an identical one-click installation process.

Following the installation, Yang initiates the inference server hosting the MiMo-v2-Flash model released by Xiaomi. While alternative serving frameworks like vLLM exist, Yang notes that MiMo-v2 support is specifically available on SGLang. The engine initializes model weights, configures memory caches, and sets up tokenizers to prepare the server for inference requests.

Once the serving engine is running, Yang executes functional verification tests using curl commands against the localhost chat completions endpoint. The model correctly answers a basic arithmetic question by outputting five for two plus three, and correctly identifies Paris as the capital of France across repeated test calls.

Yang then executes the sglang.bench_serving utility to evaluate throughput, token latencies, and concurrency metrics directly on the TPU platform. The benchmark results confirm that TPU serving performance aligns closely with equivalent GPU setups, demonstrating the viability of TPU infrastructure for production LLM serving workloads.

Injae Kwak returns to conclude the presentation, noting that Google has used TPU hardware internally for more than ten years. Through direct collaboration between Google and the SGLang open source community, TPU support is now integrated into SGLang, backed by public documentation and quick start example implementations.

Introduction to SGLang on TPUs

Injae Kwak introduces SGLang-JAX, an adaptation of the SGLang serving engine optimized specifically for Google Cloud TPUs. The implementation uses custom Pallas kernels and leverages JAX as its execution backend. SGLang-JAX supports open source state of the art models such as Qwen, DeepSeek, GLM, and MiMo-v2.6, allowing co-design across model architectures and hardware-level kernels.

Environment Setup and Server Launch

Chris Yang demonstrates the deployment workflow on a TPU cluster console. The installation process follows the standard pip installation into a virtual environment, matching the simplicity of GPU setup workflows. Once installed, the demonstration launches an inference server hosting Xiaomi's MiMo-v2-Flash model, which is uniquely supported on SGLang.

Functional Testing and Performance Benchmarking

The demonstration validates inference via HTTP curl requests to the local server endpoint, confirming correct responses for basic arithmetic and factual prompts. A serving benchmark script is then run across multiple concurrent requests on the TPU hardware platform, showing throughput and latency performance comparable to GPU systems.

Community Collaboration and Hardware Lineage

The presentation concludes by highlighting Google's decade-long internal use of TPUs for AI infrastructure. By collaborating directly with the SGLang open source community, Google Cloud enables developers to serve large language models on TPUs with comprehensive documentation and quick start guides.

The Bottom Line

The video establishes that SGLang-JAX provides an efficient, drop-in method for serving large language models on Google Cloud TPUs with setup mechanics and performance characteristics comparable to GPUs. It showcases working inference and benchmarking on Xiaomi's MiMo-v2-Flash model using custom Pallas kernels and JAX. While the demonstration validates single-node serving and standard benchmarking, multi-node scaling configurations and comparative cost breakdowns are left for external documentation.

FAQ

What is SGLang on TPUs and how does SGLang-JAX operate?

SGLang-JAX is a specialized implementation of the open source SGLang inference engine built for Google Cloud TPUs. It uses JAX as its backend and integrates custom Pallas kernels for hardware-level performance optimization.

Which large language models are supported when serving with SGLang on TPUs?

SGLang on TPUs supports state of the art models such as Qwen, DeepSeek, GLM, and Xiaomi's MiMo-v2-Flash model.

How does installing and running SGLang on TPUs compare to GPU environments?

The installation process on TPUs mirrors the GPU workflow, using standard pip commands inside a Python virtual environment and launching with equivalent server execution scripts.

How does the inference performance of SGLang on TPUs compare to GPUs?

Serving benchmark results show that LLM inference throughput and latency on the TPU platform achieve performance levels comparable to GPUs.

Why did Google partner with the open source SGLang community for TPU serving?

Google partnered with the SGLang community to bring native TPU support to the framework, allowing developers to leverage Google's decade of internal TPU experience for production model serving.

Worth watching for

Machine learning engineers, AI infrastructure specialists, and cloud architects looking to deploy and benchmark large language model inference using SGLang on Google Cloud TPUs.

  • sglang
  • tpu
  • jax
  • llm-serving
  • google-cloud
  • inference