ARahim3/kaggle-tpu-lab
TPU inference lab with vllm-tpu and JAX endpoints for coding agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
kaggle-tpu-lab packages two model-specific TPU serving recipes rather than a single inference engine. qwen38-27b/ runs Qwen3.8-27B on vllm-tpu with one patch; glm53-flash/ runs GLM-5.3-Flash on a purpose-built JAX engine. Each recipe includes a serving script under kernel/, a run-all notebook under notebook/ generated from it, and any patch or engine code the model needs.
On Kaggle, the notebook attaches public datasets containing weights and, where applicable, a prebuilt compilation cache. It initializes the engine across all eight TPU chips, starts the server, and exposes it through a Cloudflare tunnel. The endpoint speaks OpenAI- and Anthropic-compatible APIs. The launcher and notebook use the same configuration block; the documented extension pattern is to add a model directory with its own runtime recipe.
Key Capabilities & Differentiators
Both configurations list a 262k context window and prefix caching. Qwen3.8-27B runs in unquantized bf16 and delivers ~130 tok/s on one stream, ~540 tok/s aggregate at eight streams, and 10,300 tok/s in prefill. GLM-5.3-Flash is a 320B mixture-of-experts model with 3-bit expert weights and int8 weights elsewhere. It delivers ~165 tok/s on one stream, ~170 tok/s aggregate at three streams, and ~1,800 tok/s in prefill.
These figures are for the shipped configurations. GLM leads on single-stream throughput, while Qwen posts higher prefill and aggregate throughput at the reported test points. The concurrency points differ, so they are not a matched-load comparison. Neither the throughput figures nor the context limit establish response latency at 262k tokens; benchmark realistic prompts and concurrency if the endpoint will serve interactive agents.
Trade-offs & Limitations
This is a way to evaluate specific open-weight models without owning a GPU. The two backends have different maintenance surfaces: Qwen relies on a patched vllm-tpu stack, while GLM relies on a model-specific JAX engine. GLM's reported single-stream advantage is not enough to pick it for a shared endpoint: Qwen delivers more aggregate throughput at the reported concurrency points, and the results do not establish the quality impact of GLM's quantized weights.
Compared with a managed API such as the OpenAI API, the Kaggle path gives you control over the model recipe but makes you responsible for restarts, changing URLs, and access to a public tunnel. Test the features your clients use before treating either compatibility layer as a drop-in replacement. The MIT license covers repository code; check model-weight terms and hosting policies separately.
Hardware & Deployment Guide
The Kaggle notebook route needs no local installation, but it requires an account with TPU access. Phone verification is required, and some accounts also need a Persona identity check. The free quota is around 20 TPU hours per week. Measured startup-to-URL times are ~22 minutes for Qwen and 6–13 minutes for GLM. The final cell runs the server and must stay active. Keepalive does not remove the session limit of just under nine hours; restarting yields a new URL.
The terminal route requires Python 3.9+ and the Kaggle CLI. python launch.py serve starts Qwen by default; the launcher also provides status and stop. For GLM, gcp/ provides setup, dataset, and run scripts for rented v5litepod-8 or v6e-8 TPU VMs, without Kaggle's queue or session cap. There is no published GitHub release to use as a version pin; record the tested commit if reproducibility matters.
Evaluating Qwen3.8-27B or GLM-5.3-Flash on TPUs, testing long-context coding-agent workloads, or running a short-lived API endpoint without local accelerator hardware.
You need a stable, continuously available endpoint, verified coverage of a specific API feature set, or a private network deployment ready out of the box.
Quick Start & Installation
ANTHROPIC_BASE_URL=<url> ANTHROPIC_AUTH_TOKEN=<key> ANTHROPIC_MODEL=<model> claude
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| kaggle-tpu-lab ★ | 825 | +11 | Python | MIT | TPU inference lab with vllm-tpu and JAX endpoints for coding agents |
| OmniRoute | 92.1k | +1.5k | TypeScript | MIT | Self-hosted OpenAI-compatible gateway for multi-provider routing and fallback |
| bifrost | 10.2k | +125 | Go | Apache-2.0 | Self-hosted Go gateway for routing and governing multi-provider LLM traffic |
| freellmapi | 62k | +2.6k | TypeScript | MIT | Self-hosted LLM gateway for routing across free tiers and custom endpoints |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ARahim3/kaggle-tpu-lab.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about kaggle-tpu-lab
How does a coding agent connect to the model server?
Do I need a local GPU, and how should I size long-context workloads?
Can I use this commercially or run it on my own cloud instance?
When is this a better fit than the OpenAI API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy