/gpu-pytorch-g6-2b-q4w4a16:gpu-pytorch-g6-2b-q4w4a16-managementfrom gpu-pytorch-g6-2b-q4w4a16
Manages AWS EC2 G6 instances (NVIDIA L4) for serving Gemma 4 E2B with a custom PyTorch int4 engine (Triton GEMV, CUDA-graph decode). Handles provisioning, deployment, and debugging of the q4w4a16 inference rig.
Ships in gpu-pytorch-g6-2b-q4w4a16. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Provision and operate EC2 G6 (x86_64 host + NVIDIA L4 GPU) serving Gemma 4 E2B
with Google's QAT 4-bit weights (xbill9/gemma-4-E2B-it-qat-q4_0-w4a16-ct-text, vocabulary
tables from -text-emb4) through the gpu-pytorch-g6-2b-q4w4a16 MCP server.
The engine is local-pytorch-1650ti-2b-q4w4a16's: every int4 weight packed on the GPU, a
Triton int4 GEMV, split decode attention, and the decode step compiled with Inductor and
replayed as a CUDA graph. The AWS half is forked from gpu-pytorch-g6-2b (dense bf16,
stock transformers, same instance family).
create_g6_instance → get_install_progress → verify_gpu_arch → deploy_torch_server
→ get_torch_logs → verify_model_health
Cloud-init installs the runtime only (pinned transformers==5.16.1,
compressed-tensors==0.17.0, accelerate==1.14.0 into the DLAMI's torch, and checks
Triton imports). deploy_torch_server ships the payload (openai_server.py,
e2b_engine.py, w4gemv.py, w4attn.py, gemma4_tools.py) over SSM.
Always make skill before deploy_torch_server: the MCP server ships the payload next
to itself. verify_model_health compares the served build id with the local digest.
Engine start-up downloads both checkpoints, times an fp16 and an fp32 GEMM to choose the
prompt-read dtype, loads, and compiles and captures the decode step; follow it with
get_torch_logs. The first JSON line it prints carries the device, the chosen dtype, the
GEMM rates, weights and K/V MiB, and the load time.
e2b_engine.py), even though the L4
has bf16.w4gemv.py's per-shape tilings were tuned on the GTX 1650 Ti; they run here but are
not tuned for the L4.--prefill-dtype auto decides on the device.MAX_MODEL_LEN=131072./metrics carries the tpu_jax_* series get_metrics parses; quote the
tpu_jax_decode_tokens_per_second gauge.tpu_jax_degenerate_responses_total is what verify_model_health reads either side
of its probe; a non-empty reply is not evidence of health.save_hf_token), never in user data.ManagedBy=gpu-pytorch-g6-2b-q4w4a16.torch-g6-q4.service, under /opt/torch-g6-q4.Record results in benchmarks/runs/<date>-<what>-g6/.
mcp/e2b_engine.py (opens in a new tab)mcp/gemma4_tools.py (opens in a new tab)mcp/openai_server.py (opens in a new tab)mcp/project-setup.sh (opens in a new tab)mcp/requirements-serving.txt (opens in a new tab)mcp/requirements.txt (opens in a new tab)mcp/server.py (opens in a new tab)mcp/w4attn.py (opens in a new tab)mcp/w4gemv.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
g6-instance, int4-inference, gemma-4, triton-gemv, cuda-graph, ec2-provisioning
Other plugins' skills for the same job
npx claudepluginhub xbill9/gemma4-dev --plugin gpu-pytorch-g6-2b-q4w4a16