Written 2026-10-15, before any study measurement. Changes made after the first study result must be listed at the end, with the reason, exactly as in the quality method note.
What is the cheapest way to self-host a useful open-weight model, and what do you lose by going cheap? Concretely, for one 7B instruction model served with vLLM:
Qwen2.5-7B-Instruct (Apache-2.0), chosen because its quantised builds are published by its own authors and verifiably come from the same checkpoint. All weights are pinned by revision:
| Format | Repository @ revision | Size |
|---|---|---|
| BF16 (baseline, as published) | Qwen/Qwen2.5-7B-Instruct @ a09a35458c702b33eeacc393d103063234e8bc28 |
15.2 GB |
| AWQ 4-bit | Qwen/Qwen2.5-7B-Instruct-AWQ @ b25037543e9394b818fdfca67ab2a00ecc7dd641 |
5.6 GB |
| GPTQ 4-bit | Qwen/Qwen2.5-7B-Instruct-GPTQ-Int4 @ e9c932ac1893a49ae0fc497ad6e1e86e2e39af20 |
5.6 GB |
| GPTQ 8-bit | Qwen/Qwen2.5-7B-Instruct-GPTQ-Int8 @ 6711f2b6fc95545efe6018c469eca6832e28cefd |
8.9 GB |
Provenance checked before the study: every quantised repo declares the BF16 repo as its base, has an identical architecture configuration, and ships tokenizer files with identical content (the GPTQ files differ only in formatting). This does not prove the weights came from exactly this revision; the BF16 noise floor against each format’s divergence would expose a different model.
Candidates considered and rejected: Qwen3-8B and Qwen3.5-9B (reason by default, and disabling it needs an engine-specific request option; Qwen3.5-9B also has no official quantised builds); Llama-3.1-8B-Instruct and Mistral-7B-Instruct-v0.3 (no quantised builds whose base can be verified).
| Tier | GPU | Why |
|---|---|---|
| 1 | NVIDIA RTX 3090, 24 GB | Consumer card many self-hosters own or rent cheaply |
| 2 | NVIDIA L4, 24 GB | The entry inference card of the major clouds |
| Reference | NVIDIA A100 80 GB | A class many published benchmarks use; latency only, to anchor the results |
All tiers rented from RunPod Secure Cloud (RunPod’s own data centres, for consistent hardware), hourly rates recorded as paid with their date. Stock varies by the hour, so if a planned GPU is unavailable when its tier is due, the next Secure Cloud option in this order is used, and the substitution is reported with the results:
| Tier | Planned | Substitutes, in order |
|---|---|---|
| 1 | RTX 3090 | RTX 4090, then RTX A5000 |
| 2 | L4 | none (the tier waits for stock) |
| Reference | A100 PCIe 80 GB | A100 SXM 80 GB |
All formats of a tier run on one pod, so comparisons within a tier share identical
hardware, and each pod’s host (GPU details, CPU, memory) is recorded with its results. The
pinned vLLM image is built for CUDA 13.0, so pods are created only on hosts supporting it.
Engine: vLLM 0.30.0 (vllm/vllm-openai:v0.30.0), released 2026-09-22. Client: frugal-llm,
a pinned release, running on the same machine as the server so no network latency is measured.
Each tier is completed in full before the next is started. If the study stops early, the completed tiers are reported, and incomplete ones are not.
Exactly scripts/run_cell.sh, identical on every tier:
--max-model-len 4096 --gpu-memory-utilization 0.90, defaults
otherwise.frugal-llm bench -c 1,4,16,64 -n 50,100,200,400 --repeats 3 --max-tokens 128.frugal-llm quality on all 1,319 GSM8K and the 1,000-question MMLU set, greedy
decoding, max_tokens 1024, concurrency 16 for every run. BF16 is run twice; the
second run is the noise floor.Formats per tier: BF16, AWQ, GPTQ-Int4 and GPTQ-Int8 on tiers 1 and 2; BF16 and AWQ latency only on the reference tier.
A shakedown precedes the study: one GPU-hour on tier 1 running every step at tiny size
(SHAKEDOWN=1), to catch load failures, timeouts and recording problems before the real runs.
Its results are not part of the study.
frugal-llm bench reports them: quantiles only, never pooled
across concurrency levels; repeats shown as median and range.frugal-llm compare per tier and task, each quantised format against BF16 run
a, with BF16 run b as the noise floor. Accuracy with Wilson intervals; paired difference
with Newcombe intervals and exact McNemar tests, Holm-corrected across the formats of one
tier and task; answer agreement and output divergence. Method: docs/quality-method.md.frugal-llm cost per tier, using the measured capacity and the rate actually
paid, against APIs serving the same model, with prices read from the providers’ own pages
and dated on the day of analysis. Break-even traffic and utilisation, never a single ratio.
Method: docs/cost-method.md.Every result file from the study (not the shakedown) is committed to this repository, so any
table or chart can be regenerated or checked with report, compare and cost.
t1-rtx3090. The
RTX 4090 tier is kept, not replaced: both are reported, and no earlier result changes.system_fingerprint is
now labelled “fingerprint”, not “build”: vLLM issues a new one at every launch, so it
identifies a server process, not a software build. The break-even chart’s self-hosted line
could add an instance one sample early wherever traffic was an exact multiple of one
instance’s capacity (floating-point rounding; most visible as a spike at the final point);
the instance count is now rounded before it is taken. Neither change alters any measurement
or table value: regenerated summaries differ from the earlier ones only in the label.model_not_available unless a dedicated (hourly) endpoint is rented. The only live
per-token provider found was Phala via OpenRouter (USD 0.10 in / 0.20 out per 1M,
2026-10-16; DeepInfra lists the model as deprecated). Phala via OpenRouter becomes the API
comparison for cost; Together’s listed price is reported only as a listed, unpurchasable
price. The API’s own quality was measured with the same task sets, settings (greedy,
max_tokens 1024, concurrency 16) and statistics as the GPU tiers, in one run per task.
OpenRouter does not report the upstream model’s precision, and frugal-llm does not record
which upstream served each request; Phala was the only provider listed, and served a
test request.scripts/pooled_quality.py
averages each item’s difference over the GPUs and tests the mean over items (sign-flip
permutation, bootstrap interval, Holm across every format and both tasks, BF16 rerun as
control). It was not planned, was chosen after seeing the pattern, and is reported as
exploratory; the pre-registered per-GPU comparisons are unchanged.scripts/mmlu_4bit_pooled.py
averages each question’s correctness over the three GPUs and tests the paired difference
(10,000 bootstrap resamples, sign-flip permutation): AWQ −0.90 points (95% CI −2.33 to
+0.50), GPTQ-Int4 −1.10 (−2.60 to +0.40), Holm-adjusted p = 0.348 for both. It agrees with
change 5’s broader test, which stays the one reported in full.