xbill9/gemma4-dev/tpu-vllm-trn1-2b-management
Claude Code and agent skill by xbill9/gemma4-dev
- community
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-managementSKILL.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
- Call
get_helpandcheck_trn1_quotas. A new account has 0 vCPUs of Trn
spot quota and 8 of on-demand, which is enough for one trn1.2xlarge.
- Call
save_hf_tokenif the secret does not exist yet; Gemma checkpoints are
gated and the instance reads the token from Secrets Manager at boot.
- Use
get_deployment_configfor a read-only review of launch settings. - 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.
- 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.
- Poll
list_trn1_instances, followget_server_logsthrough the Neuron
compile, then call verify_neuron_health.
- Reach the API through an SSM port forward (the security group should have no
inbound rules), then call query_model.
stop_trn1_instanceworks 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
- SKILL.md in the repositoryCheckingtpu-vllm-trn1-2b/skills/tpu-vllm-trn1-2b-management/SKILL.md
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
[](https://verified-skill.com/skills/xbill9/gemma4-dev/tpu-vllm-trn1-2b-management)