Run Gemma with Ollama on Cloud Run
Deploy Google's Gemma 2B open model on Cloud Run using Ollama for CPU-based inference with this sample project, providing an accessible way to run smaller LLMs in a serverless environment.
Google Cloud's Python buildpack reads pyproject.toml directly, installs packages with uv on Python 3.14, and detects your web server entrypoint without a Dockerfile or Procfile.
Pass --no-build to gcloud beta run deploy to skip Cloud Build and deploy from your local directory to Cloud Run in seconds.
Cloud Run supports on-demand NVIDIA L4 and RTX PRO 6000 Blackwell GPUs, enabling fast, flexible, and cost-effective deployment of AI workloads with full scale-to-zero capabilities.