AI Hypercomputer tutorials let you run inference, fine-tuning, reinforcement
learning (RL), and pre-training workloads on Google Cloud. You can deploy open
models such as Gemma, DeepSeek, Llama, Muse Glimmer, and Qwen on
NVIDIA GPUs or Cloud TPU accelerators. Each walkthrough uses
Google Kubernetes Engine (GKE), Slurm clusters, or Cloud TPU VMs,
including clusters provisioned with Cluster Toolkit.

These tutorials are for machine learning (ML) engineers, researchers, platform
administrators and operators, and artificial intelligence (AI) specialists.
Workloads include prefill-decode (PD) disaggregation, supervised fine-tuning
(SFT), and distributed training with NVIDIA Megatron-Bridge and PyTorch Fully
Sharded Data Parallel (FSDP).

The tutorials assume that you're familiar with ML concepts, Google Cloud
services, container orchestration, and cluster management.

## Available tutorials

Filter the following table by workload, accelerator, platform, framework, or
model family, or enter a keyword in the search field. To reset your menu
selections, click **Clear all**. To sort the table, click a column header.
Inference Fine-tuning Reinforcement learning (RL) Pre-training A4X (NVIDIA GB200) A4 (NVIDIA B200 GPU) A3 Ultra (NVIDIA H200 GPU) TPU v6e (Trillium) TPU7x (Ironwood) GKE Slurm Cloud TPU VM vLLM SGLang TorchTitan TorchTPU NVIDIA Dynamo MaxText Pathways PyTorch FSDP Hugging Face Accelerate Hugging Face TRL Ray verl NVIDIA NeMo RL NVIDIA Megatron-Bridge DeepSeek Gemma gpt-oss Llama Mixtral Muse Glimmer Qwen <button class="clear-all">Clear all</button>

