Skip to the document
Madhuopen lab

AI Insights: Latency & Cost Optimization · part 13 of 17

adopted28 July 2026cost: ~$4.50 (38-min run, auto-teardown verified)

Final validation: the W8 recipe at n=10

Combo prompt + 30-line post-code on Foundry H100, full throughput sweep

The question

Does the W8 recipe hold at n=10 with a full throughput sweep — enough to call it the ship candidate?

adopted

Parity reached: W8 Qwen scores 7.95 vs GPT-5.1's 8.0 (Opus), zero ungrounded numbers, 6.1 s wall — 87% season cost cut.

Quality (Opus)7.95 vs 8.0Qwen W8 vs GPT-5.1 = parity
Ungrounded numbers0post-code gate working
Wall / TTFT6.1 s / 614 msH100 BF16, gateway TTFT
Season (180M calls)~$317Kvs $2.46M API = 87% cut

The recipe

W8 = single call + combo prompt (V5 facts + facts2 + few-shot) + ~30 lines of post-processing code (eligibility gate + insight merge) + streaming. W7 (same without the post-code) scored 7.5/7.0 and serves as the fallback if the post-processing layer can't ship.

Results (n=10, Foundry H100 BF16)

Results (n=10, Foundry H100 BF16)
MetricQwen W8GPT-5.1 + V5W7 fallback
Opus 5 judge7.958.07.5
Sonnet 5 judge7.07.57.0
Ungrounded numbers00
Wall time6.1 s~15 s
TTFT614 ms~1.6 s

Throughput sweep (combo prompt)

3,960 req/hr at concurrency 16 → $0.00176 per answer. At millions of records x 15 views, season cost ~$317K vs ~$2.46M on the paid API — an 87% cut with quality at parity.

validationW8 recipeparityship candidate