Kaggle Tpu Lab — Development skill for Claude Code
Qwen3.8-27B (bf16) on a free Kaggle TPU: OpenAI-compatible endpoint, 262k context, ~130 tok/s, works with Claude Code, Codex, Opencode and Pi.
How to install Kaggle Tpu Lab
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ARahim3/kaggle-tpu-lab and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Kaggle Tpu Lab does
Qwen3.8-27B (bf16) on a free Kaggle TPU: OpenAI-compatible endpoint, 262k context, ~130 tok/s, works with Claude Code, Codex, Opencode and Pi.
Alternatives in Development
- Project Memory: AgentSys — Cross-tool compatible: Works across all 5 platforms - Claude Code, OpenCode, Codex CLI, Cursor, and Kiro 622 ★
- Dario — A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline 485 ★
- Notebook Intelligence — A JupyterLab extension supporting Claude Code, Copilot, Ollama, and OpenAI-compatible LLMs, with MCP, skills 331 ★
README
kaggle-tpu-lab
**Serve Qwen3.8-27B — a frontier-class 27B hybrid-attention model — on Kaggle's free TPU v5e-8, with a public OpenAI-compatible endpoint you can plug into Claude Code, Codex CLI, opencode, or anything else that speaks the OpenAI API.**
No paid GPU, no cloud account, no quantization. Full bf16 weights, up to the model's native **262,144-token context**, and real speed:
| What | Measured (TPU v5e-8, bf16, TP=8) |
|---|---|
| Decode, single stream | ~130 tok/s with MTP speculative decoding (78 without, measured before the token-bucket change) |
| Decode, 8 concurrent streams | ~540 tok/s aggregate (~107 tok/s each, MTP on) |
| Decode, 16 concurrent streams | ~900 tok/s aggregate (with --mtp 0 — see tuning note below) |
| Prefill | 10,300 tok/s — a 105k-token prompt in ~10 s |
| Native 262k context | works — 225k-token prompt prefilled in ~28 s |
| Time to live endpoint | ~22 min with the env dataset attached (~12 with --text-only, ~6 with --fast-start; ~40 without the dataset) |
| Output correctness with MTP | verified lossless — 12/12 greedy prompts exactly match non-speculative |
Tuning note: speculative decoding pays off up to ~8 concurrent streams and fades beyond that (verification competes with batch compute). Serving many users? Launch with `--max-model-len 131072 --max-num-seqs 16 --mtp 0` for max aggregate throughput.
Why this works (the one-paragraph version)
Qwen3.8-27B is a hybrid: 48 of its 64 layers are **gated-DeltaNet linear attention**, only 16 are classic full attention. That makes its KV cache tiny (~64 KB/token), which is why a 27B can serve 131k+ contexts on 8×16 GB TPU chips with room to spare. Until recently no TPU stack could run the DeltaNet layers — [vllm-tpu](https://github.com/vllm-project/tpu-inference) 0.28.0 shipped native Pallas kernels for them (Aug 2026), and this repo is the recipe that puts it all together on Kaggle's free tier: a pre-built Python runtime with pinned versions, p
Related Skills
Openapis
Free Claude API + free OpenAI API in one unified proxy. Drop-in compatible with Anthropic SDK, OpenAI SDK, Cla
Q Agent
Self-hosted llama.cpp stack for Qwen + MTP (multi-token prediction): a 125B MoE read from ≥ 80 GB of RAM, or a
Claude Code Image Gen
A Claude Code skill that generates images through OpenAI, Gemini, Higgsfield, FLUX, or any OpenAI-compatible e
Polywave Go
Provider-agnostic parallel agent coordination for LLMs — Anthropic, OpenAI, Ollama, or any OpenAI-compatible e
Gvs5h
GVS5H: Five Qwen3.8-27B Models Match Claude Fable 5 on LiveCodeBench Hard Fable 5 Level Coding for a Fifth the
Vllm Turing
Turing (sm75) speedups for vLLM: Qwen3.8-27B W8A8 on 2x RTX 2080 Ti with custom CUDA kernels, long-context ver
Related Agents
Codex CLI
Codex CLI → any OpenAI-compatible endpoint
Grok Agent 01
ONLY job: find free or freemium AI token/API plans (OpenAI-compatible, Anthropic, Google, open routers, studen
Openrouter Agent
Runs a model from any of ~60 vendors through OpenRouter's OpenAI-compatible endpoint, billed per token against