diff --git a/docs/experiments/iq3-mmap-2026-10-13/README.md b/docs/experiments/iq3-mmap-2026-10-13/README.md new file mode 100644 index 0000000..7b5ac96 --- /dev/null +++ b/docs/experiments/iq3-mmap-2026-10-13/README.md @@ -0,0 +1,24 @@ +# Short IQ3 resident versus mmap comparison + +2026-10-13, Strata 0.1.43.1, both GPUs, IQ3 weights and experts package on the +Samsung 980 PRO. The same first two prompts from the previous SSD test were +repeated in a fresh isolated engine: temperature zero, thinking off, 512 output +tokens, layer split 16 and 1024-MiB GPU reserves. All tuning stayed unchanged; +only `--resident-experts` was replaced with `--mmap-experts`. + +| Output throughput | Resident | mmap | +|---|---:|---:| +| German explanatory text | 79.7 tok/s | 61.6 tok/s | +| Python example | 90.4 tok/s | 73.5 tok/s | +| Two-request mean/median | 85.05 tok/s | 67.55 tok/s | + +mmap is **20.6% slower** in this short paired comparison. Both requests passed +with 512 output tokens and zero prompt-cache tokens. This is a small smoke +comparison, not a long-context or cold-cache benchmark, and does not establish +that mmap loses under every configuration. Sampling matched, but adaptive/MTP +behavior and the resulting generated token sequences can differ. + +The normal profiles were never changed. After the test the temporary container +exits; the wrapper restarts Deck and reloads its regular resident IQ3 profile. +Confirm restoration in `restore.json`. Only synthetic test metrics are committed; +no credentials, private prompts, or model answers are included. diff --git a/docs/experiments/iq3-mmap-2026-10-13/restore.json b/docs/experiments/iq3-mmap-2026-10-13/restore.json new file mode 100644 index 0000000..0ee27ba --- /dev/null +++ b/docs/experiments/iq3-mmap-2026-10-13/restore.json @@ -0,0 +1 @@ +{"iq3_loaded": true, "benchmark_returncode": 0} \ No newline at end of file diff --git a/docs/experiments/iq3-mmap-2026-10-13/results.json b/docs/experiments/iq3-mmap-2026-10-13/results.json new file mode 100644 index 0000000..e6f7f9e --- /dev/null +++ b/docs/experiments/iq3-mmap-2026-10-13/results.json @@ -0,0 +1,79 @@ +[ + { + "candidate": "mmap-1024", + "split": 16, + "gpu": [ + 0, + 1 + ], + "tuning": { + "STRATA_ROUTE_TAIL_SKIP": "0", + "STRATA_RESIDENT_HEADROOM_GIB": "6", + "STRATA_STAGE_TRIM": "1", + "--pcie-frac": "0.35", + "--spec-min-p": "0.70", + "--adapt-every": "1", + "--adapt-swaps": "80", + "--adapt-decay": "0.97", + "--vram-reserve-mib": "1024", + "--vram-reserve-later-mib": "1024" + }, + "runs": [ + { + "timings": { + "cache_n": 0, + "prompt_n": 80, + "prompt_ms": 2723.6, + "prompt_per_token_ms": 34.045, + "prompt_per_second": 29.4, + "predicted_n": 512, + "predicted_ms": 8314.7, + "predicted_per_token_ms": 16.24, + "predicted_per_second": 61.6, + "draft_n": 335, + "draft_n_accepted": 206 + }, + "usage": { + "prompt_tokens": 80, + "completion_tokens": 512, + "total_tokens": 592, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "seconds": 11.04128923988901, + "nonempty": true, + "identifier_ok": true + }, + { + "timings": { + "cache_n": 0, + "prompt_n": 81, + "prompt_ms": 1193.9, + "prompt_per_token_ms": 14.74, + "prompt_per_second": 67.8, + "predicted_n": 512, + "predicted_ms": 6961.3, + "predicted_per_token_ms": 13.596, + "predicted_per_second": 73.5, + "draft_n": 330, + "draft_n_accepted": 258 + }, + "usage": { + "prompt_tokens": 81, + "completion_tokens": 512, + "total_tokens": 593, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "seconds": 8.158409795956686, + "nonempty": true, + "identifier_ok": true + } + ], + "decode_median": 67.55, + "passed": true, + "vram_warning": false + } +] \ No newline at end of file