gke-inference-quickstart

Deploy optimized AI/ML inference workloads on GKE using Google's Inference Quickstart (GIQ). Covers model discovery, manifest generation, and deployment using native MCP tools and CLI.

googlecloudplatform/gke-mcp47 installsApache-2.0Synced Aug 27

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: gke-inference-quickstart
description: Deploy optimized AI/ML inference workloads on GKE using Google's Inference Quickstart (GIQ). Covers model discovery, manifest generation, and deployment using native MCP tools and CLI.
license: Apache-2.0
---

# GKE Inference Quickstart (GIQ)

## Purpose

This skill guides the deployment of AI/ML inference workloads on GKE using GIQ. It leverages `gcloud container ai profiles manifests create` to create optimized Kubernetes manifests based on Google's best practices and benchmarks.

## When to Use

- **Goal:** Deploy an AI model (e.g., Llama, Gemma, Mistral) to GKE.
- **Goal:** Generate a Kubernetes manifest for inference.
- **Context:** User asks about "GIQ", "Inference Quickstart", or "AI benchmarks" on GKE.

## Prerequisites

- A GKE cluster (preferably with GPU/TPU node pools, though GIQ can help identify requirements).
- `gcloud` CLI installed and authenticated (for discovery commands).

## Workflow

### 1. Discovery: Find Models and Hardware

Before generating a manifest, you often need to pick a valid combination of Model, Model Server, and Accelerator.

**List all supported models:**

```bash
gcloud container ai profiles models list
```

**Find valid accelerators and servers for a specific model:**

```bash
# Replace <MODEL_NAME> with a model from the list above (e.g., 'gemma-2-9b-it')
gcloud container ai profiles list --model=<MODEL_NAME>
```

**View benchmarks/profiles (optional):**
To see costs and latency targets:

```bash
gcloud container ai profiles list --model=<MODEL_NAME>
```

### 2. Generate Manifest

Use the `gcloud container ai profiles manifests create` command. This ensures you are using the latest supported flags and options directly from the CLI.

**Parameters:**

- `--model`: The model ID (e.g., `gemma-2-9b-it`).
- `--model-server`: The inference server (e.g., `vllm`, `tgi`, `triton`, `tensorrt-llm`).
- `--accelerator-type`: The accelerator type (e.g., `nvidia-l4`, `nvidia-tesla-a100`).
- `--target-ntpot-milliseconds`: (Optional) Target Normalized Time Per Output Token in ms.

**Example Command:**

```bash
gcloud container ai profiles manifests create \
  --model=gemma-2-9b-it \
  --model-server=vllm \
  --accelerator-type=nvidia-l4 \
  --target-ntpot-milliseconds=50 > inference-workload.yaml
```

### 3. Review and Deploy

1. **Save:** The example command above saves output to `inference-workload.yaml`. Ensure you have this file.
2. **Review:** Check for any placeholders or specific requirements (like PVCs or secrets).
   - _Note: Some models require Hugging Face tokens. Ensure query instructions for secrets are followed._
3. **Deploy:**
   ```bash
   kubectl apply -f inference-workload.yaml
   ```

## Troubleshooting

- **Invalid Combination:** If the manifest creation fails with an invalid combination error, re-run the discovery commands in Step 1 to verify the tuple (model, server, accelerator).
- **Quota Issues:** Ensure the target region has sufficient quota for the requested accelerator (e.g., `NVIDIA_L4_GPUS`).

## Reference

- **Docs:** [GKE Inference Quickstart Documentation](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference/inference-quickstart)

More Deployment & CI/CD skills

azure-enterprise-infra-planner

microsoft/azure-skills

Architect and provision enterprise Azure infrastructure from workload descriptions. For cloud architects and platform engineers planning networking, identity, security, compliance, and multi-resource topologies with WAF alignment. Generates Bicep or Terraform directly (no azd). WHEN: 'plan Azure infrastructure', 'architect Azure landing zone', 'design hub-spoke network', 'plan multi-region DR topology', 'set up VNets firewalls and private endpoints', 'subscription-scope Bicep deployment', 'Azure Backup for VM workloads'. PREFER azure-prepare FOR app-centric workflows.

387.5k

azure-kubernetes-app-deploy

microsoft/azure-skills

Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster, containerize app for Kubernetes, generate K8s manifests for Azure, set up CI/CD for AKS, my AKS deployment is failing safeguard checks, I have a Django/Express/Spring Boot app to run on AKS. DO NOT USE FOR: creating or provisioning an AKS cluster (use azure-kubernetes), assessing migration to AKS Automatic (use azure-kubernetes-automatic-readiness), or deploying to non-AKS targets like Web Apps, Container Apps, or Functions.

380.4k

finetuning

microsoft/azure-skills

Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file upload, calibrate grader, deploy fine-tuned model, evaluate fine-tuned model. DO NOT USE FOR: general model deployment without fine-tuning (use deploy-model), agent creation (use agents), prompt optimization without training (use prompt-optimizer).

323.2k

← All Deployment & CI/CD skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY