← Back to Leaderboard
KARahim3

ARahim3/kaggle-tpu-lab

TPU inference lab with vllm-tpu and JAX endpoints for coding agents

View on GitHub ↗
Engineering Health (Methodology)
B+ · 68/100
Maintenance Activity
● Updated 1mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance26/35
Fork Adoption16/25
Release Cadence6/20
License Clarity20/20
GPUAPICLI
Total Stars
★ 825
24h Growth
+1
7d Growth
+11
Forks
110

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

ARahim3/kaggle-tpu-lab Star History (2026-09-02 - 2026-12-04) ALL-TIME STAR HISTORY (2026-09 – 2026-12) +824 in 93d · avg +9/day 871 436 0 2026-09-02: ★ 12026-09-12: ★ 1902026-09-19: ★ 4892026-09-26: ★ 5292026-10-03: ★ 5452026-10-10: ★ 5712026-10-17: ★ 6672026-10-24: ★ 7102026-10-31: ★ 7482026-11-06: ★ 7652026-11-12: ★ 7902026-11-18: ★ 8052026-11-24: ★ 8122026-11-30: ★ 8222026-12-04: ★ 825 ★ 825 09-02 10-18 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Runtime split: Patched vllm-tpu for bf16 Qwen3.8-27B; a model-specific JAX engine for GLM-5.3-Flash.
GLM weight layout: 320B MoE with 3-bit expert weights and int8 weights elsewhere.
Long-context serving: Both configurations list 262k context and support prefix caching.
Concurrency profile: Qwen reaches ~540 tok/s at eight streams; GLM reaches ~170 tok/s at three in the respective shipped configurations.
Client integration: OpenAI- and Anthropic-compatible APIs exposed via a Cloudflare tunnel with an API key.
Deployment paths: Run-all Kaggle notebooks, a Kaggle CLI launcher, and a Google Cloud TPU VM recipe for GLM.
Best For

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.

Skip If

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.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

GPUAPICLI
ANTHROPIC_BASE_URL=<url> ANTHROPIC_AUTH_TOKEN=<key> ANTHROPIC_MODEL=<model> claude

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
kaggle-tpu-lab ★825+11PythonMITTPU inference lab with vllm-tpu and JAX endpoints for coding agents
OmniRoute92.1k+1.5kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback
bifrost10.2k+125GoApache-2.0Self-hosted Go gateway for routing and governing multi-provider LLM traffic
freellmapi62k+2.6kTypeScriptMITSelf-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.

Raw .md ↗
curl -sL https://repoforai.com/repo/ARahim3/kaggle-tpu-lab.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

ARahim3/kaggle-tpu-lab Star History on RepoForAI

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?

The Kaggle notebook starts the model server, opens a Cloudflare tunnel, and prints a URL and API key. Configure Claude Code with ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC_MODEL. Codex CLI and opencode are also documented integration targets. Test the API features your client depends on rather than assuming full compatibility from the protocol names.

Do I need a local GPU, and how should I size long-context workloads?

No local GPU is needed for the Kaggle route. Inference runs across the eight chips of a TPU v5e-8, with Qwen in bf16 and GLM using 3-bit experts and int8 for the rest. The supplied measurements do not establish accelerator memory headroom at the 262k context limit under concurrent load; test with representative prompt lengths and concurrency.

Can I use this commercially or run it on my own cloud instance?

The repository code is MIT-licensed, but that does not establish commercial rights for the model weights. Check each model's terms and the hosting platform's usage and data-handling policies before commercial deployment. The GLM recipe can run on a rented Google Cloud TPU VM; that removes the Kaggle session cap, not the licensing or operational obligations.

When is this a better fit than the OpenAI API?

Use this lab when you want to evaluate these specific open-weight models on TPUs and can tolerate session restarts and URL changes. Choose a managed API such as the OpenAI API when avoiding accelerator operations and maintaining a stable integration matter more than controlling the model and runtime. API compatibility does not imply equivalent models, behavior, or feature coverage.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining ARahim3/kaggle-tpu-lab? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature ARahim3/kaggle-tpu-lab on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare