Mailroom evaluation reports

Modal + vLLM GPU economics — SAND-032

Qwen3-8B-AWQ on vLLM v0.29.0, Modal L4 GPUs at $0.80/h each · 24 runs, 1,713 documents, 20,406,786 tokens · generated by sandbox reports/dashboard/export_hub_reports.py from the cross-checked reports hub (1,844 source-quoted figures, 781 automated cross-checks) · sources: local-mailroom-sandbox @ 95d89fa8f401 · eval-environment @ 86b4e54fc5a2 · mailroom-ml @ d3ad22263da0

This report covers what the self-hosted leg cost and how well it used the GPUs. It answers five questions: what a token costs on a Modal L4, where the GPU money went, when a warm fleet beats a cold one, how busy the GPUs were, and what adding a second L4 did. Its companions are Cost comparison (cost per document against the hosted API) and Master report.

Summary#

1. Setup and method#

Model / engine Qwen/Qwen3-8B-AWQ (23 runs, quant awq, awq_marlin, max_model_len 32768); Qwen/Qwen3-8B (1 run, quant bf16, max_model_len 16384); vLLM v0.29.0 (not recorded in the S6 report), prefix caching on
Frozen serving posture (L5) awq_marlin, fp8 KV cache, thinking off, CUDA graphs on (enforce_eager=off), max_num_seqs 16 (32 on the c64 runs)
Fleet Modal L4 (24 GB VRAM per the deploy spec quoted below; not a run record), one vLLM replica per container, min = max containers pinned for each batch, scaledown 120 s
Price $0.80 per L4-hour (docs/RUN-COST-DERIVATION.md in the sandbox)
Data public HF mailroom-dataset (ground_truth, split all) @ ed7576b6, seed 42, nested draws (20 ⊂ 50 ⊂ 100)

Every other value in this table is read per run from the SAND-032 run reports' header rows and serving exports (hub_data.json["fleet"]) and must agree across the runs that record it. The GPU memory is the one setup value no run records; it is quoted from the sandbox deploy spec deploy/README.md: | MODAL_VLLM_GPU | L4 | 24 GB VRAM |.

Definitions.

Not measured. No run sampled GPU SM utilization, memory bandwidth or power (no DCGM or nvidia-smi sampling), and KV-cache usage was only scraped at idle, where it reads 0%. Occupancy and throughput per L4 are therefore the utilization evidence. See section 7.

2. GPU spend#

Where the SAND-032 GPU spend went fleet-window ledger $2.80 at close · the five parts sum to the ledger 0 0.5 1 1.5 Slots with a request in flight Slots with a request in flight: $1.17 — 42% of the ledger $1.17 Idle slots inside runs Idle slots inside runs: $0.55 — 20% of the ledger $0.55 Cold boots Cold boots: $0.46 — 16% of the ledger $0.46 Aborted sorter run (incident) Aborted sorter run (incident): $0.08 — 3% of the ledger $0.08 Fleet time outside any run Fleet time outside any run: $0.53 — 19% of the ledger $0.53
Part of the ledger USD Share
Slots with a request in flight $1.17 42%
Idle slots inside runs $0.55 20%
Cold boots $0.46 16%
Aborted sorter run (incident) $0.08 3%
Fleet time outside any run $0.53 19%

The five parts sum to the $2.80 ledger. The first three come from the runs' serving exports; the incident is the aborted sorter run; the last is the ledger minus everything attributable to a run. The fleet-window ledger itself under-counts Modal billing (the program summary's finding), so treat $2.80 as a floor and reconcile it against the Modal usage page.

By stage.

Stage Runs Docs Tokens Busy $ Boot $ Billed $
1×L4 knob ladder · correspondence n = 20 · c8 5 100 201,434 $0.033 $0.130 $0.163
Scale-out · correspondence n = 100 · same documents 4 400 979,764 $0.125 $0.177 $0.302
Five-class sweep · 2×L4 · c32 · n = 50 7 337 2,182,235 $0.521 $0.055 $0.577
Doubled admission · 2×L4 · c64 · n = 50 4 194 978,550 $0.169 $0.00063 $0.169
v2 prompts · 1×L4 · c8 · n = 75 3 225 883,125 $0.078 $0.040 $0.118
LLM sorter · 2×L4 · c32 1 457 15,181,678 $0.796 $0.058 $0.854

Before SAND-032. Tracked spend from 16–27 Sep totals $12.09, of which $11.60 was Modal GPU time; the largest item was "Sorter pipeline run (bf16)" at $7.98. With SAND-032, tracked Modal GPU spend is at least $14.40.

Bucket USD Detail
Sorter pipeline run (bf16) $7.98 run-50-modal-hf: 50 docs, about 5 LLM calls each, up to 4×L4; metered
Granite specialist legs $2.22 merger $1.287; correspondence-50 $0.330; contracts halt window (low end) $0.400; contracts probes (wall × L4 rate) $0.203
Qwen AWQ specialist runs (9) $1.40 insurance $0.094; correspondence A $0.034; correspondence B $0.125; correspondence c5 $0.114; correspondence c8 $0.056; contracts c4 $0.285; contracts c8 $0.375; corporate $0.152; merger $0.164
API legs (OpenRouter) $0.492 7 eval-environment legs $0.480 + qwen-flash ledger $0.012

3. Cost per token#

3.1 Every run#

Modal L4 cost per 1M tokens, every SAND-032 run (emphasis = 2×L4; one scale) 1×L4 knob ladder · correspondence n = 20 · c8 busy-window GPU $ per 1M tokens (prompt + completion) · lower is better 0 0.1 0.2 0.3 0.4 L0 · baseline L0 · baseline: $0.176 — 1,261 tok/s per L4 · $2.31 per 1M output tokens $0.176 L1 · + thinking off L1 · + thinking off: $0.146 — 1,524 tok/s per L4 · $1.88 per 1M output tokens $0.146 L2 · + awq_marlin (reverted) L2 · + awq_marlin (reverted): $0.146 — 1,526 tok/s per L4 · $1.88 per 1M output tokens $0.146 L5 · frozen config L5 · frozen config: $0.099 — 2,238 tok/s per L4 · $1.32 per 1M output tokens $0.099 S4 · bf16 Qwen3-8B (quality arm) S4 · bf16 Qwen3-8B (quality arm): $0.259 — 859 tok/s per L4 · $3.37 per 1M output tokens $0.259 Scale-out · correspondence n = 100 · same documents busy-window GPU $ per 1M tokens (prompt + completion) · lower is better 0 0.1 0.2 0.3 0.4 S2a · 1×L4, c8 S2a · 1×L4, c8: $0.086 — 2,579 tok/s per L4 · $1.14 per 1M output tokens $0.086 S2b · 2×L4, c16 S2b · 2×L4, c16: $0.084 — 2,654 tok/s per L4 · $1.11 per 1M output tokens $0.084 S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: $0.271 — 820 tok/s per L4 · $3.56 per 1M output tokens $0.271 S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: $0.071 — 3,141 tok/s per L4 · $0.94 per 1M output tokens $0.071 Five-class sweep · 2×L4 · c32 · n = 50 busy-window GPU $ per 1M tokens (prompt + completion) · lower is better 0 0.1 0.2 0.3 0.4 S3 · Correspondence S3 · Correspondence: $0.060 — 3,698 tok/s per L4 · $0.82 per 1M output tokens $0.060 S3 · Correspondence (repeat) S3 · Correspondence (repeat): $0.080 — 2,793 tok/s per L4 · $1.10 per 1M output tokens $0.080 S3 · Insurance claims S3 · Insurance claims: $0.146 — 1,521 tok/s per L4 · $1.30 per 1M output tokens $0.146 S3 · Corporate records S3 · Corporate records: $0.095 — 2,346 tok/s per L4 · $3.06 per 1M output tokens $0.095 S3 · Contracts S3 · Contracts: $0.275 — 808 tok/s per L4 · $1.39 per 1M output tokens $0.275 S3 · Merger agreements S3 · Merger agreements: $0.301 — 739 tok/s per L4 · $3.78 per 1M output tokens $0.301 S5 · Merger agreements · MAUD prompt S5 · Merger agreements · MAUD prompt: $0.321 — 692 tok/s per L4 · $4.00 per 1M output tokens $0.321 Doubled admission · 2×L4 · c64 · n = 50 busy-window GPU $ per 1M tokens (prompt + completion) · lower is better 0 0.1 0.2 0.3 0.4 S9 · Insurance claims S9 · Insurance claims: $0.127 — 1,751 tok/s per L4 · $1.11 per 1M output tokens $0.127 S9 · Corporate records S9 · Corporate records: $0.082 — 2,715 tok/s per L4 · $2.62 per 1M output tokens $0.082 S9 · Contracts S9 · Contracts: $0.283 — 785 tok/s per L4 · $1.47 per 1M output tokens $0.283 S7 · Insurance · max_inputs 64 S7 · Insurance · max_inputs 64: $0.140 — 1,584 tok/s per L4 · $1.24 per 1M output tokens $0.140 v2 prompts · 1×L4 · c8 · n = 75 busy-window GPU $ per 1M tokens (prompt + completion) · lower is better 0 0.1 0.2 0.3 0.4 S10 · Correspondence S10 · Correspondence: $0.073 — 3,051 tok/s per L4 · $1.34 per 1M output tokens $0.073 S10 · Insurance claims S10 · Insurance claims: $0.117 — 1,891 tok/s per L4 · $1.13 per 1M output tokens $0.117 S10 · Corporate records S10 · Corporate records: $0.077 — 2,867 tok/s per L4 · $2.42 per 1M output tokens $0.077 LLM sorter · 2×L4 · c32 busy-window GPU $ per 1M tokens (prompt + completion) · lower is better 0 0.1 0.2 0.3 0.4 S6 · LLM sorter S6 · LLM sorter: $0.052 — 4,237 tok/s per L4 · $3.28 per 1M output tokens $0.052
Run Fleet Docs ok Tokens Output share tok/s per L4 Busy GPU $ $ / 1M tokens $ / 1M output $ / doc
L0 · baseline 1×L4 · c8 · seqs 6 · max_inputs 32 20/20 40,202 8% 1,261 $0.0071 $0.176 $2.31 $0.00035
L1 · + thinking off 1×L4 · c8 · seqs 6 · max_inputs 32 20/20 40,339 8% 1,524 $0.0059 $0.146 $1.88 $0.00029
L2 · + awq_marlin (reverted) 1×L4 · c8 · seqs 6 · max_inputs 32 20/20 40,343 8% 1,526 $0.0059 $0.146 $1.88 $0.00029
L5 · frozen config 1×L4 · c8 · seqs 16 · max_inputs 32 20/20 40,242 8% 2,238 $0.0040 $0.099 $1.32 $0.00020
S4 · bf16 Qwen3-8B (quality arm) 1×L4 · c8 · seqs 6 · max_inputs 32 20/20 40,308 8% 859 $0.010 $0.259 $3.37 $0.00052
S2a · 1×L4, c8 1×L4 · c8 · seqs 16 · max_inputs 32 100/100 244,982 8% 2,579 $0.021 $0.086 $1.14 $0.00021
S2b · 2×L4, c16 2×L4 · c16 · seqs 16 · max_inputs 32 100/100 244,902 8% 2,654 $0.021 $0.084 $1.11 $0.00021
S7 · 2×L4, c64, max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 64 100/100 245,048 8% 820 $0.066 $0.271 $3.56 $0.00066
S9 · 2×L4, c64, max_inputs 32 2×L4 · c64 · seqs 32 · max_inputs 32 100/100 244,832 8% 3,141 $0.017 $0.071 $0.94 $0.00017
S3 · Correspondence 2×L4 · c32 · seqs 16 · max_inputs 32 50/50 118,503 7% 3,698 $0.0071 $0.060 $0.82 $0.00014
S3 · Correspondence (repeat) 2×L4 · c32 · seqs 16 · max_inputs 32 50/50 118,459 7% 2,793 $0.0094 $0.080 $1.10 $0.00019
S3 · Insurance claims 2×L4 · c32 · seqs 16 · max_inputs 32 50/50 184,598 11% 1,521 $0.027 $0.146 $1.30 $0.00054
S3 · Corporate records 2×L4 · c32 · seqs 16 · max_inputs 32 50/50 264,132 3% 2,346 $0.025 $0.095 $3.06 $0.00050
S3 · Contracts 2×L4 · c32 · seqs 16 · max_inputs 32 47/50 378,643 20% 808 $0.104 $0.275 $1.39 $0.0022
S3 · Merger agreements 2×L4 · c32 · seqs 16 · max_inputs 32 44/50 505,796 8% 739 $0.152 $0.301 $3.78 $0.0035
S5 · Merger agreements · MAUD prompt 2×L4 · c32 · seqs 16 · max_inputs 32 46/50 612,104 8% 692 $0.197 $0.321 $4.00 $0.0043
S9 · Insurance claims 2×L4 · c64 · seqs 32 · max_inputs 32 50/50 184,910 11% 1,751 $0.023 $0.127 $1.11 $0.00047
S9 · Corporate records 2×L4 · c64 · seqs 32 · max_inputs 32 50/50 264,187 3% 2,715 $0.022 $0.082 $2.62 $0.00043
S9 · Contracts 2×L4 · c64 · seqs 32 · max_inputs 32 44/50 344,854 19% 785 $0.098 $0.283 $1.47 $0.0022
S7 · Insurance · max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 64 50/50 184,599 11% 1,584 $0.026 $0.140 $1.24 $0.00052
S10 · Correspondence 1×L4 · c8 · seqs 16 · max_inputs 16 75/75 226,796 5% 3,051 $0.017 $0.073 $1.34 $0.00022
S10 · Insurance claims 1×L4 · c8 · seqs 16 · max_inputs 16 75/75 275,799 10% 1,891 $0.032 $0.117 $1.13 $0.00043
S10 · Corporate records 1×L4 · c8 · seqs 16 · max_inputs 16 75/75 380,530 3% 2,867 $0.029 $0.078 $2.42 $0.00039
S6 · LLM sorter 2×L4 · c32 · seqs 16 457/458 15,181,678 2% 4,237 $0.796 $0.052 $3.28 $0.0017

What drives it.

3.2 Three cost bases per workload#

The same measured batch, priced three ways, for the cheapest measured configuration of each workload:

Workload Run and fleet Warm fleet (busy window) One cold batch Program-loaded Cheapest API
Correspondence S3 · 2×L4 · c32 · seqs 16 · max_inputs 32 $0.060 $1.320 $0.098 Qwen3.7-Flash $0.087
Insurance claims S10 · 1×L4 · c8 · seqs 16 · max_inputs 16 $0.117 $0.388 $0.191 Qwen3.7-Flash $0.089
Corporate records S10 · 1×L4 · c8 · seqs 16 · max_inputs 16 $0.078 $0.274 $0.126 Qwen3.7-Flash $0.053
Contracts S3 · 2×L4 · c32 · seqs 16 · max_inputs 32 $0.275 $0.669 $0.447 Qwen3.7-Flash $0.063
Merger agreements S3 · 2×L4 · c32 · seqs 16 · max_inputs 32 $0.301 $0.596 $0.489 Qwen3.7-Flash · frozen (filed as Qwen3-8B) $0.037
Sorter S6 · 2×L4 · c32 · seqs 16 $0.052 $0.060 $0.085 Qwen3.7-Flash $0.032

3.3 Warm-fleet utilization vs cost per token#

Warm-fleet cost per 1M tokens as utilization falls (blue = still at or below the cheapest API; each panel has its own scale) Correspondence · S3 Warm fleet $ per 1M tokens by GPU utilization · 3,698 tok/s per L4 at 100% 0 0.2 0.4 0.6 0.8 cheapest API 0.087 100% busy 100% busy: $0.060 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.060 75% busy 75% busy: $0.080 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.080 50% busy 50% busy: $0.120 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.120 25% busy 25% busy: $0.240 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.240 10% busy 10% busy: $0.601 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.601 Insurance claims · S10 Warm fleet $ per 1M tokens by GPU utilization · 1,891 tok/s per L4 at 100% 0 0.5 1 1.5 cheapest API 0.089 100% busy 100% busy: $0.117 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.117 75% busy 75% busy: $0.157 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.157 50% busy 50% busy: $0.235 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.235 25% busy 25% busy: $0.470 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.470 10% busy 10% busy: $1.175 — 1×L4 · c8 · seqs 16 · max_inputs 16 $1.175 Corporate records · S10 Warm fleet $ per 1M tokens by GPU utilization · 2,867 tok/s per L4 at 100% 0 0.2 0.4 0.6 0.8 cheapest API 0.053 100% busy 100% busy: $0.077 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.077 75% busy 75% busy: $0.103 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.103 50% busy 50% busy: $0.155 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.155 25% busy 25% busy: $0.310 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.310 10% busy 10% busy: $0.775 — 1×L4 · c8 · seqs 16 · max_inputs 16 $0.775 Contracts · S3 Warm fleet $ per 1M tokens by GPU utilization · 808 tok/s per L4 at 100% 0 1 2 3 cheapest API 0.063 100% busy 100% busy: $0.275 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.275 75% busy 75% busy: $0.367 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.367 50% busy 50% busy: $0.550 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.550 25% busy 25% busy: $1.100 — 2×L4 · c32 · seqs 16 · max_inputs 32 $1.100 10% busy 10% busy: $2.750 — 2×L4 · c32 · seqs 16 · max_inputs 32 $2.750 Merger agreements · S3 Warm fleet $ per 1M tokens by GPU utilization · 739 tok/s per L4 at 100% 0 1 2 3 4 cheapest API 0.037 100% busy 100% busy: $0.301 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.301 75% busy 75% busy: $0.401 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.401 50% busy 50% busy: $0.602 — 2×L4 · c32 · seqs 16 · max_inputs 32 $0.602 25% busy 25% busy: $1.203 — 2×L4 · c32 · seqs 16 · max_inputs 32 $1.203 10% busy 10% busy: $3.009 — 2×L4 · c32 · seqs 16 · max_inputs 32 $3.009 Sorter · S6 Warm fleet $ per 1M tokens by GPU utilization · 4,237 tok/s per L4 at 100% 0 0.2 0.4 0.6 cheapest API 0.032 100% busy 100% busy: $0.052 — 2×L4 · c32 · seqs 16 $0.052 75% busy 75% busy: $0.070 — 2×L4 · c32 · seqs 16 $0.070 50% busy 50% busy: $0.105 — 2×L4 · c32 · seqs 16 $0.105 25% busy 25% busy: $0.210 — 2×L4 · c32 · seqs 16 $0.210 10% busy 10% busy: $0.524 — 2×L4 · c32 · seqs 16 $0.524

A warm fleet bills $0.80 per L4-hour busy or not, so at a GPU-busy share u its cost per token is 222.2 ÷ (tok/s per L4 × u). The last column is the break-even: the busy share below which the cheapest hosted model is cheaper per token.

Workload Run tok/s per L4 100% busy 75% busy 50% busy 25% busy 10% busy Cheapest API Break-even busy share
Correspondence S3 3,698 $0.060 $0.080 $0.120 $0.240 $0.601 $0.087 69%
Insurance claims S10 1,891 $0.117 $0.157 $0.235 $0.470 $1.175 $0.089 never (API cheaper at 100%)
Corporate records S10 2,867 $0.078 $0.103 $0.155 $0.310 $0.775 $0.053 never (API cheaper at 100%)
Contracts S3 808 $0.275 $0.367 $0.550 $1.100 $2.750 $0.063 never (API cheaper at 100%)
Merger agreements S3 739 $0.301 $0.401 $0.602 $1.203 $3.008 $0.037 never (API cheaper at 100%)
Sorter S6 4,237 $0.052 $0.070 $0.105 $0.210 $0.524 $0.032 never (API cheaper at 100%)

These break-evens are per token. Per document, which is what decides deployment, the warm-fleet break-even busy share against the cheapest hosted model is 64% for corporate records and 32% for correspondence, and Modal is never cheaper for the other classes (cost comparison §3). The two differ because each route spends a different number of tokens on the same document.

Utilization here is the share of the fleet's paid hours spent running batches like the measured one. The measured throughput already includes the idle slots inside each batch (section 5); idle time between batches (section 2) is what moves a real fleet down this table.

3.4 Against the hosted API, per token#

