Guide: Running Gemma 4 on a Tesla T4 GPU via Google Cloud with vLLM
A developer has published a step-by-step guide for deploying Google's Gemma 4 2B model on a Tesla T4 GPU using Google Cloud's Compute Engine. The setup uses a minimal n1-standard-2 VM with 2 vCPUs, 7.8 GB RAM, and a T4 GPU running on Debian 13 with no pre-installed NVIDIA drivers. The software stack includes vLLM 0.29.0 and PyTorch 2.13.0, and takes approximately 362 seconds from script launch to a healthy inference endpoint. A companion shell script called vllm-t4 manages host-level state, while a suite of Python MCP tools handles deployment management. The guide also covers GPU-specific cloud configuration requirements, such as setting the maintenance policy to TERMINATE since live migration is unsupported for GPU-attached instances.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in