Qwen3.8-Flash-Next (NVFP4) on a Google Colab G4, served by vLLM 0.32.0, queried through term-llm. Companion files for https://wasnotwas.com/writing/qwen38-flash-next-colab-g4-term-llm/ Everything here was run end to end on 2026-10-19/20 (UTC) by Jarvis. No credentials, OAuth material, or Hugging Face tokens are included; none were needed beyond the Colab CLI's own interactive login. Model: nvidia/Qwen3.8-Flash-Next-NVFP4 revision fc694b54fb0174e0913e6adf86691ef85a4ead47 Runtime: Colab --gpu G4 (RTX PRO 6000 Blackwell Server Edition, 97,887 MiB, sm120, driver 580.82.07), 48 vCPU, 176 GB RAM, 236 GB overlay disk Stack: Ubuntu 24.04 image, Python 3.13, torch 2.13.0+cu130, CUDA 13.0, vLLM 0.32.0, flashinfer 0.7.0.post1 (+cubin, +jit-cache sm120f), term-llm v0.9.82, google-colab-cli 0.7.4 Files setup_vm.sh run on the VM: vLLM, precompiled kernels, model start_vllm.sh run on the VM: the recommended server launch. Default MTP_TOKENS=3 (131K context, one request at a time, FP8 KV, MTP speculative decoding). MTP_TOKENS=0 is the MTP-off fallback with otherwise identical flags. Earlier baseline configs are documented in the header. tunnel_and_termllm.sh run locally: SSH local forward + one term-llm request run_tl_bench.sh run locally: tunnel + term-llm built-in benchmark term-llm-config.yaml the single term-llm provider, "colab" (type: vllm), used for ask, chat and benchmark. Thinking off by default; -p colab-low / colab-medium / colab-xhigh turn it on at the levels the chat template accepts. The scripts install it under a scratch XDG_CONFIG_HOME as term-llm/config.yaml. (The 16K-baseline term-llm rows in benchmark_results.json were recorded under the provider key "colabvllm": same server, same thinking-off request.) bench_direct.py direct OpenAI-API harness; run ON the VM against http://127.0.0.1:8000/v1 so no network is measured benchmark_results.json consolidated results from both harnesses (no-MTP baseline: 16K context, max-num-seqs 8) context_results.json 131K validation, no MTP (BF16 KV, 0.95 utilisation) mtp_server_ctl.py run on the VM: start/stop the server per MTP arm with the exact flags used for the paired A/B mtp_bench.py run on the VM: paired code/prose/reasoning benchmark; ARM=off|mtp1|mtp3 REPEATS=3 python3 -u mtp_bench.py mtp_reason.txt the 302-token reasoning prompt used by mtp_bench.py (the code prompt is bench_direct.py trimmed to 1,800 tokens; the prose prompt was internal notes, omitted) mtp_results.json consolidated MTP results: per-arm medians, paired speedups, acceptance per draft position, the 105K and 130K MTP3 long-context runs, memory, cost Order of operations 1. colab usage; colab sessions (auth + balance check) 2. colab new -s flashnext --gpu G4 3. colab upload -s flashnext setup_vm.sh /content/setup_vm.sh (same for start_vllm.sh and bench_direct.py) 4. on the VM, detached: nohup bash /content/setup_vm.sh > /content/setup.log 2>&1 & wait for SETUP_DONE in the log 5. on the VM, detached: nohup bash /content/start_vllm.sh > /content/vllm.log 2>&1 & wait for "Application startup complete." 6. locally: ./tunnel_and_termllm.sh ; ./run_tl_bench.sh ... 7. on the VM: BASE_URL=http://127.0.0.1:8000/v1 MODEL=qwen3.8-flash-next \ OUT_TOKENS=256 REPEATS=3 INPUTS=128,512,2048,8192,12000 python3 -u bench_direct.py 7b. MTP A/B, on the VM (needs /content/mtp_code.txt, mtp_prose.txt, mtp_reason.txt; each arm reloads the model, ~5-10 min): python3 mtp_server_ctl.py start off ; ARM=off python3 -u mtp_bench.py python3 mtp_server_ctl.py start mtp1 ; ARM=mtp1 python3 -u mtp_bench.py python3 mtp_server_ctl.py start mtp3 ; ARM=mtp3 python3 -u mtp_bench.py 8. colab stop -s flashnext; colab sessions; colab usage (must show 0 sessions, 0.00/hr) benchmark_results.json notes direct_localhost: medians of 3 measured repeats after 1 warmup per shape, unique prompts (random nonce), enable_thinking=false, ignore_eos with min_tokens=max_tokens=256, prefix_cache_hits delta verified 0. server_prefill_tps = delta(vllm:prompt_tokens_total) / delta(vllm:request_prefill_time_seconds_sum) from /metrics. term_llm: client-observed at the provider boundary through the SSH tunnel; the "fits" entry is term-llm's own median-pairwise-slope prefill fit (16,280 tok/s effective, 0.436 s fixed intercept). Compare slopes, not absolute TTFT, against direct_localhost. The per-session GPU UUID was removed from the hardware block; nothing else was edited. Not included: Colab OAuth client config/token, the SSH private key, raw vLLM logs, raw per-request JSONL (summarised in benchmark_results.json). Configuration history (all on the same model revision, eager mode, text only) 1. 16K baseline: --max-model-len 16384 --max-num-seqs 8, BF16 KV, prefix cache on, utilisation 0.95. Source of benchmark_results.json. ~22 tok/s. 2. 131K baseline: --max-model-len 131072 --max-num-seqs 1, BF16 KV, prefix cache on, utilisation 0.95. Source of context_results.json. ~22 tok/s. 3. 131K + MTP (recommended, start_vllm.sh default): as 2 but FP8 KV, prefix cache off, utilisation 0.92, --speculative-config {"method":"mtp","num_speculative_tokens":3}. Source of mtp_results.json. 44.6 / 49.8 / 68.7 tok/s on code / prose / reasoning; 69.7 tok/s decode after a 105,171-token prompt; 65.5 tok/s after 130,138 tokens. MTP_TOKENS=0 with the same flags is the paired baseline (22 tok/s). Prompt plus output must fit in 131,072 tokens. Verified: 105.22K input via term-llm (MTP off and MTP3), 130,138 tokens direct (MTP off and MTP3); all retrieved the planted code; prefix-cache hits 0. Not tested: MTP with thinking enabled, MTP under concurrency, any quality evaluation beyond needle retrieval. vllm#55357 (SM120 qwen4_exp MTP) was open at the time; no repetition or 0%-acceptance event occurred on these workloads.