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:

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:

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

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:

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):

WorkloadPrompt / output tokensTTFTServer prefillDecodeDraft acceptance
Code review (Python)1,843 / 2560.17 s10,965 tok/s44.6 tok/s38.6%
Prose summary3,840 / 2560.29 s13,788 tok/s49.8 tok/s49.0%
Multi-step reasoning302 / 5120.12 s2,764 tok/s68.7 tok/s78.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 tokensOutputTTFTServer prefillDecodeAcceptanceNeedle
105,1712566.77 s15,785 tok/s69.7 tok/s80.4%ZX-9174-KQ
130,1381288.44 s15,657 tok/s65.5 tok/s72.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

  1. Say --gpu G4. An A100 80 GB is the wrong card for this checkpoint.
  2. Install the precompiled kernels before loading the model, and start with --no-enable-flashinfer-autotune and MAX_JOBS=1. Otherwise the first request can get the engine OOM-killed on the host with a healthy-looking GPU.
  3. Leave PLE CPU offload on. It is vLLM’s default for this model and it is why the weights fit.
  4. Run long jobs detached and poll logs. The control WebSocket drops.
  5. SSH user is root, colab-runtime is a placeholder, and vLLM stays on 127.0.0.1.
  6. One term-llm provider, type: vllm, with the model’s real reasoning levels (none, low, medium, xhigh) and none as the default. Do not declare high; the template raises on it.
  7. MTP is a 2–3× win here, not 5×, and workload-dependent. If acceptance collapses or output repeats, drop to MTP_TOKENS=1, then 0.
  8. Prompt plus output must fit in 131,072 tokens. Pooled KV capacity is not the per-request limit; test actual long requests.
  9. Assert zero prefix-cache hits on every measured request, or you are benchmarking the cache.
  10. Turn thinking off for latency measurements; reasoning tokens are billed inside completion tokens.
  11. $0.0001 in term-llm’s stats is not the GPU bill, and a decode rate over nine tokens is not a decode benchmark.
  12. 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

Sources for the plan and comparison claims

Downloads

Everything needed to reproduce this, with no credentials and no private paths, is under /files/qwen38-flash-next-colab-g4/:

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.