Cost per 1M tokens on the same tasks: Modal L4 (busy-window) vs hosted API · one scale Correspondence $ per 1M tokens (prompt + completion) · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.1 0.2 0.3 0.4 Modal · Qwen3-8B-AWQ (2×L4 c32) Modal · Qwen3-8B-AWQ (2×L4 c32): $0.060 — n = 50 · sand032-s3-corr50 $0.060 API · Qwen3.7-Flash · n = 50 API · Qwen3.7-Flash · n = 50: $0.087 — Qwen3.7-Flash · n = 50 · 20260928T090253Z-eval-correspondence $0.087 API · DeepSeek-V4.1-Flash · n = 20 API · DeepSeek-V4.1-Flash · n = 20: $0.143 — DeepSeek-V4.1-Flash · n = 20 · 20260927T105317Z-eval-correspondence $0.143 API · Granite-4.2-8B · n = 20 API · Granite-4.2-8B · n = 20: $0.187 — Granite-4.2-8B · n = 20 · 20260927T053647Z-eval-correspondence $0.187 API · Qwen3-8B · n = 20 API · Qwen3-8B · n = 20: $0.306 — Qwen3-8B · n = 20 · 20260927T033031Z-eval-correspondence $0.306 Insurance claims $ per 1M tokens (prompt + completion) · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.1 0.2 0.3 0.4 API · Qwen3.7-Flash · n = 50 API · Qwen3.7-Flash · n = 50: $0.089 — Qwen3.7-Flash · n = 50 · 20260928T070248Z-eval-insurance_claims $0.089 Modal · Qwen3-8B-AWQ (2×L4 c32) Modal · Qwen3-8B-AWQ (2×L4 c32): $0.146 — n = 50 · sand032-s3-insurance50 $0.146 API · DeepSeek-V4.1-Flash · n = 20 API · DeepSeek-V4.1-Flash · n = 20: $0.164 — DeepSeek-V4.1-Flash · n = 20 · 20260927T105400Z-eval-insurance_claims $0.164 API · Granite-4.2-8B · n = 20 API · Granite-4.2-8B · n = 20: $0.187 — Granite-4.2-8B · n = 20 · 20260927T054211Z-eval-insurance_claims $0.187 API · Qwen3-8B · n = 20 API · Qwen3-8B · n = 20: $0.253 — Qwen3-8B · n = 20 · 20260927T035135Z-eval-insurance_claims $0.253 Corporate records $ per 1M tokens (prompt + completion) · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.1 0.2 0.3 0.4 API · Qwen3.7-Flash · n = 50 API · Qwen3.7-Flash · n = 50: $0.053 — Qwen3.7-Flash · n = 50 · 20260928T083627Z-eval-corporate_records $0.053 API · DeepSeek-V4.1-Flash · n = 20 API · DeepSeek-V4.1-Flash · n = 20: $0.085 — DeepSeek-V4.1-Flash · n = 20 · 20260927T110828Z-eval-corporate_records $0.085 Modal · Qwen3-8B-AWQ (2×L4 c32) Modal · Qwen3-8B-AWQ (2×L4 c32): $0.095 — n = 50 · sand032-s3-corporate50 $0.095 API · Granite-4.2-8B · n = 20 API · Granite-4.2-8B · n = 20: $0.135 — Granite-4.2-8B · n = 20 · 20260927T065622Z-eval-corporate_records $0.135 API · Qwen3-8B · n = 20 API · Qwen3-8B · n = 20: $0.169 — Qwen3-8B · n = 20 · 20260927T042239Z-eval-corporate_records $0.169 Contracts $ per 1M tokens (prompt + completion) · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.1 0.2 0.3 0.4 API · Qwen3.7-Flash · n = 50 API · Qwen3.7-Flash · n = 50: $0.063 — Qwen3.7-Flash · n = 50 · 20260928T063713Z-eval-contracts $0.063 API · DeepSeek-V4.1-Flash · n = 20 API · DeepSeek-V4.1-Flash · n = 20: $0.107 — DeepSeek-V4.1-Flash · n = 20 · 20260927T105549Z-eval-contracts $0.107 API · Granite-4.2-8B · n = 20 API · Granite-4.2-8B · n = 20: $0.141 — Granite-4.2-8B · n = 20 · 20260927T054738Z-eval-contracts $0.141 API · Qwen3-8B · n = 20 API · Qwen3-8B · n = 20: $0.174 — Qwen3-8B · n = 20 · 20260927T035621Z-eval-contracts $0.174 Modal · Qwen3-8B-AWQ (2×L4 c32) Modal · Qwen3-8B-AWQ (2×L4 c32): $0.275 — n = 47 · sand032-s3-contracts50 $0.275 Merger agreements $ per 1M tokens (prompt + completion) · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B 0 0.1 0.2 0.3 0.4 API · Qwen3.7-Flash (frozen prompts) · n = 20 API · Qwen3.7-Flash (frozen prompts) · n = 20: $0.037 — Qwen3.7-Flash · frozen (filed as Qwen3-8B) · n = 20 · 20260927T022750Z-eval-merger_agreement $0.037 API · Qwen3.7-Flash · n = 50 API · Qwen3.7-Flash · n = 50: $0.038 — Qwen3.7-Flash · n = 50 · 20260928T070803Z-eval-merger_agreement $0.038 API · DeepSeek-V4.1-Flash · n = 20 API · DeepSeek-V4.1-Flash · n = 20: $0.056 — DeepSeek-V4.1-Flash · n = 20 · 20260927T110153Z-eval-merger_agreement $0.056 API · Granite-4.2-8B · n = 20 API · Granite-4.2-8B · n = 20: $0.089 — Granite-4.2-8B · n = 20 · 20260927T082404Z-eval-merger_agreement $0.089 Modal · Qwen3-8B-AWQ (2×L4 c32) Modal · Qwen3-8B-AWQ (2×L4 c32): $0.301 — n = 44 · sand032-s3-merger50 $0.301
Cost per 1M tokens on the same tasks: Modal L4 vs hosted API
Task Modal $ / 1M Modal output share Cheapest API (per 1M) API output share Other API models Cheapest API ÷ Modal
Correspondence $0.060 7% Qwen3.7-Flash $0.087 57% DeepSeek-V4.1-Flash $0.143 · Granite-4.2-8B $0.187 · Qwen3-8B $0.306 1.4×
Insurance claims $0.146 11% Qwen3.7-Flash $0.089 59% DeepSeek-V4.1-Flash $0.164 · Granite-4.2-8B $0.187 · Qwen3-8B $0.253 0.6×
Corporate records $0.095 3% Qwen3.7-Flash $0.053 23% DeepSeek-V4.1-Flash $0.085 · Granite-4.2-8B $0.135 · Qwen3-8B $0.169 0.6×
Contracts $0.275 20% Qwen3.7-Flash $0.063 33% DeepSeek-V4.1-Flash $0.107 · Granite-4.2-8B $0.141 · Qwen3-8B $0.174 0.2×
Merger agreements $0.301 8% Qwen3.7-Flash · frozen (filed as Qwen3-8B) $0.037 7% Qwen3.7-Flash $0.038 · DeepSeek-V4.1-Flash $0.056 · Granite-4.2-8B $0.089 0.1×

Hosted rows are the eval-environment n = 20/50 legs that logged token counts (list price × tokens). Modal rows are busy-window only; scaled by this program's ledger-to-busy ratio (1.6×), Modal is not cheaper per token for any task. Each leg counts tokens with its own prompts and tokenizer, and the API charges output tokens several times more than input, so the output share matters: Modal's GPU-time price does not care about the mix. The per-document comparison, with the break-even volumes and the optimal deployment, is in COST-COMPARISON-MODAL-VS-API.md §3.

