vllm-gemma-4-31b

vllm-gemma-4-31b is a skill for Claude Code from air-gapped/skills. It costs 60 tokens per session (7,179 once invoked), scanned A, original, MIT.

A measured deployment reference for serving the Gemma 4 31B language model with vLLM, a system for running language models through an API. It records tested GPU sizing, memory, batching, caching, and prompt-template settings.

In plain words
What is it for?
Use it when deploying Gemma 4 31B on multi-GPU servers with vLLM and choosing tensor parallelism, memory limits, sequence limits, KV-cache type, speculative decoding, and chat templates.
Why use it?
It gives operators a known starting point for this specific model and version instead of guessing at hardware and server settings. The measurements are tied to a particular vLLM release and should not be treated as general rules.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the vllm plugin — 16 skills shipped together

Good fit Use it when deploying Gemma 4 31B on multi-GPU servers with vLLM and choosing tensor parallelism, memory limits, sequence limits, KV-cache type, speculative decoding, and chat templates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/air-gapped/skills/vllm-gemma-4-31b
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add air-gapped/skills --skill vllm-gemma-4-31b
Clone the repo
git clone --depth 1 https://github.com/air-gapped/skills

Made for: Claude Code.

Or install vllm, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vllm-gemma-4-31b

README.md
[![agentmods](https://agentmods.dev/badge/skills/air-gapped/skills/vllm-gemma-4-31b/github.svg)](https://agentmods.dev/skills/air-gapped/skills/vllm-gemma-4-31b)
Your own site
<a href="https://agentmods.dev/skills/air-gapped/skills/vllm-gemma-4-31b"><img src="https://agentmods.dev/badge/skills/air-gapped/skills/vllm-gemma-4-31b/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vllm-gemma-4-31b

Your own site · 80×15
<a href="https://agentmods.dev/skills/air-gapped/skills/vllm-gemma-4-31b"><img src="https://agentmods.dev/badge/skills/air-gapped/skills/vllm-gemma-4-31b.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,179 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.07179
Opus 5.5 $0.00024 $0.02872
Sonnet 5.5 $0.00012 $0.01436
Haiku 4.5 $0.00006 $0.00718

Measured 6d ago against content hash b7fc6cbf9417, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vllm-gemma-4-31b scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/vllm-gemma-4-31b/SKILL.md · 444 lines

How it starts

The opening of the file, as written. The whole thing — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gemma 4 31B on vLLM — operating-point reference

One model, measured. This is a worked operating point, not the general method. The reusable machinery lives in the vllm plugin: flag and env semantics in vllm-configuration, the K8s/container manifest in vllm-deployment, reproducing or re-measuring these numbers in vllm-benchmarking, and the prompt-side template in vllm-chat-templates. Deploying a different model? Use those, not this.

For platform engineers deploying google/gemma-4-31B-it (BF16, FP8) or its community quants (e.g. cyankiwi/gemma-4-31B-it-AWQ-4bit, RedHatAI/*-Gemma-4-31B-*) on vLLM 0.29.0+ (version floor below). Pulls together measurements from a 2× H100 SXM5 80GB (NVLink) audit on 2026-04-30 — taken on vLLM 0.20.0 and not re-run since (see references/bench-numbers.md; the shape of the curves has held, but treat the absolute figures as 0.20.0 observations) — and the upstream constraints that shape the answer.

Version floor: run vLLM 0.29.0 or newer. Do not pin an older release: v0.28.x and below carry the <turn|> / enable_thinking bug (#49955) that #52430 fixed in v0.29.0, and miss the 0.30.0+ multimodal-prefix Triton fix (#53147, fact #1). The ViT CUDA graph (#46837, v0.27.0+) is usable only from v0.33.0 (pitfall below).

MRv2 capture-headroom OOM on v0.26.0–v0.28.x (#50159): Model Runner V2 sized the KV cache without reserving CUDA-graph memory (profile_cudagraph_memory() returned 0; ~0.12 GiB held back where MRv1 holds ~0.65 GiB), so it runs out of CUDA memory under saturating load, sooner with EAGLE, worst on large models on small cards. v0.29.0 fixes the reservation (#53306). #50159 is still open with no re-test on a fixed release: on v0.29.0–v0.33.0, run a saturating-load test at the chosen --gpu-memory-utilization after an engine upgrade. If it OOMs, or on v0.26.0–v0.28.x, pick one:

  • leave ≥0.5 GiB/GPU more margin (lower --gpu-memory-utilization by ~0.01 on 80 GB cards);
  • VLLM_USE_V2_MODEL_RUNNER=0 to force MRv1 (v0.26.0–v0.33.0 only);
  • --enforce-eager (removes the gap, costs decode speed).

v0.34.0+: Model Runner V1 is removed. Unset VLLM_USE_V2_MODEL_RUNNER: any value but 1 fails at startup. The KV cache is sized after CUDA-graph capture and warmup (extensible KV cache, on by default), so --gpu-memory-utilization is no longer the OOM lever. Delete the flag from the recipes below unless other processes share the GPU: unset resolves to 1.0, and an explicit value caps what the KV cache can take. The 0.94 cliff, the 0.97 capture OOM and the boot ceiling below were measured with the estimate-based sizing and hold for v0.33.0 and older, or with --no-enable-extensible-kv-cache. Default --block-size is now 64 (was 16): leave it unset, since the FP8-KV FA4 path for the 512-dim layers on H100/H200 needs a block size divisible by 64.

#50477 (named / required tool_choice unenforced, fix PR #51524 open) affects every version from v0.24.0 on (see the pitfall below).

Read the full file on GitHub · 444 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +29 lines b7fc6cbf9417
  2. 21d ago Changed · +34 lines 607a7eb21c84
  3. 1mo ago Changed · -130 lines 1b29324d4d78
  4. 2mo ago Changed · +28 lines 62aeb78fd6c5
  5. 2mo ago Changed 148a52daab8c
  6. 2mo ago First seen · 483 lines · 60 tokens per session scan A 3ac61e868b82

Subscribe to this mod's changes

vllm-gemma-4-31b is a skill published in the GitHub repository air-gapped/skills (8 stars, last pushed 6d ago), licensed MIT. It adds 60 tokens to every session and 7,179 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

vllm-gemma-4-31b compared with skills from other repositories

vllm-gemma-4-31b next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vllm-gemma-4-31bair-gapped/skillsSkill86d agoMITA60Claude Code
stripe-projectsNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
multi-tenant-architecturemblode/agent-skillsSkill229yesterdayMITA72Claude Code, Codex
event-driven-architecturetravisjneuman/.claudeSkill1152d agoMITA50Claude Code
edge-computingtravisjneuman/.claudeSkill1152d agoMITA63Claude Code
hono-ops0xDarkMatter/claude-modsSkill867d agoMITA61Claude Code
spring-cloud-eurekaclaude-dev-suite/claude-dev-suiteSkill51yesterdayMITA88Claude Code