| Tutorial | Workload | Accelerator | Platform | Framework | Model |
|---|---|---|---|---|---|
| [Serve DeepSeek-R1 671B on GKE with multi-host vLLM on A4 VMs](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/serve-deepseek-r1-671b-a4-gke-multi-host-vllm.md.txt) | Inference | A4 (NVIDIA B200 GPU) | GKE (Standard, Cluster Toolkit) | vLLM, Ray | DeepSeek-R1 671B |
| [Serve Qwen3.8-2.4T on GKE with multi-host PD disaggregation using Dynamo and SGLang on A4 VMs](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/serve-qwen3-8-2-4t-a4-gke-multi-host-sglang.md.txt) | Inference (PD disaggregation) | A4 (NVIDIA B200 GPU) | GKE (Standard, Cluster Toolkit) | SGLang, NVIDIA Dynamo | Qwen3.8-2.4T |
| [Serve Llama 3.1 405B on GKE with PD disaggregation using Dynamo and SGLang on A4 VMs](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/serve-llama-3-1-405b-a4-gke-sglang.md.txt) | Inference (PD disaggregation) | A4 (NVIDIA B200 GPU) | GKE (Standard, Cluster Toolkit) | SGLang, NVIDIA Dynamo | Llama 3.1 405B |
| [Use vLLM on GKE to run inference with DeepSeek-V3.1-Base](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/deepseek-vllm-inference.md.txt) | Inference | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | vLLM | DeepSeek-V3.1-Base |
| [Use vLLM on GKE to run inference with DeepSeek-V3.2-Speciale](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/vllm-gke-deepseek-speciale.md.txt) | Inference | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | vLLM | DeepSeek-V3.2-Speciale |
| [Use vLLM on GKE to run inference with gpt-oss-120b](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/gpt-oss-vllm-inference.md.txt) | Inference | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | vLLM | gpt-oss-120b |
| [Use vLLM on GKE to run inference with Llama 4](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/vllm-gke-llama4.md.txt) | Inference | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | vLLM | Llama 4 Scout |
| [Use vLLM on GKE to run inference with Qwen3](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/qwen3-vllm-inference.md.txt) | Inference | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | vLLM | Qwen3-235B-A22B |
| [Fine-tune Gemma 4 on an A4 GKE cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/gemma4-finetune-a4-gke-cluster.md.txt) | Fine-tuning | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | Hugging Face Accelerate, PyTorch FSDP | Gemma 4 31B |
| [Fine-tune Gemma 4 on a multi-host A4 GKE cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/gemma4-finetune-a4-gke-multi-host-cluster.md.txt) | Fine-tuning | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | Hugging Face Accelerate, PyTorch FSDP v2 | Gemma 4 31B |
| [Fine-tune Gemma 3 on a multi-host A4 GKE cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/gemma3-finetune-a4-gke-multi-host-cluster.md.txt) | Fine-tuning | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | Hugging Face Accelerate, PyTorch FSDP | Gemma 3 |
| [Fine-tune Gemma 3 on an A4 Slurm cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/gemma-3-slurm-cluster.md.txt) | Fine-tuning | A4 (NVIDIA B200 GPU) | Slurm (Cluster Toolkit) | Hugging Face Accelerate, PyTorch FSDP | Gemma 3 12B |
| [Use Ray to fine-tune Gemma 3 for vision tasks on GKE](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/use-ray-fine-tune-gemma-vision-task-gke.md.txt) | Fine-tuning (vision) | A4 (NVIDIA B200 GPU) | GKE (Autopilot) | Ray | Gemma 3 |
| [Use FSDP to fine-tune Llama 4 on an A4 Slurm cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/fsdp-llama4.md.txt) | Fine-tuning | A4 (NVIDIA B200 GPU) | Slurm (Cluster Toolkit) | PyTorch FSDP, Hugging Face TRL | Llama 4 Scout |
| [Use FSDP to fine-tune Mixtral-8x7B on an A4 Slurm cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/fsdp-mixtral-8x7b.md.txt) | Fine-tuning | A4 (NVIDIA B200 GPU) | Slurm (Cluster Toolkit) | PyTorch FSDP, Hugging Face TRL | Mixtral-8x7B |
| [Fine-tune and scale reinforcement learning with verl on GKE](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/scaling-rl-verl-gke.md.txt) | Reinforcement learning (RL) | A4X (NVIDIA GB200), A4 (NVIDIA B200 GPU), A3 Ultra (NVIDIA H200 GPU) | GKE (Autopilot, Standard, Cluster Toolkit) | Ray, verl | Qwen2.5-32B-Instruct |
| [Fine-tune and scale reinforcement learning with NVIDIA NeMo RL on GKE](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/nemo-rl-gke.md.txt) | Reinforcement learning (RL) | A4 (NVIDIA B200 GPU), A3 Ultra (NVIDIA H200 GPU) | GKE (Standard) | Ray, NVIDIA NeMo RL | Gemma 3 27B |
| [Pre-train Qwen3-30B-A3B on GKE with multi-host NVIDIA Megatron-Bridge on A4 VMs](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/pretrain-qwen3-30b-a3b-a4-gke-multi-host-megatron-bridge.md.txt) | Pre-training | A4 (NVIDIA B200 GPU) | GKE (Standard, Cluster Toolkit) | NVIDIA Megatron-Bridge | Qwen3-30B-A3B |
| [Train Qwen2 on an A4 Slurm cluster](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/gpu/train-qwen2-a4-slurm-cluster.md.txt) | Pre-training | A4 (NVIDIA B200 GPU) | Slurm (Cluster Toolkit) | Hugging Face Accelerate, PyTorch FSDP | Qwen2 1.5B |
| [Serve Qwen3.5-397B on GKE with vLLM TorchTPU on TPU7x accelerators](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-qwen3-5-397b-ironwood-vllm-torchtpu.md.txt) | Inference | TPU7x (Ironwood) | GKE | vLLM TorchTPU | Qwen3.5-397B |
| [Serve Qwen3-30B-A3B on GKE with vLLM TorchTPU on TPU v6e](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-qwen3-30b-v6e-vllm-torchtpu.md.txt) | Inference | TPU v6e (Trillium) | GKE | vLLM TorchTPU | Qwen3-30B-A3B |
| [Serve Gemma 4 26B on GKE with multi-host vLLM TorchTPU on Trillium TPUs](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-gemma4-26b-gke-trillium-vllm.md.txt) | Inference | TPU v6e (Trillium) | GKE | vLLM TorchTPU, Ray | Gemma 4 26B |
| [Serve Qwen3.5-397B on GKE with multi-host vLLM TorchTPU and PD disaggregation on TPU7x accelerators](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-qwen3-5-397b-ironwood-multi-host-vllm-torchtpu.md.txt) | Inference (PD disaggregation) | TPU7x (Ironwood) | GKE | vLLM TorchTPU, Ray | Qwen3.5-397B |
| [Serve Qwen3-30B-A3B on GKE with multi-host vLLM TorchTPU and PD disaggregation on TPU v6e accelerators](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-qwen3-30b-v6e-multi-host-vllm-torchtpu.md.txt) | Inference (PD disaggregation) | TPU v6e (Trillium) | GKE | vLLM TorchTPU, Ray | Qwen3-30B-A3B |
| [Serve Qwen3-Coder-480B on GKE with multi-host SGLang TorchTPU and PD disaggregation on TPU7x accelerators](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-qwen3-coder-gke-ironwood-multi-host-torchtpu.md.txt) | Inference (PD disaggregation) | TPU7x (Ironwood) | GKE | SGLang TorchTPU | Qwen3-Coder-480B |
| [Serve Qwen3-Coder-30B-A3B on GKE with multi-host SGLang TorchTPU and PD disaggregation on TPU v6e accelerators](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/serve-qwen3-coder-gke-v6e-multi-host-torchtpu.md.txt) | Inference (PD disaggregation) | TPU v6e (Trillium) | GKE | SGLang TorchTPU | Qwen3-Coder-30B-A3B |
| [Run SFT for Gemma 4 31B on multi-host TPU v6e](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/run-gemma4-31b-sft-maxtext.md.txt) | Fine-tuning (SFT) | TPU v6e (Trillium) | GKE (Cluster Toolkit) | MaxText | Gemma 4 31B |
| [Run supervised fine-tuning on a TPU VM by using MaxText](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/run-sft-v6e-8-tpu-vm-maxtext.md.txt) | Fine-tuning (SFT) | TPU v6e (Trillium) | Cloud TPU VM | MaxText | Gemma 3 4B |
| [Run reinforcement learning training on a TPU VM by using MaxText](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/run-rl-v6e-8-tpu-vm.md.txt) | Reinforcement learning (RL) | TPU v6e (Trillium) | Cloud TPU VM | MaxText | Llama 3.1 8B |
| [Run multi-host reinforcement learning training for Gemma 4 26B on TPU v6e](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/run-gemma4-26b-rl-maxtext.md.txt) | Reinforcement learning (RL) | TPU v6e (Trillium) | GKE (Cluster Toolkit) | MaxText, Pathways | Gemma 4 26B |
| [Run multi-host RL training for Qwen3-30B-A3B on TPU v6e](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/run-qwen3-30b-a3b-rl-maxtext.md.txt) | Reinforcement learning (RL) | TPU v6e (Trillium) | GKE (Cluster Toolkit) | MaxText, Pathways | Qwen3-30B-A3B |
| [Pre-train Muse Glimmer 30B on GKE with TorchTitan on TPU v6e](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials/tpu/pre-train-muse-glimmer-30b-v6e-torchtitan.md.txt) | Pre-training | TPU v6e (Trillium) | GKE (Cluster Toolkit) | TorchTitan, TorchTPU, PyTorch FSDP | Muse Glimmer 30B |