4. Warm vs cold GPUs#

4.1 Boot measurements#

4.2 Warm vs cold, per workload#

Cost per 1M tokens: warm fleet vs one cold batch Same measured batch · cold adds boot + the 120 s scale-down tail on every replica warm fleet one cold batch 0 0.5 1 1.5 Correspondence (S3) Correspondence (S3) · warm fleet: $0.060 Correspondence (S3) · one cold batch: $1.320 $0.060 → $1.320 (22.0×) Insurance claims (S10) Insurance claims (S10) · warm fleet: $0.117 Insurance claims (S10) · one cold batch: $0.388 $0.117 → $0.388 (3.3×) Corporate records (S10) Corporate records (S10) · warm fleet: $0.077 Corporate records (S10) · one cold batch: $0.274 $0.077 → $0.274 (3.5×) Contracts (S3) Contracts (S3) · warm fleet: $0.275 Contracts (S3) · one cold batch: $0.669 $0.275 → $0.669 (2.4×) Merger agreements (S3) Merger agreements (S3) · warm fleet: $0.301 Merger agreements (S3) · one cold batch: $0.596 $0.301 → $0.596 (2.0×) Sorter (S6) Sorter (S6) · warm fleet: $0.052 Sorter (S6) · one cold batch: $0.060 $0.052 → $0.060 (1.1×)
Workload Run and fleet Docs Batch wall Boot Warm $/doc Cold $/doc Warm $/1M Cold $/1M Cold ÷ warm
Correspondence S3 · 2×L4 · c32 · seqs 16 · max_inputs 32 50 16 s 216 s (L5 boot) $0.00014 $0.0031 $0.060 $1.320 22.0×
Insurance claims S10 · 1×L4 · c8 · seqs 16 · max_inputs 16 75 146 s 216 s (L5 boot) $0.00043 $0.0014 $0.117 $0.388 3.3×
Corporate records S10 · 1×L4 · c8 · seqs 16 · max_inputs 16 75 133 s 216 s (L5 boot) $0.00039 $0.0014 $0.078 $0.274 3.5×
Contracts S3 · 2×L4 · c32 · seqs 16 · max_inputs 32 47 234 s 216 s (L5 boot) $0.0022 $0.0054 $0.275 $0.669 2.4×
Merger agreements S3 · 2×L4 · c32 · seqs 16 · max_inputs 32 44 342 s 216 s (L5 boot) $0.0035 $0.0069 $0.301 $0.596 2.0×
Sorter S6 · 2×L4 · c32 · seqs 16 457 1791 s 131 s (measured) $0.0017 $0.0020 $0.052 $0.060 1.1×

SAND-032's batches were small: 20–457 documents, and 13 of 24 runs finished in under a minute. At those sizes a cold start costs more than the batch itself for correspondence, insurance claims, corporate records and contracts; only sorter (30 min of GPU work) absorbs its boot.

4.3 Batch size that amortizes a cold start#

Documents per cold batch needed to bring the cold premium (scale-down tail + L5 boot) under 50%, 25% and 10% of the batch's own GPU cost, at each workload's measured busy $/doc (which the second L4 leaves flat, section 6):

Workload Busy $/doc 1×L4 · 50% 1×L4 · 25% 1×L4 · 10% 2×L4 · 50% 2×L4 · 25% 2×L4 · 10%
Correspondence $0.00014 1,049 2,097 5,243 2,097 4,194 10,485
Insurance claims $0.00043 346 692 1,729 692 1,383 3,457
Corporate records $0.00039 380 760 1,899 760 1,520 3,798
Contracts $0.0022 68 135 337 135 270 674
Merger agreements $0.0035 44 87 216 87 173 432
Sorter $0.0017 86 172 429 172 343 858

A 2×L4 cold start costs twice a 1×L4 one, so it needs twice the batch to amortize.

4.4 Keep warm or scale to zero#

Idle gap between batches on 2×L4: stay warm or scale to zero GPU $ for the gap · scale to zero pays the scale-down tail, then a cold boot stay warm scale to zero 0 0.5 1 1.5 2 1 min gap 1 min gap · stay warm: $0.027 1 min gap · scale to zero: $0.027 warm $0.027 · scale-to-zero $0.027 2 min gap 2 min gap · stay warm: $0.053 2 min gap · scale to zero: $0.053 warm $0.053 · scale-to-zero $0.053 5 min gap 5 min gap · stay warm: $0.133 5 min gap · scale to zero: $0.149 warm $0.133 · scale-to-zero $0.149 10 min gap 10 min gap · stay warm: $0.267 10 min gap · scale to zero: $0.149 warm $0.267 · scale-to-zero $0.149 30 min gap 30 min gap · stay warm: $0.800 30 min gap · scale to zero: $0.149 warm $0.800 · scale-to-zero $0.149 60 min gap 60 min gap · stay warm: $1.600 60 min gap · scale to zero: $0.149 warm $1.600 · scale-to-zero $0.149

Between two batches with an idle gap G, a pinned warm 2×L4 fleet costs G × $1.60/h. A scale-to-zero fleet pays the gap while the 120 s scale-down tail runs; past that it pays the tail plus the next cold boot (216 s at L5), and the next batch starts that much later.

Idle gap Stay warm (2×L4) Scale to zero (2×L4) Cheaper Added wait
1 min $0.027 $0.027 stay warm none
2 min $0.053 $0.053 stay warm none
5 min $0.133 $0.149 stay warm +216 s cold boot
10 min $0.267 $0.149 scale to zero +216 s cold boot
30 min $0.800 $0.149 scale to zero +216 s cold boot
60 min $1.60 $0.149 scale to zero +216 s cold boot

Rule: stay warm while the next batch starts within 336 s (5.6 min, the scale-down tail plus one L5 boot); beyond that, scale to zero. One cold 2×L4 cycle costs $0.149; a warm 2×L4 hour costs $1.60.

4.5 What SAND-032 paid#

5. GPU utilization#

