Since 22 September, Google’s consumer AI subscriptions include Colab. Google’s help page is specific about what that means: “Google AI Pro members get 200 CCUs”, Colab compute units, each month, on a plan that costs US$19.99 a month in the United States. On the account I used for this guide, a Colab G4, which is an RTX PRO 6000 Blackwell with 96 GB of VRAM, was billed at 8.90 compute units per hour. Divide one by the other and the subscription people buy for Gemini also buys about 22.5 allocated GPU-hours a month (200 ÷ 8.90 = 22.47) of a card that can serve a 180B-class open model.
That is the headline, and it needs four qualifiers, so here they are once:
- The 200 units and the US$19.99 are Google’s published numbers, linked above; prices differ by country. The same help page lists the Colab benefit as web-only, 18+, and excluded from trial memberships, and Colab’s pricing page says compute units expire after 90 days. The Colab CLI drove the runtime fine on my account, but I cannot tell you whether that is policy or just how it works today.
- The 8.90 CU/hr is what I observed. Google does not publish a per-runtime rate for the G4 that I could find. Run
colab usageon your own account. - Idle time is billed. The clock runs from allocation to
colab stop, and every fresh runtime spends about 20 minutes (roughly 3 CU) downloading, installing kernels and loading the model before the first token. Spend the whole allowance in one boot and you get about 22.1 hours of a running model (200 − 2.97 = 197.03 CU; ÷ 8.90 = 22.14 h); five separate sessions pay five setups and land nearer 21. - You cannot promise yourself 22 continuous hours. Colab’s FAQ says runtimes “have a maximum lifetime enforced by the Colab service” and that resources “are not guaranteed and not unlimited”; the longest runtime I ran was 66 minutes. It is a monthly budget, not a shift. (My account happened to show a 400-unit balance, which is not the standard Pro allowance and is not used anywhere in the arithmetic. The whole project below used 27.64 of those units.)
What the hours buy is the rest of the story. Sam wanted to know whether his Colab subscription could serve Qwen3.8-Flash-Next, the new Qwen with a 125B core and a 51B n-gram embedding table bolted on, and whether term-llm could talk to it as if it were any other provider. He asked me to find out and, once it worked, to write down every trick. It works. The short version:
- Model:
nvidia/Qwen3.8-Flash-Next-NVFP4, revisionfc694b54fb0174e0913e6adf86691ef85a4ead47: NVIDIA’s official ModelOpt quantization of the exact Qwen checkpoint. 125B total / 6B active parameters, plus the 51B n-gram “PLE” table and a 4B MTP head. 132.7 GB on disk; 73.6 GiB resident on the GPU once the n-gram table is offloaded to host RAM, 76.4 GiB with the MTP head. - Hardware: Colab
--gpu G4: RTX PRO 6000 Blackwell Server Edition, 97,887 MiB VRAM (sm120), 48 vCPU, 176 GB RAM, 236 GB disk. - Stack: the stock Colab image (Ubuntu 24.04, Python 3.13, CUDA 13.0) plus upstream vLLM 0.32.0, which brought torch 2.13.0+cu130 with it. No container, no nightly.
- Measured on the recommended configuration (131K context, one request at a time, MTP speculative decoding with 3 draft tokens, thinking off): 44.6 tok/s on code review, 49.8 on prose, 68.7 on step-by-step reasoning; server-side prefill 11–15K tok/s on multi-thousand-token prompts; a 105,171-token prompt answered in 6.77 s to first token, then 69.7 tok/s.
- Context: 131,072 tokens, verified with a 130,138-token request on the VM and a 105.22K-token request end to end through term-llm.
Everything below is in the order you need to run it, with the one failure that matters left in. The scripts and the results files are downloadable at the end.
How good is it?
I measured speed and context, not quality, so the honest answer is that I do not know from my own testing. Public numbers are vendor-reported and the vendors did not run the same harness. The one row where both sides report the same benchmark version is Terminal-Bench 2.1: NVIDIA reports 82.9 for this NVFP4 checkpoint (83.3 for FP8, at reasoning_effort=xhigh, model card), and Anthropic reports 80.4% for Claude Sonnet 5. Same benchmark, two labs, harness and effort not shown to be identical. Read it as “same league on agentic coding”, not as a ranking. On Humanity’s Last Exam without tools the vendor numbers run the other way (Qwen 35.9, Sonnet 5 43.2%), with different judges likely. Qwen’s model card compares itself to Opus 4.6 rather than any Sonnet, and as of 20 October neither Artificial Analysis nor the SWE-bench or Terminal-Bench leaderboards list this model under an independent harness. If one appears, it supersedes this paragraph. Nothing above was measured on the checkpoint as I served it (NVFP4, FP8 KV cache, MTP, eager mode, thinking off); the needle prompts it answered in this guide, it answered exactly, and that is anecdote, not evaluation.
Why a 180B-class model fits in 96 GB
The model is awkward, and the awkwardness explains most of the server flags. Qwen3.8-Flash-Next is a hybrid: Gated DeltaNet linear attention on three layers out of every four, sparse attention on the fourth, a 512-expert MoE MLP, a vision encoder, an n-gram embedding table (the “PLE”) that is 51 billion parameters by itself, and a one-layer MTP head (4B) trained for multi-token prediction. Thinking is on by default in the chat template. Native context is 262K.
NVIDIA’s NVFP4 build is mixed precision: routed experts are W4A4 NVFP4, attention and shared layers stay BF16, and the MTP experts and the PLE table are FP8. NVIDIA’s card puts it at about 2.7× smaller than BF16 and within about a point of the FP8 baseline on GPQA Diamond (91.5 vs 92.0) and Terminal-Bench 2.1 (82.9 vs 83.3); those are NVIDIA’s numbers and I did not reproduce them.
The practical consequence is that the 132.7 GB on disk does not all have to live on the GPU. vLLM 0.32 keeps the PLE table in pinned host memory by default (EngramConfig(cpu_offload=True)), which is how the weights become 73.6 GiB of VRAM, the MTP head adds about 2.8 GiB on top, and why the machine’s 176 GB of RAM matters as much as its 96 GB of VRAM. That host table is also what makes the trap in Step 3 possible.
Why this checkpoint and not the others: the BF16 original (~360 GB) does not fit the runtime’s 194 GB of free disk; the FP8 build (~185.6 GB) would fit on disk and might fit in memory with the same offload, but I did not test it; and NVIDIA’s FP4-Local build, which is aimed at exactly this GPU class, uses a scale-factor format that its card says upstream vLLM cannot read yet, so it needs NVIDIA’s container, and the Colab runtime has no Docker. The standard NVFP4 checkpoint needs nothing but upstream vLLM at or after commit d4d703c, and the MTP fix it asks for (vLLM PR #55513, merged 8 September) is in 0.32.0. One caveat: NVIDIA lists B200 and B300 as tested hardware. The RTX PRO 6000 is sm120, not sm100. It worked, with vLLM picking the FLASHINFER_CUTLASS NVFP4 MoE backend, but it is off the card’s stated list.
What you need
- A Colab plan with G4 entitlement and a compute-unit balance. G4 is tier-gated and premium GPUs are allocated subject to availability;
colab new --gpu G4can simply return an error. - The Colab CLI (
uv tool install google-colab-cli; I used 0.7.4). It can bridge SSH over its authenticated WebSocket, which is the basis of everything below. term-llmv0.9.82 or newer, plusssh,ssh-keygen,curland Python 3 locally.- No Hugging Face token. The model is public.
The CLI’s default auth is a browser OAuth flow, started by the first command that needs a token. Before anything else:
colab version
colab --auth oauth2 sessions # opens the OAuth flow if needed; otherwise lists sessions
colab usage # balance, hourly rate, active assignments
colab usage is the command to run before and after everything. The OAuth client config and token live under your home directory; they are credentials. Nothing in the bundle needs or contains them.
Step 1: allocate a G4
colab new -s flashnext --gpu G4
colab status -s flashnext # Hardware: G4 | Shape: Standard | Variant: GPU | Status: IDLE
The clock starts here, not at first token: the rate on this account read 8.90 CU/hr the moment the session was READY. Say --gpu G4 explicitly. My very first allocation of the project landed on an A100 80 GB, which has no native FP4 path and barely more memory than the 73.6 GiB the weights occupy; I stopped it without trying.
Step 2: get a shell on the runtime
Every later step runs commands on the VM, so set up SSH first. The Colab CLI acts as an OpenSSH ProxyCommand, which gives you a real ssh, with port forwarding, and no public endpoint anywhere. Make a dedicated key, then:
ssh-keygen -t ed25519 -f ./id_colab -N '' -C colab-flashnext
# a shell (or a one-off command) on the VM
ssh -i ./id_colab -o IdentitiesOnly=yes \
-o ProxyCommand="$(command -v colab) ssh --proxy-mode -s flashnext --identity $PWD/id_colab" \
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-o ServerAliveInterval=15 \
root@colab-runtime 'nvidia-smi --query-gpu=name,memory.total,driver_version,compute_cap --format=csv; nproc; free -g; df -h /'
Three things I learned the slow way: the SSH user is root (your local username fails with Permission denied (publickey)); colab-runtime is a placeholder hostname that OpenSSH hands to the ProxyCommand and never resolves; and the runtime’s host key changes every session, hence StrictHostKeyChecking=no and a throwaway known-hosts file. That last one is a real trade-off, mitigated by the transport already being authenticated by the Colab CLI’s OAuth session and by the only thing at the other end being a localhost-bound vLLM.
The probe confirmed the shape I was paying for: NVIDIA RTX PRO 6000 Blackwell Server Edition, 97887 MiB, 48 CPUs, 176 GB RAM with 172 free, 194 GB free on the overlay disk. colab exec also works for short Python snippets in the runtime’s Jupyter kernel, but the control channel is a WebSocket and long-running colab exec calls dropped on me more than once with RuntimeError: Connection was lost. Anything that takes minutes goes through nohup with a log, and you poll.
Step 3: install vLLM, then the kernels, then the model
The order of these three steps is the most important thing in this post. This is setup_vm.sh in the bundle:
#!/bin/bash
set -euo pipefail
MODEL="nvidia/Qwen3.8-Flash-Next-NVFP4"
REVISION="fc694b54fb0174e0913e6adf86691ef85a4ead47"
DEST="/content/models/Qwen3.8-Flash-Next-NVFP4"
# 1) vLLM, pinned. Observed: 12–26 s on the Colab image.
uv pip install --system vllm==0.32.0 hf_transfer
# 2) Precompiled FlashInfer kernels, BEFORE the model is ever loaded. Observed: 283 s.
MAX_JOBS=1 vllm download-kernels
# 3) The model, pinned to the revision I ran. Observed: ~6.5 min for 124 GiB.
mkdir -p /content/models
HF_HUB_ENABLE_HF_TRANSFER=1 hf download "$MODEL" --revision "$REVISION" --local-dir "$DEST"
# 4) Drop page cache so 124 GiB of freshly written shards don't crowd the loader.
sync; echo 3 > /proc/sys/vm/drop_caches 2>/dev/null || true
echo SETUP_DONE
Ship it, start it detached, and poll the log for SETUP_DONE (the ssh ... below is the Step 2 incantation):
colab upload -s flashnext setup_vm.sh /content/setup_vm.sh
ssh ... root@colab-runtime 'nohup bash /content/setup_vm.sh > /content/setup.log 2>&1 &'
ssh ... root@colab-runtime 'tail -3 /content/setup.log'
vllm download-kernels installs flashinfer-cubin 0.7.0.post1 and flashinfer-jit-cache 0.7.0.post1+cu130, including the sm120f variant this GPU needs. Afterwards the disk read 184 GB used, 53 GB free.
The trap: a host OOM disguised as a crash
My first G4 attempt skipped the kernel step. vLLM printed a warning I should have read more carefully:
FlashInfer's precompiled kernels are missing or do not match flashinfer-python 0.7.0.post1
(flashinfer-cubin not installed, flashinfer-jit-cache not installed). FlashInfer then
downloads and compiles kernels at startup, which can take several minutes ...
Run `vllm download-kernels` in this Python environment to install them.
The model then loaded fine, all 73.6 GiB of it, and died on the first request. Not a CUDA out-of-memory: nvidia-smi afterwards showed 0 MiB in use. dmesg had the real story:
cicc invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO) ...
Out of memory: Killed process 26143 (VLLM::EngineCor) total-vm:181387224kB,
anon-rss:1718084kB, file-rss:65692kB, shmem-rss:67129728kB
The 67 GB of shmem-rss is the pinned PLE table. On top of it, FlashInfer’s first-use JIT of fused_moe_120 fanned out parallel nvcc/cicc/cudafe++ jobs, each a few GB, and the Linux OOM killer picked the biggest target in the cgroup: the engine core. The GPU was never the problem; the 176 GB host was. The fix is three parts, all in the scripts: install the precompiled kernels before the model is loaded, start the server with --no-enable-flashinfer-autotune so nothing compiles or tunes at request time, and set MAX_JOBS=1 as a belt-and-braces limit on anything that does decide to compile. That attempt, together with the A100 probe before it, cost 3.09 CU; the second one worked first time.
Step 4: start the server
Also on the VM, also detached. This is the configuration I recommend and the one every number below was measured on (start_vllm.sh in the bundle):
MAX_JOBS=1 vllm serve /content/models/Qwen3.8-Flash-Next-NVFP4 \
--host 127.0.0.1 --port 8000 --served-model-name qwen3.8-flash-next \
--quantization modelopt --max-model-len 131072 --gpu-memory-utilization 0.92 \
--kv-cache-dtype fp8 --language-model-only --enforce-eager --max-num-seqs 1 \
--no-enable-prefix-caching --no-enable-flashinfer-autotune \
--reasoning-parser qwen3 --trust-remote-code \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
colab upload -s flashnext start_vllm.sh /content/start_vllm.sh
ssh ... root@colab-runtime 'nohup bash /content/start_vllm.sh > /content/vllm.log 2>&1 &'
The flags, briefly:
--host 127.0.0.1: the server is never exposed; everything reaches it through the SSH tunnel in Step 5. vLLM without--api-keyaccepts any bearer token, so localhost binding is the security boundary.--quantization modelopt: vLLM resolves this tomodelopt_mixedfor this checkpoint.--max-model-len 131072and--max-num-seqs 1: the verified per-request limit, requests serialised. Prompt plus output must fit in 131,072 tokens; a 100K prompt leaves about 31K for generation.--kv-cache-dtype fp8and--gpu-memory-utilization 0.92: the MTP head costs about 2.8 GiB of weights (76.39 GiB versus 73.6 without it), and FP8 KV keeps 131K comfortably affordable alongside it.--speculative-config '{"method":"mtp","num_speculative_tokens":3}': draft three tokens per step with the checkpoint’s own MTP head and verify them in one forward pass. The bundled script takesMTP_TOKENS=3(default),1(more conservative) or0(MTP off, every other flag identical).--no-enable-prefix-caching: so repeated prompts in the benchmarks were genuinely cold. For day-to-day use you can leave prefix caching on.--language-model-only: no vision or video encoders. Text only, which is all I measured.--enforce-eager: no torch.compile, no CUDA graph capture. Slower in steady state, but it booted reliably and I kept it for every number here. CUDA graphs are the obvious next experiment.--reasoning-parser qwen3: separates reasoning from content in the API. Thinking itself is controlled per request in Step 5.
Lines to wait for in /content/vllm.log, with my timings:
Resolved architecture: Qwen4ExpForConditionalGeneration
Resolved architecture: Qwen4ExpMTP
Initialized PLE embedding ... weight_dtype=torch.float8_e4m3fn, weight_device=cpu, pinned=True
Model loading took 76.39 GiB memory and 307.778437 seconds
Available KV cache memory: 8.53 GiB
GPU KV cache size: 456,492 tokens, Maximum concurrency for 131,072 tokens per request: 3.48x
Application startup complete.
Load time varies with the page cache (307.8 s on that boot, 596.7 s on another). vLLM tells you why it cannot go faster: Checkpoint size: 123.57 GiB. Available RAM: 105.72 GiB, so its read-ahead prefetch is disabled. The pooled KV figure is not a per-request limit or a concurrency guarantee; admission is governed by --max-model-len and --max-num-seqs, and I never tested more than one 131K request at a time. With download, kernels and load, budget about 20 minutes and roughly 3 CU from allocation to first token.
Step 5: a tunnel, and one term-llm provider
The same ssh from Step 2, with -N -L instead of a command, forwards local port 18000 to the server’s 8000:
ssh -i ./id_colab -o IdentitiesOnly=yes \
-o ProxyCommand="$(command -v colab) ssh --proxy-mode -s flashnext --identity $PWD/id_colab" \
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-o ServerAliveInterval=15 -o ExitOnForwardFailure=yes \
-N -L 18000:127.0.0.1:8000 root@colab-runtime &
curl -s http://127.0.0.1:18000/v1/models
# {"object":"list","data":[{"id":"qwen3.8-flash-next", ... "max_model_len":131072 ...}]}
In my sandbox, background processes started in one tool call are gone by the next, tmux included, so the bundle’s tunnel_and_termllm.sh and run_tl_bench.sh open the tunnel, wait for /v1/models to answer, run the client and kill the tunnel from a trap, all in one shell. In a normal terminal you can skip that; the trap is still good hygiene.
One provider entry then covers ask, chat and benchmark. This is term-llm-config.yaml in the bundle; paste it into your term-llm config, or do what the scripts do and point XDG_CONFIG_HOME at a scratch directory so the experiment never touches your real one:
providers:
colab:
type: vllm
base_url: http://127.0.0.1:18000/v1
api_key: local-dummy-not-a-secret
model: qwen3.8-flash-next
vllm_thinking_param: thinking # pass-through shape: level goes out as reasoning_effort
models:
- id: qwen3.8-flash-next
context_window: 131072
max_output_tokens: 2048
thinking_param: enable_thinking # the key this chat template actually reads
reasoning_efforts: [none, low, medium, xhigh]
default_reasoning_effort: none
Which gives you four ways to call the same server:
term-llm ask -p colab "..." # thinking off (default; every number in this post)
term-llm ask -p colab-low "..." # thinking on, reasoning_effort=low
term-llm ask -p colab-medium "..." # thinking on, reasoning_effort=medium
term-llm ask -p colab-xhigh "..." # thinking on, reasoning_effort=xhigh (the model's own default)
The four levels are the model’s, not mine. The chat template at revision fc694b54 reads enable_thinking (default true) and, when thinking is on, reasoning_effort, which must be low, medium or xhigh (default xhigh; the template raises on anything else, including high). So the provider declares exactly those plus none, -p colab-high is refused by term-llm before any request is sent, and -p colab-<TAB> completes only the four. The two thinking settings in the YAML look redundant and are not: vllm_thinking_param: thinking selects term-llm’s pass-through request shape, and the per-model thinking_param: enable_thinking names the key this template actually reads. term-llm’s default shape for Qwen templates sends a thinking_token_budget instead, which vLLM 0.32.0 rejects unless the server was started with --reasoning-config. The comments in the bundled YAML spell out the exact payloads.
What goes on the wire, captured against a local stub endpoint rather than the GPU: -p colab sends chat_template_kwargs: {enable_thinking: false}, and -p colab-xhigh sends reasoning_effort: "xhigh" with enable_thinking: true; vLLM 0.32.0 passes a top-level reasoning_effort straight into the template. The thinking-off request is the one every benchmark used, and the direct harness on the VM sends the identical enable_thinking: false. The thinking-on levels were verified at the request level only, not measured on the GPU.
The hello world, with the tunnel up:
term-llm --stats --no-session ask -p colab --no-search --text --porcelain \
--max-output-tokens 1024 \
"Reply with exactly this sentence and nothing else: Hello from Qwen3.8-Flash-Next on Colab G4, served through term-llm."
Hello from Qwen3.8-Flash-Next on Colab G4, served through term-llm.
Stats: active 9.7s | 92 in → 99 out | TTFT 5.2s, 22 tok/s | $0.0001 | 1 call
Two notes on that stats line. The 5.2 s TTFT is a cold first request through a fresh server; warm requests of a few hundred tokens take about 0.11 s. The $0.0001 is term-llm’s notional per-token price for the provider, not what the GPU cost, which was accruing at 8.90 CU/hr regardless. (This particular run was on an earlier no-MTP server, which is why its decode rate is the 22 tok/s baseline rather than the MTP numbers below.)
What it measures
Single-stream decode on the recommended configuration (direct on the VM against 127.0.0.1:8000, so no SSH or client tokenizer in the measurement; thinking off; temperature 0; output forced with ignore_eos; medians of three repeats after one warmup; prefix caching off and zero cache hits verified per request):
| Workload | Prompt / output tokens | TTFT | Server prefill | Decode | Draft acceptance |
|---|---|---|---|---|---|
| Code review (Python) | 1,843 / 256 | 0.17 s | 10,965 tok/s | 44.6 tok/s | 38.6% |
| Prose summary | 3,840 / 256 | 0.29 s | 13,788 tok/s | 49.8 tok/s | 49.0% |
| Multi-step reasoning | 302 / 512 | 0.12 s | 2,764 tok/s | 68.7 tok/s | 78.7% |
With MTP off, the same server and the same prompts decoded at a flat 22.0 tok/s, so three draft tokens roughly doubled code throughput and tripled it on the reasoning prompt; one draft token (MTP_TOKENS=1) sat between the two at 36–42 tok/s, and the full paired A/B with acceptance per draft position is in mtp_results.json. Acceptance is the number to watch: the reasoning prompt is regular, predictable text that the draft head gets right 79% of the time, code review only 39%, and the decode rate follows. MTP buys nothing on prefill and costs it a few per cent. (Prefill efficiency climbs with prompt length because fixed per-request overhead dominates short prompts; the 302-token reasoning prompt’s 2.8K tok/s is mostly overhead, the 105K prompts below run at 15.7K.)
Long context, same server, needle retrieval of a planted code roughly 15% into the prompt:
| Prompt tokens | Output | TTFT | Server prefill | Decode | Acceptance | Needle |
|---|---|---|---|---|---|---|
| 105,171 | 256 | 6.77 s | 15,785 tok/s | 69.7 tok/s | 80.4% | ZX-9174-KQ |
| 130,138 | 128 | 8.44 s | 15,657 tok/s | 65.5 tok/s | 72.4% | NL-9137-ZR |
130,138 plus 128 is 130,266, under the 131,072 ceiling; during that request the KV pool peaked at 28.9% used and nvidia-smi at 91,617 MiB of 97,887. Decode after a 105K prompt is faster than on the short code prompt because the needle documents are log-like text the draft head predicts well; do not read it as “longer is faster”. The first long request after a server start was materially slower (12.2 s and 8,674 tok/s on a 104,810-token prompt in an earlier session, against 6.99 s and 15,243 tok/s immediately after), so warm a long shape before quoting a single-shot number.
The same thing end to end through term-llm, over the tunnel, with the server above:
ZX-9174-KQ
Stats: active 10.8s | 105.22K in → 9 out | TTFT 10.7s, 109 tok/s | $0.0212 | 1 call
Correct answer, 105.22K input tokens. The 10.7 s to first token includes term-llm staging a 2 MB file and the SSH hop (localhost was 6.77 s); the 109 tok/s is a decode rate over nine tokens and not a steady-state figure; the 256-token direct run above is. A short 561-token term-llm request through the same server answered in 0.7 s.
Method notes that change numbers. Server-side prefill is read from vLLM’s own /metrics (Δprompt_tokens_total / Δrequest_prefill_time_seconds_sum); decode is (completion_tokens − 1) / (end − first_chunk) at the client. Every harness in the bundle also reads Δprefix_cache_hits_total per request and retries with a fresh prompt if it is non-zero. That is not paranoia: an early version of my harness reused its warmup prompt and prefill looked 5–7× faster than it was, with the hit counter showing exactly 1,568, 7,840 and 10,976 cached tokens. Prefix caching is on by default in vLLM; if you benchmark prefill without checking that counter, you are probably benchmarking the cache. Separately, the very first inference after Application startup complete is a one-time kernel and allocator warmup (4.79 s to first token on a 523-token prompt, then 0.115 s), and it happens once per server process.
Through the tunnel. term-llm’s own benchmark -p colab measures at the provider boundary, tunnel included. In an earlier no-MTP session it fitted its TTFT points to an effective prefill of 16,280 tok/s with a fixed 0.436 s intercept, within about 10% of the server metric, and decode matched localhost to the decimal. The tunnel adds a constant, not a per-token tax; compare slopes, not absolute TTFT. That same session, with --max-num-seqs 8 and 2K prompts, gave 41.6 and 82.9 tok/s of aggregate output across two and four streams at ~21 tok/s each; I did not test concurrency with MTP. Both are in benchmark_results.json.
What thinking costs. One request with enable_thinking: true on a 1,748-token prompt asking for 17*23 returned 61 completion tokens of which 55 were reasoning_tokens, a five-character visible answer, and 2.75 s to the first visible content against about 0.2 s thinking off. The stream carried no reasoning text in that run; the tokens were simply counted in usage. With thinking on you can pay for tokens you never see, and apparent TTFT is really time-to-end-of-reasoning.
What this does and does not show. These are throughput and latency numbers with forced output lengths; they say nothing about answer quality or how the model behaves as an agent. MTP3 was faster than MTP off on every tested workload with no repetition collapse and no zero-acceptance event, on stable vLLM 0.32.0. The speedup is well short of the 3–5× seen on dense models, which is what you would expect on a 512-expert MoE where verifying k drafts touches a union of experts, and it is workload-dependent; I would expect agentic tool-call traffic to land in the 2–3× range rather than above it. vLLM issue #55357, about MTP misbehaving for this architecture on sm120, was still open; if you hit what it describes, MTP_TOKENS=1 and then 0 are the same server with fewer or no draft tokens. Not tested with MTP: thinking on, more than one concurrent stream, and output quality beyond coherent text and correct needles.
Step 6: shut it down
The runtime is ephemeral and the meter runs until you stop it. colab stop destroys /content, the pip installs, the kernels and the SSH host key; every new session repeats the ~20 minutes and ~3 CU before the first token. I did not test persisting the shards to Google Drive to skip the 6.5-minute download; with 124 GiB of weights it would need a correspondingly large Drive, and the load time would not change. For an occasional session I would just eat the 3 CU. Always finish with all three of these, and read the output:
colab stop -s flashnext
colab sessions # must print: No active sessions found on server.
colab usage # must print: Usage rate: 0.00/hr and Active assignments: 0
pgrep -af 'ssh.*18000' || echo "no tunnel left"
A full session, from allocation through setup, model load, a benchmark run and colab stop, was about an hour and about 9 CU, with roughly a third of the hour spent on setup. The whole project, including the OOM-killed attempt and three model loads for the MTP comparison, used 27.64 CU, which is about 14% of a Pro month. After the last session colab usage read 0.00/hr and Active assignments: 0, re-checked afterwards.
Pitfalls, in one list
- Say
--gpu G4. An A100 80 GB is the wrong card for this checkpoint. - Install the precompiled kernels before loading the model, and start with
--no-enable-flashinfer-autotuneandMAX_JOBS=1. Otherwise the first request can get the engine OOM-killed on the host with a healthy-looking GPU. - Leave PLE CPU offload on. It is vLLM’s default for this model and it is why the weights fit.
- Run long jobs detached and poll logs. The control WebSocket drops.
- SSH user is
root,colab-runtimeis a placeholder, and vLLM stays on127.0.0.1. - One term-llm provider,
type: vllm, with the model’s real reasoning levels (none,low,medium,xhigh) andnoneas the default. Do not declarehigh; the template raises on it. - MTP is a 2–3× win here, not 5×, and workload-dependent. If acceptance collapses or output repeats, drop to
MTP_TOKENS=1, then0. - Prompt plus output must fit in 131,072 tokens. Pooled KV capacity is not the per-request limit; test actual long requests.
- Assert zero prefix-cache hits on every measured request, or you are benchmarking the cache.
- Turn thinking off for latency measurements; reasoning tokens are billed inside completion tokens.
$0.0001in term-llm’s stats is not the GPU bill, and a decode rate over nine tokens is not a decode benchmark.- Everything on the runtime is gone at
colab stop. Budget ~20 min and ~3 CU per fresh session, out of the 200.
What I did not do
- No CUDA graphs, no
--async-scheduling, no concurrency with MTP, no MTP with thinking on. All plausible wins or unknowns; none are in these numbers. - No FP8 checkpoint, no vision or video input, no Docker route (Colab has none and the standard NVFP4 checkpoint did not need one).
- No quality evaluation beyond planted-code retrieval and reading the outputs. The Sonnet comparison is entirely vendor-reported.
- No runtime longer than 66 minutes, so nothing here tests Colab’s maximum session lifetime.
- The Colab image supplied Python 3.13 and CUDA 13.0 on 19–20 October 2026 (its own torch was 2.11.0; the vLLM install replaced it with 2.13.0+cu130). vLLM is pinned at 0.32.0 and the model at its revision; the image is not something I can pin.
Sources for the plan and comparison claims
- Google AI Pro price, US: gemini.google/subscriptions, “Google AI Pro … $19.99/ month”. Retrieved 20 October 2026.
- Colab allowance: Use Google AI Pro benefits, Google One Help, section “Use Google Colab”: “Google AI Pro members get 200 CCUs.” Retrieved 20 October 2026. The Colab FAQ confirms “a monthly allotment of Colab compute units” deposited “each month based on when your Google AI plan entitlement began”; the announcement is dated 22 September 2026; Colab’s pricing page says compute units expire after 90 days.
- G4 rate: observed,
colab usageon one account, 19–20 October 2026. Not published by Google that I could find. - Claude Sonnet 5: Anthropic announcement, 30 June 2026, benchmark table transcribed 20 October 2026.
- Qwen3.8-Flash-Next: Qwen model card; NVFP4 numbers and serving requirements: NVIDIA model card.
Downloads
Everything needed to reproduce this, with no credentials and no private paths, is under /files/qwen38-flash-next-colab-g4/:
README.txt: what each file is, exact versions, order of operations, and the configuration history behind each results file.setup_vm.sh: vLLM 0.32.0, precompiled kernels, pinned model download. Run on the VM.start_vllm.sh: the recommended server launch.MTP_TOKENS=3by default;1or0to fall back. Run on the VM.tunnel_and_termllm.sh: SSH local forward plus the hello-world request, one shell, trap-cleaned. Run locally.run_tl_bench.sh: tunnel plusterm-llm benchmark. Run locally.term-llm-config.yaml: the singlecolabprovider with its four reasoning levels and the exact request shapes in comments.bench_direct.py: the direct harness with prefix-cache verification. Run on the VM.mtp_server_ctl.py,mtp_bench.py,mtp_reason.txt: the launcher, paired harness and reasoning prompt for the MTP comparison. Run on the VM.mtp_results.json: per-arm medians for MTP off/1/3, paired speedups, acceptance per draft position, the 105K and 130K runs, memory and cost. The source of the tables above.context_results.json: the earlier 131K validation without MTP (BF16 KV cache).benchmark_results.json: the earlier no-MTP baseline from both harnesses (16K context,--max-num-seqs 8), including the cold-start record, the concurrency rows, the thinking-mode accounting and term-llm’s prefill fit.
If you get it running with CUDA graphs, or with MTP under real agent traffic, and the decode number moves, I would like to hear what it moved to.