Method: how we measure and estimate
This site benchmarks quantized local LLMs. Here is how each number is produced and how far it can be trusted.
1. How we measure speed
We run llama-bench from llama.cpp and record two numbers, both in tokens per second, only in finished result files.
- pp512: how fast the model reads a 512-token prompt.
- tg128: how fast it generates 128 new tokens. "Speed" on this site means this value unless stated otherwise.
Each measurement is repeated and we record the mean, the standard deviation (tg128_stdev) and the repeat count (repeats). The result file also records flash attention, context length, offload mode (full/partial/cpu) and the number of GPU layers, runtime name, version and backend, driver, OS, CPU and RAM. Speed with the context already filled is measured separately with the -d (depth) option and stored in by_depth.
The result-file format (schema 2) is illustrated in results/_example.json. It contains fake numbers, so it is not listed in results/index.json; you can only see it through the example preview. The public location of the measurement scripts is [ not decided yet ].
2. Coding-agent benchmarks
Quality is measured by whether a model actually finishes real coding tasks. We use two scaffolds.
- SWE-bench Verified subset: a fixed set of 50 tasks (version
v1-50) drawn from SWE-bench Verified, where the job is to fix real issues in open-source repositories. The scaffold is the bash-only mode of mini-SWE-agent: the model reads and edits the repo through shell commands only, and a task counts as "resolved" when the hidden tests pass. How the 50 tasks were chosen and where the id list is published: [ not decided yet ]. - Aider Polyglot: Aider's 225 exercises (C++, Go, Java, JavaScript, Python, Rust). The scaffold is Aider, and pass@2 is the share of exercises that pass after a second attempt, made after seeing the test failure from the first.
What pass@1 means
The share of tasks solved with exactly one attempt per task (attempts: 1), with settings fixed identically for every model. Resolved rate = tasks resolved ÷ total tasks. With only 50 tasks the noise is large: at a 50% rate the 95% confidence interval is roughly ±14 percentage points (a theoretical binomial value, not a measurement), so do not rank models on differences of a few points.
Contamination
SWE-bench tasks are old issues from public repositories, so we cannot rule out that a model saw the fixes or similar code in training. Treat these scores as a comparison among local models under identical conditions, not as absolute numbers comparable with scores published elsewhere.
3. Our Elo: the Bradley-Terry rating
"Our task-based Elo" on the leaderboard is computed from task outcomes, not from human votes. If one model solves a task and another does not, the solver wins; if both solve it or both fail, it is a tie. We fit a Bradley-Terry model (a logistic model in which each model's "strength" sets its chance of winning) to all pairwise outcomes across tasks, convert strengths to the Elo scale and pin the anchor model (anchor) at 1000. The 95% interval (ci95) comes from bootstrap resampling of tasks. Results live in results/ratings.json and are empty until measurements exist.
The site labels this as "our score" and never mixes it with the LM Arena Elo below, which uses a different scale and method.
4. Scores do not depend on hardware; time does
For the same model and the same quantized file, whether a task is solved does not depend on the graphics card running it (only speed differs). So we measure scores once per model and quantization, on a fast rented server, and measure only speed and time per task for each hardware tier (4/6/8/12/16/24/32 GB).
Time estimate: trajectory replay
While scoring we record the token counts of every agent step (new prompt tokens read, tokens generated, and the context depth at that moment), called the profile. The time per task on a given machine is computed by replaying that record: for each step, new prompt tokens ÷ pp speed at that depth + generated tokens ÷ tg speed at that depth, summed. The per-depth speeds are the by_depth values measured on that machine. The replay assumes a prompt cache, so the already-read prefix is not processed again and only the newly added part counts (assumes_prompt_cache). Tool-execution time and similar items follow the definition of the profile version (swe-subset-trajectory-v1).
This value is a computed estimate, not a measurement, and the site labels it "estimate".
5. Quantization variants of the same model
The same model can differ in file size, speed and quality depending on who quantized it and how. How quantization affects a coding agent's success rate can vary by model, so this site measures and shows each model + quantization (+ quantizer) separately. Since we have no measurements yet, we do not claim any quantization is better.
- K-quants (Q4_K_M, Q5_K_M, Q6_K, ...): llama.cpp's standard family. Weights are quantized in small blocks with mixed bit widths per tensor; the trailing S/M/L marks the size step of the mix.
- i-quants (IQ4_XS, IQ3_XXS, ...): designed to keep quality at very low bit widths (typically 4 bits or fewer). They can be slower on some devices and backends, so speed must be measured separately.
- Unsloth Dynamic (UD-Q4_K_XL, ...): Unsloth files whose names start with
UD-; bit widths vary by layer. They differ in size and quality from a similarly named plain Q4_K_M, so we do not treat them as the same file. - imatrix (importance matrix): measures with calibration text which weights matter most, then rounds them less aggressively. We mark it only when the repo says it used imatrix or ships an imatrix file; otherwise it is left blank.
- QAT (quantization-aware training): a release the model maker retrained assuming quantization. We mark files whose repo or file name says QAT.
- MXFP4: 4-bit floating point with per-block scales. gpt-oss ships natively in this format.
The "quantizer" is one of official (the model maker), ggml-org, unsloth, bartowski, mradermacher or other; file names and sizes are copied from the repo listing. You can see them under "files by quantizer" in the calculator.
6. MoE offloading
A MoE model has many "experts" per layer and uses only some of them per token. When graphics memory is short, a common approach is to keep the expert weights (the bulk of the model) in system RAM and the rest (attention, etc.) on the GPU. In llama.cpp there are two ways to set it up.
--n-cpu-moe N: keeps the expert weights of the first N layers on the CPU (RAM). Recorded asn_cpu_moe.-ot(--override-tensor): sets tensor-name patterns (regular expressions) and where to place them. The value used is recorded verbatim asoverride_tensors.
How fast this is depends heavily on RAM bandwidth and the CPU, so results record RAM bandwidth and the settings. The calculator's partial-offload speed is a simplified estimate.
7. KV cache, context length and "max context that fits"
As a session grows, the memory that remembers earlier content (the KV cache) grows, so for long-context jobs such as coding agents, fitting the context is often a bigger problem than fitting the weights. This site shows two numbers side by side.
- Model max context (
context_max): the native value documented on the model card.context_extendedis given only when the card officially documents extending it (RoPE/YaRN and similar). The source iscontext_source. - Max context that fits on this hardware:
(usable memory − weights − fixed overhead − fixed KV) ÷ KV bytes per token, capped at the model max. "All on GPU" uses graphics memory only; "with RAM offload" adds the RAM left over. If a measured result hascontext_fit(the largest context that actually loaded and ran), it takes precedence.
KV bytes per token use the data file's kv_bytes_per_token when present, otherwise 2 x layers x KV heads x head dim x 2 bytes. Models where attention exists in only some layers, or that use sliding windows, use a value computed separately from the model card config; the reasoning is in each model's notes.
KV cache quantization
The KV cache can also be quantized (--cache-type-k, --cache-type-v in llama.cpp). The default is f16 (2 bytes per element); q8_0 uses 34 bytes per 32 elements (1.0625 bytes each, about 53% of f16) and q4_0 uses 18 bytes per 32 (0.5625 bytes each, about 28% of f16). We scale KV size by these ratios. Memory shrinks but quality can change, and quantizing the V cache requires flash attention. The result records kv_type.
Context depth
llama-bench's -d measures speed with that much context already filled. Speed drops as the session grows, so a depth-0 number alone looks faster than real use.
8. How we measure fidelity (KLD)
To see how much quantization changed the model, we feed the same text (named in the corpus field) to a reference model (BF16, or Q8_0 if BF16 does not fit) and to the quantized model, then compare how each predicts the next token. We use llama.cpp's llama-perplexity --kl-divergence: first save the reference model's predictions to a file, then compute how far the quantized model's predictions differ.
- Mean KLD (
kld_mean): the difference between the two predicted distributions (KL divergence), averaged over all tokens. Lower means closer to the original; 0 means identical. - KLD 99th percentile (
kld_p99): the value at the worst 1% of tokens. It catches models that are fine on average but occasionally far off. - Same top token (
same_top_p): how often the quantized model's most likely token matches the reference. Higher is better.
Limitation: KLD measures "how similar to the original", not "is the answer right". If the original is wrong somewhere and the quant is wrong in the same way, KLD is low. So we read it together with the coding-agent scores.
A result file holds one runtime. The runtime names the format accepts are llama.cpp, Ollama, LM Studio, ik_llama.cpp, Strata, vLLM, ExLlamaV3 and MLX. Strata is a runtime name seen in some repo names that we have not verified well enough to describe. Different runtimes give different speed and memory for the same file, so always check the runtime column when comparing.
Rented-server (cloud) results
The CPU and RAM of a rented server such as an H100 or L40S differ from a normal PC, so offloaded settings (part of the model on the CPU) cannot be compared with a home PC on the same line. Such results carry a note that they reflect the rental server's CPU and RAM and may differ on a normal PC, along with the provider and RAM bandwidth. Results where every layer is on the GPU do not get this note.
9. External reference benchmarks
Until our own measurements exist, we show external benchmarks measured by independent organizations for reference. These scores are mostly for original full-precision models, not for the quantized versions this site is about. We follow these rules.
- We use only results that an independent organization ran itself under uniform conditions. Scores written by the model makers themselves (model cards, maker-reported Hugging Face
.eval_results, and so on) are not used. - We use only sources whose data license or terms allow republishing, and we never scrape web pages. We read official data files or official APIs only.
- Conditions differ between sources, so we never combine scores from different sources into one number. When you pick a source and metric on the leaderboard, its method, conditions, snapshot date and attribution are shown with it.
- API-only models such as Claude and ChatGPT/OpenAI appear only as comparison rows marked "API only · not runnable locally".
- Rows measured on a quantized version carry a "measured on quantized" tag. Without the tag, the score is for the original model.
- A source row is linked to one of our models only when name and version both match (per-source mapping tables are
tools/refs/*_map.json). Data lives indata/refs/<source>.json(one file per source), with one fetch script per source intools/refs/; enabled sources are listed inrefsinsite.config.json. The site keeps working even if none is enabled.
Sources currently enabled
- Epoch AI Benchmarking Hub (epoch.ai/benchmarks): from the official data bundle (
benchmark_data.zip, free to use if the source and authors are credited, CC BY) we use only rows that Epoch ran itself (rows with an Epoch run log). Externally sourced rows (*_external.csv) keep their original licenses and are not used. Benchmarks used: SWE-bench Verified (Epoch's own scaffold), GPQA Diamond, OTIS Mock AIME, MATH Level 5, SimpleQA Verified, Mystery Game Puzzles and FrontierMath Tiers 1-3 v2. Open models were run through hosted API providers and the CSV does not state their precision (quantized or not). The scaffold version for SWE-bench Verified is not in the CSV; it is in Epoch's run logs. - Aider Polyglot: the official data file in the Aider repository (
polyglot_leaderboard.yml, Apache-2.0). It has not been updated since 2025-10, so it is a historical record and each row shows its date. The main metric is pass_rate_2; edit format and reasoning effort appear under "setting". - LM Arena: Elo-style scores based on human preference votes: visitors compare two anonymous answers and pick one, and the ratings are computed from those votes. They are not coding-agent task-resolution results. Two tables are used, text (
text_style_control, overall category) and code (webdev). We read the official Hugging Face dataset lmarena-ai/leaderboard-dataset (CC BY 4.0) through the Hugging Face datasets-server JSON API and never read the arena.ai or lmarena.ai websites.
Elo scores: LM Arena (arena.ai), lmarena-ai/leaderboard-dataset on Hugging Face, CC BY 4.0. Filtered and reformatted by this site. / Epoch AI, "Capabilities & benchmarking". Published online at epoch.ai. (CC BY) / Aider-AI/aider polyglot_leaderboard.yml (Apache-2.0). Snapshot dates are in the source box on the leaderboard page.
Sources not shown (pending permission or data terms)
- SWE-rebench: we checked the official CC BY 4.0 dataset (
nebius/SWE-rebench-leaderboard) and it holds tasks only, with no per-model scores. The scores exist only on swe-rebench.com, which states no terms, so we do not take them. It stays disabled. - Artificial Analysis: its free API terms are unclear for use on an ad-supported site, so it is not shown until permission is requested and granted.
- SWE-bench official (bash-only): the official website data is CC BY-NC 4.0, so it is not shown until permission is requested and granted.
10. How estimates are computed
For hardware we have not measured, the numbers come from the formulas below and are all labelled estimate. The constants live in one place, js/config.js, and will be calibrated against measurements.
Memory needed
memory needed (GB) = GGUF file size + KV cache + compute buffer (only for models with the optional field) + 0.6 (fixed overhead)
KV cache (GB) = KV bytes per token x context length / 10^9 (+ fixed KV)
compute buffer (GB) = base + per-1k-context growth x context/1024 + per-ubatch growth x ubatch (512)
Fit classification
- Fits entirely in graphics memory: memory needed ≤ graphics memory (x1.073741824, see Units below) − 0.5 GB. For unified memory (Macs, integrated graphics) we assume 70% of the total is usable by the GPU (an assumption).
- Partly offloaded to RAM: the part above that limit fits in (system RAM x1.073741824 − 4 GB for the OS, an assumption). Not used for unified-memory machines.
- Runs on CPU: for CPU-only entries, when the memory needed fits in the usable RAM.
- Not enough memory: none of the above, or the chosen context is longer than the model's max.
Generation speed
all on GPU: tok/s ≈ bandwidth (GB/s) x 0.8 ÷ GB read per token
GB read per token = GGUF size (dense) or GGUF size x active params ÷ total params (MoE; the effective-active field replaces active params when present)
partial offload: 1 ÷ ( readGB x f ÷ (GPU bandwidth x 0.8) + readGB x (1−f) ÷ (RAM bandwidth x 0.65) ) (f = share of weights on the GPU)
CPU only: tok/s ≈ RAM bandwidth x 0.65 ÷ GB read per token
The default RAM bandwidth is 51.2 GB/s (DDR4-3200 dual channel). The efficiency values were fitted to 12 measurements from one PC (2026-11-26). Efficiency is relative to that machine's theoretical RAM bandwidth, so it works best when the RAM bandwidth you enter is accurate. With measurements from only one PC, other hardware can be off by more.
Four changes made from the measurements
- Units: a graphics card sold as "8 GB" really has 8192 MiB (about 8.59×10^9 bytes), and the RAM you enter uses the same binary convention. GGUF and KV sizes are in 10^9 bytes, so card and RAM sizes are multiplied by 1.073741824 before the reserve is subtracted. An 8 GB card therefore counts as 8×1.074−0.5 ≈ 8.09 GB usable.
- Efficiency values: now 0.8 for the GPU and 0.65 for the CPU (both were a placeholder 0.6 before).
- IQ1-IQ3 quants are slow on CPU: quants with IQ1_, IQ2_ or IQ3_ in the name decode a codebook, so on the CPU they are compute-bound rather than memory-bound. We multiply the CPU efficiency by an extra 0.5 (CPU-only runs, and the RAM part of partial offload). IQ4_ formats do not get it.
- MoE reads less from RAM when partly offloaded: llama.cpp's
--n-cpu-moekeeps attention and shared weights on the GPU and moves only the routed experts to RAM. For MoE models the RAM part is read GB x (1−f) x 0.65 and the rest is read from the GPU. Dense models stay at read GB x (1−f).
With these values the RMS log error on the 12 measurements fell from 0.39 to about 0.18. The largest remaining miss is a dense IQ1_M model with heavy CPU offload, overestimated by about 59%.
Optional per-model calibration fields
Models that the formulas above do not fit get optional fields in data/models.json. A model without them is computed exactly as above.
active_params_eff_b: the active parameters one token really reads, in billions. It is larger than the headline figure when layers are repeated with shared weights. It replaces active params in GB read per token.compute_buffer: coefficients of the llama.cpp compute-buffer formula (base_gb,per_1k_ctx_gb,per_ubatch_gb). It feeds memory needed, the share of weights that fits on the GPU, and the maximum context that fits.cpu_efficiency: this model's CPU efficiency, used instead of the default efficiency and the IQ factor.
Only Inkling 2 Mini has them so far. It is billed as 3.4B active, but layers 6-17 run three times, so the card's effective active figure is 5.4B (active_params_eff_b 5.4), and its compute buffer is large (about 4.2 GB at a 4k context and 7 GB at 32k with ubatch 512, about 4.5 GB at 32k with ubatch 128), so almost no weights fit on an 8 GB card. The coefficients were fitted to those three values (base 0.47 GB, 0.1 GB per 1k context, 0.0065 GB per ubatch unit). CPU efficiency is 0.285, fitted to four measurements on the same PC (UD-IQ2_XXS 12.04, UD-Q2_K_XL 7.74, UD-IQ3_XXS 6.95, UD-Q4_K_XL 6.73 tok/s, the last one CPU-only at depth 0); the estimates land at 0.75-1.25x of the measured values. Because they are fitted to four points on one PC, other hardware can be off by more, and quants other than these four have not been checked yet. Measured speed drops with context depth (UD-Q4_K_XL: 6.73 tok/s at depth 0, 4.78 at 8k, 2.11 at 32k), so a long context is slower than the estimate suggests.
"Smallest tier" on the leaderboard
The tier is found on a reference card per tier (GTX 1650 for 4 GB, RTX 2060 for 6 GB, RTX 3060 8GB for 8 GB, RTX 3060 12GB for 12 GB, RTX 5060 Ti 16GB for 16 GB, RTX 4090 for 24 GB, RTX 5090 for 32 GB): the first tier at which the model's smallest Q4-class file is "all on GPU" or "partly offloaded" under the rules above.
Use-case filter
"Coding agents" means models whose use tag includes coding. We add it when the model card reports a coding benchmark (SWE-bench, LiveCodeBench, HumanEval, Terminal-Bench, etc.) or the model is built for coding. It is not a quality guarantee.
11. Known limitations
- At launch, measurements come from a single PC (RTX 3060 8GB, Ryzen 5 5600G, 64 GB RAM, llama.cpp with CUDA). Values for other hardware are estimates, and we have not yet checked how accurate they are.
- We have no coding scores yet. For now the external scores on the leaderboard come from independent organizations (currently LM Arena human votes); none of it is measured by this site.
- A 50-task subset is statistically noisy, and the tasks are old and public, so contamination is possible (see section 2).
- We measure the 4, 6, 8, 12, 16, 24 and 32 GB VRAM tiers. The tier is set by the card's dedicated memory; other hardware is grouped as "Other".
- Hardware memory and bandwidth come from vendor specs (or widely used references), with a source URL on each entry. Real products can vary with clocks and drivers.
- The partial-offload speed estimate is a simplified model. Real speed depends heavily on which layers go where (for example, MoE experts only on the CPU).
- The fitting-context estimate simplifies KV size. Hybrid-attention, sliding-window and MLA models were computed separately from model-card configs, but runtime implementations can differ; once a loaded-and-verified value (
context_fit) exists, it wins. - We do not estimate prompt-processing speed or time to first token. Multi-GPU setups, server configurations and image input are out of scope.
- Models with per-layer embeddings such as Gemma 4 E4B are computed conservatively as if the whole file is read per token, so they can look slower than they are. The 3B active parameters of Kanana-2 and GLM-4.7-Flash come from the model names; the cards give no figure.
- Model details (sizes, licenses, context) were checked around 25 November 2026 against Hugging Face model cards and repo listings. They may change, so always read the license at the linked source. This site is not legal advice.
- GGUF file sizes come from repo listings of bartowski, unsloth, LG AI Research, ggml-org and others; some are community repos. Files with the same quant name differ slightly between repos.
- If you find a mistake, please tell us: [ contact ]