How full the fleet was: client-slot occupancy per run (emphasis = 2×L4) 1×L4 knob ladder · correspondence n = 20 · c8 client-slot occupancy = Σ request latency ÷ (concurrency × wall) · higher is better 0 0.25 0.5 0.75 1 L0 · baseline L0 · baseline: 85% — $0.0011 of $0.0071 busy-window GPU $ spent on idle slots 85% L1 · + thinking off L1 · + thinking off: 82% — $0.0010 of $0.0059 busy-window GPU $ spent on idle slots 82% L2 · + awq_marlin (reverted) L2 · + awq_marlin (reverted): 82% — $0.0010 of $0.0059 busy-window GPU $ spent on idle slots 82% L5 · frozen config L5 · frozen config: 90% — $0.00038 of $0.0040 busy-window GPU $ spent on idle slots 90% S4 · bf16 Qwen3-8B (quality arm) S4 · bf16 Qwen3-8B (quality arm): 83% — $0.0018 of $0.010 busy-window GPU $ spent on idle slots 83% Scale-out · correspondence n = 100 · same documents client-slot occupancy = Σ request latency ÷ (concurrency × wall) · higher is better 0 0.25 0.5 0.75 1 S2a · 1×L4, c8 S2a · 1×L4, c8: 98% — $0.00048 of $0.021 busy-window GPU $ spent on idle slots 98% S2b · 2×L4, c16 S2b · 2×L4, c16: 96% — $0.00091 of $0.021 busy-window GPU $ spent on idle slots 96% S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: 34% — $0.044 of $0.066 busy-window GPU $ spent on idle slots 34% S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: 79% — $0.0036 of $0.017 busy-window GPU $ spent on idle slots 79% Five-class sweep · 2×L4 · c32 · n = 50 client-slot occupancy = Σ request latency ÷ (concurrency × wall) · higher is better 0 0.25 0.5 0.75 1 S3 · Correspondence S3 · Correspondence: 72% — $0.0020 of $0.0071 busy-window GPU $ spent on idle slots 72% S3 · Correspondence (repeat) S3 · Correspondence (repeat): 82% — $0.0017 of $0.0094 busy-window GPU $ spent on idle slots 82% S3 · Insurance claims S3 · Insurance claims: 55% — $0.012 of $0.027 busy-window GPU $ spent on idle slots 55% S3 · Corporate records S3 · Corporate records: 81% — $0.0049 of $0.025 busy-window GPU $ spent on idle slots 81% S3 · Contracts S3 · Contracts: 59% — $0.043 of $0.104 busy-window GPU $ spent on idle slots 59% S3 · Merger agreements S3 · Merger agreements: 47% — $0.081 of $0.152 busy-window GPU $ spent on idle slots 47% S5 · Merger agreements · MAUD prompt S5 · Merger agreements · MAUD prompt: 58% — $0.082 of $0.197 busy-window GPU $ spent on idle slots 58% Doubled admission · 2×L4 · c64 · n = 50 client-slot occupancy = Σ request latency ÷ (concurrency × wall) · higher is better 0 0.25 0.5 0.75 1 S9 · Insurance claims S9 · Insurance claims: 42% — $0.014 of $0.023 busy-window GPU $ spent on idle slots 42% S9 · Corporate records S9 · Corporate records: 65% — $0.0075 of $0.022 busy-window GPU $ spent on idle slots 65% S9 · Contracts S9 · Contracts: 36% — $0.062 of $0.098 busy-window GPU $ spent on idle slots 36% S7 · Insurance · max_inputs 64 S7 · Insurance · max_inputs 64: 41% — $0.015 of $0.026 busy-window GPU $ spent on idle slots 41% v2 prompts · 1×L4 · c8 · n = 75 client-slot occupancy = Σ request latency ÷ (concurrency × wall) · higher is better 0 0.25 0.5 0.75 1 S10 · Correspondence S10 · Correspondence: 98% — $0.00038 of $0.017 busy-window GPU $ spent on idle slots 98% S10 · Insurance claims S10 · Insurance claims: 94% — $0.0019 of $0.032 busy-window GPU $ spent on idle slots 94% S10 · Corporate records S10 · Corporate records: 98% — $0.00053 of $0.029 busy-window GPU $ spent on idle slots 98% LLM sorter · 2×L4 · c32 client-slot occupancy = Σ request latency ÷ (concurrency × wall) · higher is better 0 0.25 0.5 0.75 1 S6 · LLM sorter S6 · LLM sorter: 79% — $0.169 of $0.796 busy-window GPU $ spent on idle slots 79%
Run Fleet Slot occupancy Effective parallelism tok/s per L4 Idle-slot share of busy $ Cold boot Prefix-cache hit per replica Mean TTFT per replica (s)
L0 · baseline 1×L4 · c8 · seqs 6 · max_inputs 32 85% 6.8× of 8 1,261 15% warm 59% 3.1
L1 · + thinking off 1×L4 · c8 · seqs 6 · max_inputs 32 82% 6.6× of 8 1,524 18% 120 s 59% 2.5
L2 · + awq_marlin (reverted) 1×L4 · c8 · seqs 6 · max_inputs 32 82% 6.6× of 8 1,526 18% 117 s 59% 2.7
L5 · frozen config 1×L4 · c8 · seqs 16 · max_inputs 32 90% 7.2× of 8 2,238 10% 213 s 59% 1.4
S4 · bf16 Qwen3-8B (quality arm) 1×L4 · c8 · seqs 6 · max_inputs 32 83% 6.7× of 8 859 17% 134 s 59% 4.0
S2a · 1×L4, c8 1×L4 · c8 · seqs 16 · max_inputs 32 98% 7.8× of 8 2,579 2% warm 57% 0.7
S2b · 2×L4, c16 2×L4 · c16 · seqs 16 · max_inputs 32 96% 15.3× of 16 2,654 4% warm 70% / 50% 0.5 / 1.3
S7 · 2×L4, c64, max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 64 34% 22.0× of 64 820 66% 219 s 27% / 51% 1.8 / 16.2
S9 · 2×L4, c64, max_inputs 32 2×L4 · c64 · seqs 32 · max_inputs 32 79% 50.6× of 64 3,141 21% 179 s 49% / 50% 5.5 / 5.5
S3 · Correspondence 2×L4 · c32 · seqs 16 · max_inputs 32 72% 22.9× of 32 3,698 28% warm 75% / 55% 0.7 / 1.1
S3 · Correspondence (repeat) 2×L4 · c32 · seqs 16 · max_inputs 32 82% 26.1× of 32 2,793 18% warm 49% / 38% 6.6 / 6.7
S3 · Insurance claims 2×L4 · c32 · seqs 16 · max_inputs 32 55% 17.7× of 32 1,521 45% warm 72% / 55% 0.9 / 2.1
S3 · Corporate records 2×L4 · c32 · seqs 16 · max_inputs 32 81% 25.8× of 32 2,346 19% warm 66% / 44% 1.2 / 5.7
S3 · Contracts 2×L4 · c32 · seqs 16 · max_inputs 32 59% 18.8× of 32 808 41% warm 49% / 38% 7.0 / 7.2
S3 · Merger agreements 2×L4 · c32 · seqs 16 · max_inputs 32 47% 15.0× of 32 739 53% warm 50% / 35% 6.9 / 6.3
S5 · Merger agreements · MAUD prompt 2×L4 · c32 · seqs 16 · max_inputs 32 58% 18.7× of 32 692 42% 123 s 31% / 28% 95.6 / 3.4
S9 · Insurance claims 2×L4 · c64 · seqs 32 · max_inputs 32 42% 26.8× of 64 1,751 58% warm 51% / 52% 6.0 / 5.8
S9 · Corporate records 2×L4 · c64 · seqs 32 · max_inputs 32 65% 41.7× of 64 2,715 35% warm 43% / 43% 6.9 / 9.3
S9 · Contracts 2×L4 · c64 · seqs 32 · max_inputs 32 36% 23.2× of 64 785 64% warm 43% / 43% 8.2 / 11.2
S7 · Insurance · max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 64 41% 26.2× of 64 1,584 59% warm 49% / 52% 4.6 / 14.4
S10 · Correspondence 1×L4 · c8 · seqs 16 · max_inputs 16 98% 7.8× of 8 3,051 2% 178 s 59% 1.0
S10 · Insurance claims 1×L4 · c8 · seqs 16 · max_inputs 16 94% 7.5× of 8 1,891 6% warm 57% 1.0
S10 · Corporate records 1×L4 · c8 · seqs 16 · max_inputs 16 98% 7.9× of 8 2,867 2% warm 46% 1.5
S6 · LLM sorter 2×L4 · c32 · seqs 16 79% 25.2× of 32 4,237 21% 131 s — —

