Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xbill9v0.1.0Apache-2.0In 1 marketplace
Manage Google Cloud TPU capacity and Gemma 4 vLLM serving on TPU VMs: provisioning, queued resources, quotas, cost estimates, benchmarking, and SRE diagnostics via the tpu-jax-v5e1-2b MCP server.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
This repository is an experimental, inspectable inference path for
google/gemma-4-E2B-it-qat-w4a16-ct on a single-chip Cloud TPU. It loads the QAT
checkpoint directly from safetensors, executes Gemma 4 in JAX without PyTorch,
and exposes an OpenAI-compatible HTTP/SSE server.
Target versus measurements. The default deployment target is a v5e-1
flex-start VM — ct5lp-hightpu-1t, 16 GB HBM, us-west4-a — which is what
server.py, set_env.sh, and deploy.md provision. Every measured
number on this page was taken on a v6e-1 (ct6e-standard-1t, 32 GB HBM3) and
is labelled as such. There are no v5e-1 measurements yet, so do not quote one from
here. The 16 GB budget also changes which checkpoint to load: deploy.md works
through why -w4a16-ct is the safe v5e-1 default even though the bf16
-q4_0-unquantized variant is the faster of the two on a v6e-1.
The project began with a practical incompatibility: the tested vLLM TPU stack could not load this QAT export. Building the missing path uncovered a broader measurement story about KV-cache accounting, JAX buffer donation, quantization, static-shape batching, and the gap between a fast kernel and a useful server.
ct6e-standard-1t with 32 GB HBM3.The final 2026-07-29 revalidation used checkpoint-shaped static programs, isolated processes, warmup, and 15 timed samples.
| Finding | Measured result |
|---|---|
| Buffer donation | 1.60–1.62× faster with BF16 KV |
| INT8 KV | 1.17–1.19× faster than donated BF16 |
| INT8 KV capacity | 1.82–1.98× donated BF16 capacity |
| INT4 PLE | Parameter tree 53% smaller; no meaningful throughput gain |
| Best static decode kernel | 2,888 aggregate tok/s, B=32, context 8,192 |
| Real-checkpoint HTTP server | Approximately 139–141 aggregate tok/s |
The largest optimization was buffer donation. Without donate_argnums, a
single-token dynamic_update_slice could leave two full KV caches live during
decode. Donation removed that copy, increased throughput, and nearly doubled
the resident-token ceiling.
INT8 KV then reduced bandwidth and approximately doubled capacity. Its real checkpoint quality check measured 28.41 versus 28.73 perplexity for BF16, with 97.08% greedy-token agreement over 583 teacher-forced steps. Error did not grow through a separate 968-step continuous decode.
Read the correction history before quoting an absolute capacity number:
benchmarks/runs/2026-07-29-kv-quant-v6e1/REPORT.md.
Earlier results were withdrawn after finding an artificial power-of-two capacity
invariant, an undonated cache copy, and an incorrect roofline accounting of the
PLE gather.
The 2,888 tok/s point is a static-shape decode-kernel measurement using architecture-shaped synthetic parameter values. Static values do not change the compiled work, but this is not an HTTP benchmark or a direct vLLM comparison.
The real checkpoint served through jax_openai_server.py measured:
| Prompt tokens | Prefill | Decode |
|---|---|---|
| 506 | 9.3 ms | 141.1 tok/s |
| 2,045 | 32.0 ms | 140.5 tok/s |
| 7,679 | 318.6 ms | 138.5 tok/s |
At HTTP concurrency 2/4/8, aggregate throughput remained 128.7/133.6/143.3 tok/s while median request latency rose 497/952/1,775 ms. Every request succeeded, but none formed a device batch.
The current server runs independent B=1 executions. Reaching the batched-kernel
rate requires a request batcher, batched KV ownership, continuous admission, and
prefix reuse. Until then, this is a validated experimental engine—not a vLLM
replacement. Full results:
benchmarks/runs/2026-07-29-real-http-v6e1/REPORT.md.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub xbill9/gemma4-dev --plugin tpu-jax-v5e1-2bPlugins from other owners that cover similar ground