## Tutorial categories

You can browse AI Hypercomputer tutorials across the following workload
categories:

- [Inference and serving](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials.md.txt#inference): deploy and serve large language models (LLMs) on NVIDIA GPUs and Cloud TPU accelerators across single-host, multi-host, and PD disaggregation setups.
- [Fine-tuning and reinforcement learning](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials.md.txt#fine-tuning): adapt pre-trained models for text, vision, and reasoning tasks on GKE, Slurm, and Cloud TPU VMs.
- [Pre-training](https://docs.cloud.google.com/ai-hypercomputer/docs/tutorials.md.txt#training): pre-train LLMs from scratch on multi-host GKE and Slurm clusters provisioned with Cluster Toolkit.

### Inference and serving

These tutorials guide you through deploying and serving LLMs on
GKE across GPU and Cloud TPU accelerators.

For GPU serving, you deploy models on A4 VM instances with NVIDIA B200 GPUs.
You can run single-host inference with vLLM on GKE
Autopilot clusters. For multi-host serving and PD disaggregation, you
provision GKE Standard clusters with
Cluster Toolkit and deploy either vLLM or SGLang with NVIDIA
Dynamo.

For Cloud TPU serving, you deploy models on TPU v6e (Trillium) and
TPU7x (Ironwood) accelerators on GKE by using vLLM TorchTPU and
SGLang TorchTPU. Multi-host serving tutorials use Ray, Kubernetes JobSet, or
LeaderWorkerSet to coordinate workers across hosts. The inference tutorials
cover models from the DeepSeek, Gemma, gpt-oss, Llama, and Qwen
families.

### Fine-tuning and reinforcement learning

These tutorials guide you through adapting pre-trained models for specialized
text, vision, and reasoning tasks on GPUs and Cloud TPU accelerators.

For GPU fine-tuning and RL, you run workloads on A4X, A4, and A3 Ultra
instances across GKE (Autopilot and Standard)
and Slurm clusters. The GKE tutorials cover single-host and
multi-host setups, and the Slurm tutorials use multi-node clusters provisioned
with Cluster Toolkit. You use Hugging Face Accelerate, PyTorch
FSDP (including FSDP v2), and Hugging Face TRL for text fine-tuning, Ray for
multimodal vision tasks, and Ray with verl or NVIDIA NeMo RL for Group Relative
Policy Optimization (GRPO) RL workloads. The GPU fine-tuning and RL tutorials
cover Gemma 3, Gemma 4, Llama 4, Mixtral-8x7B,
and Qwen2.5.

For Cloud TPU post-training, you use the JAX-based MaxText framework to
run SFT workloads and GRPO RL workloads, with Pathways for multi-host RL. You
can start on a single-host `v6e-8` Cloud TPU VM or scale to multi-host
`v6e-32` GKE clusters provisioned with
Cluster Toolkit. The Cloud TPU post-training tutorials
cover Gemma 3, Gemma 4, Llama 3.1, and Qwen3.

### Pre-training

You can pre-train LLMs with randomly initialized weights on multi-host A4 VM
clusters that run GKE or Slurm and are provisioned with
Cluster Toolkit.

For GKE Standard pre-training, you deploy a multi-host
cluster configured with the following components:

- GPUDirect Remote Direct Memory Access (RDMA) networking
- Kueue
- Kubernetes JobSet
- Cloud Storage FUSE

You then use NVIDIA Megatron-Bridge and asynchronous checkpointing to pre-train
Mixture-of-Experts (MoE) models such as Qwen3-30B-A3B.

For Slurm pre-training, you deploy a multi-node cluster, build custom OS images,
configure shared Filestore instances, and set up GPUDirect RDMA
networking. You then use Hugging Face Accelerate and PyTorch FSDP to run
distributed pre-training jobs for models such as Qwen2 1.5B.

For Cloud TPU pre-training, you train dense models such as Muse Glimmer
30B on multi-host TPU v6e (Trillium) `v6e-64` slices on GKE
clusters provisioned with Cluster Toolkit. You build a container
image in Cloud Build and run distributed pre-training by using TorchTitan,
TorchTPU, and PyTorch FSDP. The workload writes training outputs to
Cloud Storage through Cloud Storage FUSE.

## What's next

- Learn how to identify the accelerator infrastructure for your workloads in [Choose your accelerator infrastructure](https://docs.cloud.google.com/ai-hypercomputer/docs/choose-infrastructure.md.txt).
- Compare orchestration and management models in [Choose an orchestrator and deployment option](https://docs.cloud.google.com/ai-hypercomputer/docs/choose-platform.md.txt).
- Review the cluster creation workflow in [Plan and create your AI infrastructure](https://docs.cloud.google.com/ai-hypercomputer/docs/process-overview.md.txt).
- Run reproducible model benchmarks using [Benchmarking recipes](https://docs.cloud.google.com/ai-hypercomputer/docs/workloads/overview.md.txt).