Findings.

6. Adding the second L4#

6.1 Same documents, one L4 vs two#

Adding the second L4 · correspondence n = 100, same documents (grey = one L4 or one replica doing the work) Wall time Seconds for the batch · lower is better 0 50 100 150 S2a · 1×L4, c8 S2a · 1×L4, c8: 95.0 s — 1×L4 · c8 · seqs 16 · max_inputs 32 95.0 s S2b · 2×L4, c16 S2b · 2×L4, c16: 46.1 s — 2×L4 · c16 · seqs 16 · max_inputs 32 46.1 s S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: 149.4 s — 2×L4 · c64 · seqs 32 · max_inputs 64 149.4 s S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: 39.0 s — 2×L4 · c64 · seqs 32 · max_inputs 32 39.0 s Throughput per L4 Tokens per second per GPU · higher is better 0 1,000 2,000 3,000 4,000 S2a · 1×L4, c8 S2a · 1×L4, c8: 2,579 — 1×L4 · c8 · seqs 16 · max_inputs 32 2,579 S2b · 2×L4, c16 S2b · 2×L4, c16: 2,654 — 2×L4 · c16 · seqs 16 · max_inputs 32 2,654 S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: 820 — 2×L4 · c64 · seqs 32 · max_inputs 64 820 S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: 3,141 — 2×L4 · c64 · seqs 32 · max_inputs 32 3,141 Cost per 1M tokens busy-window GPU $ · lower is better 0 0.1 0.2 0.3 S2a · 1×L4, c8 S2a · 1×L4, c8: $0.086 — 1×L4 · c8 · seqs 16 · max_inputs 32 $0.086 S2b · 2×L4, c16 S2b · 2×L4, c16: $0.084 — 2×L4 · c16 · seqs 16 · max_inputs 32 $0.084 S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: $0.271 — 2×L4 · c64 · seqs 32 · max_inputs 64 $0.271 S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: $0.071 — 2×L4 · c64 · seqs 32 · max_inputs 32 $0.071 p95 request latency Seconds · lower is better 0 20 40 60 S2a · 1×L4, c8 S2a · 1×L4, c8: 11.6 s — 1×L4 · c8 · seqs 16 · max_inputs 32 11.6 s S2b · 2×L4, c16 S2b · 2×L4, c16: 14.4 s — 2×L4 · c16 · seqs 16 · max_inputs 32 14.4 s S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: 51.5 s — 2×L4 · c64 · seqs 32 · max_inputs 64 51.5 s S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: 30.4 s — 2×L4 · c64 · seqs 32 · max_inputs 32 30.4 s
Metric 1×L4 · c8 2×L4 · c16 2×L4 · c64, max_inputs 64 2×L4 · c64, max_inputs 32
Fleet 1×L4 · c8 · seqs 16 · max_inputs 32 2×L4 · c16 · seqs 16 · max_inputs 32 2×L4 · c64 · seqs 32 · max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 32
Wall time 95.0 s 46.1 s 149.4 s 39.0 s
Throughput 2,579 tok/s 5,308 tok/s 1,641 tok/s 6,282 tok/s
Throughput per L4 2,579 tok/s 2,654 tok/s 820 tok/s 3,141 tok/s
Busy-window GPU $ $0.021 $0.021 $0.066 $0.017
$ per 1M tokens $0.0862 $0.0837 $0.2709 $0.0707
$ per document $0.00021 $0.00021 $0.00066 $0.00017
p50 / p95 latency 6.9 / 11.6 s 5.7 / 14.4 s 31.2 / 51.5 s 21.2 / 30.4 s
Client-slot occupancy 98% 96% 34% 79%
Requests per replica 100 49 / 51 3 / 97 51 / 49
Mean TTFT per replica 0.69 s 0.51 s / 1.26 s 1.81 s / 16.18 s 5.51 s / 5.46 s
Prefix-cache hit per replica 57.3% 70.0% / 50.4% 27.0% / 50.8% 49.2% / 50.5%

6.2 Admission on two L4s#

Task Fleet Wall tok/s per L4 $ / 1M tokens Requests per replica p50 / p95
Correspondence n = 100 2×L4 · c16 · seqs 16 · max_inputs 32 46.1 s 2,654 $0.084 49 / 51 5.7 / 14.4 s
Correspondence n = 100 2×L4 · c64 · seqs 32 · max_inputs 64 149.4 s 820 $0.271 3 / 97 31.2 / 51.5 s
Correspondence n = 100 2×L4 · c64 · seqs 32 · max_inputs 32 39.0 s 3,141 $0.071 51 / 49 21.2 / 30.4 s
Insurance n = 50 2×L4 · c32 · seqs 16 · max_inputs 32 60.7 s 1,521 $0.146 23 / 27 19.7 / 34.1 s
Insurance n = 50 2×L4 · c64 · seqs 32 · max_inputs 64 58.3 s 1,584 $0.140 16 / 34 31.3 / 48.6 s
Insurance n = 50 2×L4 · c64 · seqs 32 · max_inputs 32 52.8 s 1,751 $0.127 25 / 25 27.0 / 40.5 s

Once the router is balanced, doubling admission (c32 → c64, max_num_seqs 16 → 32) buys a modest gain and costs median latency: on insurance claims throughput per L4 rose 15% while p50 went from 19.7 s to 27.0 s. The program summary's reading, not a separate measurement here: “One L4 saturates at around 16 concurrent sequences for these prompts” (reports/serving/QWEN3-L4-LADDER-SUMMARY.md).

6.3 Load balance on every 2×L4 run#

