xbill9/gemma4-dev/tpu-vllm-trn1-2b-management

Claude Code and agent skill by xbill9/gemma4-dev

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Provision and operate AWS EC2 Trainium (trn1) instances running Gemma-4 through the vLLM-Neuron DLC, via the tpu-vllm-trn1-2b MCP server.

Install

npx vskill@latest install xbill9/gemma4-dev/tpu-vllm-trn1-2b-management

SKILL.md

The same SKILL.md was published earlier as xbill9/gemma4-dev/tpu-vllm-trn1-2b-management.

AWS Trainium (trn1) management, vLLM-Neuron DLC

Use the tpu-vllm-trn1-2b MCP tools for trn1 lifecycle work.

Workflow

  1. Call get_help and check_trn1_quotas. A new account has 0 vCPUs of Trn

spot quota and 8 of on-demand, which is enough for one trn1.2xlarge.

  1. Call save_hf_token if the secret does not exist yet; Gemma checkpoints are

gated and the instance reads the token from Secrets Manager at boot.

  1. Use get_deployment_config for a read-only review of launch settings.
  2. Confirm the subnet, security group, and IAM instance profile. The profile

needs AmazonSSMManagedInstanceCore and secretsmanager:GetSecretValue on the token secret. trn1.2xlarge is offered in one us-east-2 zone (us-east-2c); the subnet has to be in a zone that offers it.

  1. Call create_trn1_instance; creation starts billing. Launches default to

spot; pass spot=False when the user asks for on-demand or the spot quota is still 0. On a capacity or quota error, report it and offer on-demand instead of retrying silently.

  1. Poll list_trn1_instances, follow get_server_logs through the Neuron

compile, then call verify_neuron_health.

  1. Reach the API through an SSM port forward (the security group should have no

inbound rules), then call query_model.

  1. stop_trn1_instance works for on-demand instances only.

terminate_trn1_instance is permanent and requires explicit approval.

What to expect

The DLC is vLLM-Neuron 0.16 (SDK 2.31.1), the newest line that still covers Trn1; 0.21 and 0.24 list Trn2/Trn3 only. No vLLM-Neuron release has a Gemma-4 model class, and this DLC came up healthy on inf2 and served gibberish for Gemma-4. On trn1 (2026-10-05) it never started: the image's Transformers 4.57.6 has no gemma4 model type and vLLM 0.16 has no Gemma-4 class, so the container exits during configuration and restarts. A crash loop with does not recognize this architecture in get_server_logs is this known result, not a deploy fault.

Judge the endpoint by the text it returns, never by its status. Ask a question with a known answer ("What is the capital of France?") and report the answer verbatim. A 200 OK with fluent nonsense, a repeated token, or an empty completion is a failed model, not a working deploy. For a working Gemma-4 endpoint on trn1, point the user at tpu-pytorch-trn1-2b.

Guardrails

  • Accept only trn1.* types; never silently fall back to GPU or inf2.
  • Use Systems Manager for remote commands. Do not expose SSH or the API port.
  • Never put the HF token in user data.
  • Scope discovery to ManagedBy=tpu-vllm-trn1-2b.

The caller needs EC2, SSM, Secrets Manager and Service Quotas permissions.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/xbill9/gemma4-dev/tpu-vllm-trn1-2b-management/badge)](https://verified-skill.com/skills/xbill9/gemma4-dev/tpu-vllm-trn1-2b-management)

Something wrong with this skill or its page? Tell us.