Load balance across the two L4 replicas Share of the run's requests on the busier replica (vLLM /metrics) · 50% = even · lower is better 0 0.25 0.5 0.75 1 even split S2b · 2×L4, c16 S2b · 2×L4, c16: 51% — 49 / 51 requests · 2×L4 · c16 · seqs 16 · max_inputs 32 51% S7 · 2×L4, c64, max_inputs 64 S7 · 2×L4, c64, max_inputs 64: 97% — 3 / 97 requests · 2×L4 · c64 · seqs 32 · max_inputs 64 97% S9 · 2×L4, c64, max_inputs 32 S9 · 2×L4, c64, max_inputs 32: 51% — 51 / 49 requests · 2×L4 · c64 · seqs 32 · max_inputs 32 51% S3 · Correspondence S3 · Correspondence: 70% — 35 / 15 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 70% S3 · Correspondence (repeat) S3 · Correspondence (repeat): 50% — 25 / 25 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 50% S3 · Insurance claims S3 · Insurance claims: 54% — 23 / 27 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 54% S3 · Corporate records S3 · Corporate records: 58% — 21 / 29 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 58% S3 · Contracts S3 · Contracts: 56% — 22 / 28 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 56% S3 · Merger agreements S3 · Merger agreements: 60% — 30 / 20 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 60% S5 · Merger agreements · MAUD prompt S5 · Merger agreements · MAUD prompt: 82% — 41 / 9 requests · 2×L4 · c32 · seqs 16 · max_inputs 32 82% S9 · Insurance claims S9 · Insurance claims: 50% — 25 / 25 requests · 2×L4 · c64 · seqs 32 · max_inputs 32 50% S9 · Corporate records S9 · Corporate records: 66% — 17 / 33 requests · 2×L4 · c64 · seqs 32 · max_inputs 32 66% S9 · Contracts S9 · Contracts: 56% — 22 / 28 requests · 2×L4 · c64 · seqs 32 · max_inputs 32 56% S7 · Insurance · max_inputs 64 S7 · Insurance · max_inputs 64: 68% — 16 / 34 requests · 2×L4 · c64 · seqs 32 · max_inputs 64 68%
Run Fleet Requests per replica Busier replica Mean TTFT per replica Prefix-cache hit tok/s per L4
S2b · 2×L4, c16 2×L4 · c16 · seqs 16 · max_inputs 32 49 / 51 51% 0.5 s / 1.3 s 70% / 50% 2,654
S7 · 2×L4, c64, max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 64 3 / 97 97% 1.8 s / 16.2 s 27% / 51% 820
S9 · 2×L4, c64, max_inputs 32 2×L4 · c64 · seqs 32 · max_inputs 32 51 / 49 51% 5.5 s / 5.5 s 49% / 50% 3,141
S3 · Correspondence 2×L4 · c32 · seqs 16 · max_inputs 32 35 / 15 70% 0.7 s / 1.1 s 75% / 55% 3,698
S3 · Correspondence (repeat) 2×L4 · c32 · seqs 16 · max_inputs 32 25 / 25 50% 6.6 s / 6.7 s 49% / 38% 2,793
S3 · Insurance claims 2×L4 · c32 · seqs 16 · max_inputs 32 23 / 27 54% 0.9 s / 2.1 s 72% / 55% 1,521
S3 · Corporate records 2×L4 · c32 · seqs 16 · max_inputs 32 21 / 29 58% 1.2 s / 5.7 s 66% / 44% 2,346
S3 · Contracts 2×L4 · c32 · seqs 16 · max_inputs 32 22 / 28 56% 7.0 s / 7.2 s 49% / 38% 808
S3 · Merger agreements 2×L4 · c32 · seqs 16 · max_inputs 32 30 / 20 60% 6.9 s / 6.3 s 50% / 35% 739
S5 · Merger agreements · MAUD prompt 2×L4 · c32 · seqs 16 · max_inputs 32 41 / 9 82% 95.6 s / 3.4 s 31% / 28% 692
S9 · Insurance claims 2×L4 · c64 · seqs 32 · max_inputs 32 25 / 25 50% 6.0 s / 5.8 s 51% / 52% 1,751
S9 · Corporate records 2×L4 · c64 · seqs 32 · max_inputs 32 17 / 33 66% 6.9 s / 9.3 s 43% / 43% 2,715
S9 · Contracts 2×L4 · c64 · seqs 32 · max_inputs 32 22 / 28 56% 8.2 s / 11.2 s 43% / 43% 785
S7 · Insurance · max_inputs 64 2×L4 · c64 · seqs 32 · max_inputs 64 16 / 34 68% 4.6 s / 14.4 s 49% / 52% 1,584

Even with max_inputs = max_num_seqs, short batches split unevenly; the program summary attributes this to Modal's router, not vLLM. The imbalance matters most on long-document classes, where the busier replica's last document sets the wall time.

6.4 The first second-L4 attempt (before SAND-032)#

Run Fleet Docs tok/s per L4 Slot occupancy $ / 1M tokens
run-20-correspondence-specialist-awq 2×L4 · c8 · seqs 6 20 358 84% $0.622
run-50-correspondence-specialist-awq 2×L4 · c8 · seqs 6 50 215 64% $1.031

The pre-SAND-032 correspondence runs (both at sandbox commit 59b9d35, per their reports' git rows) added a second L4 without raising admission: c8 across 2 replicas with max_num_seqs 6 and eager mode (enforce_eager=on, no CUDA graphs). Each L4 was offered about 4 requests at a time (client concurrency ÷ replicas, as the reports state). Their prompts differ from SAND-032's, so this is not a paired comparison, but throughput per L4 was a small fraction of the 2,654 tok/s SAND-032 later reached on two L4s. The lesson carried into the runbook: raise client concurrency with the replica count.

6.5 What the second L4 costs#

7. Recommendations#

  1. Keep the frozen L5 posture and the routing rule. max_inputs = max_num_seqs per container, client concurrency = replicas × max_num_seqs. This is the largest cost lever measured here.
  2. Match fleet width to document length. Short documents fill two L4s; long contracts and mergers leave them idle behind one straggler. Split long-document classes into their own batch, or cap their decode budget, before adding replicas.
  3. Stay warm only across short gaps. 19% of the ledger bought no run. Queue runs back-to-back against one warm fleet; when the next batch starts more than 336 s (5.6 min) later, let the fleet scale to zero (section 4.4).
  4. Size cold batches to their boot. A cold 2×L4 start is worth it only for batches large enough to amortize it: correspondence ≥ 10,485, insurance claims ≥ 3,457, corporate records ≥ 3,798, contracts ≥ 674, merger agreements ≥ 432 and sorter ≥ 858 documents keep the cold premium under 10% (section 4.3). Smaller jobs belong on an already-warm fleet or the hosted API.
  5. Cut sorter input, not sorter GPUs. The LLM sorter is prefill-bound and already the cheapest work per token; head-truncating its input is what moves its cost per document.
  6. Measure real GPU utilization before the next spend. Sample nvidia-smi or DCGM (SM %, memory bandwidth, power) and scrape vLLM KV usage under load. Slot occupancy shows when the fleet is starved; it cannot show how hard a busy GPU is working.
  7. Reconcile the ledger. Compare $2.80 against the Modal usage page for 27–28 Sep (UTC: the vLLM replica start times in the run reports, plus the program summary's stage 6–9 date, 2026-09-28).

8. Source notes#

Sources#

Source What it gives
local-mailroom-sandbox/reports/serving/sand032-*.serving.json per-run wall, boot, tokens, throughput, latency, slot occupancy, GPU $
local-mailroom-sandbox/reports/*/SAND032-*-REPORT.md engine flags, busy-window GPU $, per-replica vLLM /metrics
local-mailroom-sandbox/reports/serving/QWEN3-L4-LADDER-SUMMARY.md spend ledger, incident, runbook findings
local-mailroom-sandbox/reports/dashboard/hub_data.json the cross-checked extract every number here is read from
eval-environment/reports/api-comparisons/ (via the hub) hosted-API legs with token counts and cost

local-mailroom-sandbox @ 95d89fa8f401 · eval-environment @ 86b4e54fc5a2 · mailroom-ml @ d3ad22263da0