Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
Windows mapped-page release: the switch is STRATA_FILE_RELEASE (#818)
Niko1221f60ae8d0a458
diff --git a/bench/results/2026-10-04-windows-mapped-release/README.md b/bench/results/2026-10-04-windows-mapped-release/README.mdindex 18193752b..c6ebc26ef 100644--- a/bench/results/2026-10-04-windows-mapped-release/README.md+++ b/bench/results/2026-10-04-windows-mapped-release/README.md@@ -1,7 +1,7 @@# Windows mapped expert-page releaseMeasured October 4, 2026, against upstream `6f32ec070f23ced9f50e704d854d775da52591ab` (0.1.39).-The same patched executable was run with `STRATA_ARENA_RELEASE=0` and `STRATA_ARENA_RELEASE=1`.+The same patched executable was run with `STRATA_FILE_RELEASE=0` and `STRATA_FILE_RELEASE=1`.Releasing file-backed expert pages after GPU copies substantially increased available physical RAM on thismachine. Prefill was slightly slower. This is a memory-pressure improvement, not a general speed claim.@@ -15,7 +15,7 @@ resident complements, CUDA-pinned buffers or the temporary buffers used to assemExisting cache-upload release calls use this implementation. Two additional calls release pages after prefill'slent cache slots have finished refilling, in serving and one-shot generation. Other platforms are unchanged.-`STRATA_ARENA_RELEASE=1` enables it; unset, `0`, or any other value leaves it disabled. The switch is read once+`STRATA_FILE_RELEASE=1` enables it; unset, `0`, or any other value leaves it disabled. The switch is read onceper engine process, so restart the engine when changing it.This builds on the existing working-set handling in [#467](https://github.com/Niko1221/Strata/issues/467) and the@@ -101,13 +101,13 @@ These observations do not establish a decode-speed improvement, output equivalen## Reproduction and checks-`measurements.json` contains the individual successful trials, their request/output hashes, timing summaries and-the host-window statistics. It is a scoped export of the recorded runs, not raw SSE streams or a full system trace.-`benchmark.py`, `test_benchmark.py` and `monitor_windows.py` are the unchanged scripts used for these measurements.+`benchmark.py` and `monitor_windows.py` are the scripts used for these measurements (the raw per-trial export and the harness+self-tests were left out of the repository). The switch was called `STRATA_ARENA_RELEASE` in the prototype that measured this;+it is `STRATA_FILE_RELEASE` here, because the old name already means the opposite elsewhere (`=0` keeps experts a GPU holds).The benchmark needs the repository's normal server/tokenizer dependencies; the Windows monitor also needs psutil.Start a dedicated server on `127.0.0.1:18080` using a configuration with the runtime settings above, the patched-engine, and `"env": {"STRATA_ARENA_RELEASE": "0"}`. Wait until the engine is loaded and idle. In another terminal,+engine, and `"env": {"STRATA_FILE_RELEASE": "0"}`. Wait until the engine is loaded and idle. In another terminal,run the monitor against the server process ID, and then the benchmark (replace the uppercase placeholders):```powershell@@ -128,11 +128,10 @@ The C++ tests cover canonical and variable native layouts, full-page alignment,three release/read cycles with byte-for-byte checks, invalid indices, a closed source, and three GGUF rolesacross two shards. Build with `STRATA_BUILD_TESTS=ON` and `STRATA_NATIVE_EXPERTS=ON`, then run`ctest --test-dir BUILD_DIR -R "^(file_expert_source_test|expert_layout_test)$" --output-on-failure` in fresh-processes with the switch unset, `0`, and `1`. The HTTP harness checks run with-`python -m unittest discover -s bench/results/2026-10-04-windows-mapped-release -p test_benchmark.py`.+processes with the switch unset, `0`, and `1`.The final submitted source was rebuilt with the toolchain above. Both C++ tests passed with the switch unset,-`0`, and `1`, and all eight HTTP harness tests passed. That rebuilt engine also completed a warmup and one fresh+`0`, and `1`. That rebuilt engine also completed a warmup and one freshrequest each at 1023 and 4096 prompt tokens, generating 256 tokens per measured request on both GPUs with releaseenabled. This was an inference smoke test, not a replacement for the prototype's OFF/ON performance comparison.Its executable SHA-256 is `9f1e96c36b2ddb530422ee37734606491c0f4c3c9b720095c68d63953e89913b`.diff --git a/bench/results/2026-10-04-windows-mapped-release/benchmark.py b/bench/results/2026-10-04-windows-mapped-release/benchmark.pyindex 5ffbde3be..c2872000c 100644--- a/bench/results/2026-10-04-windows-mapped-release/benchmark.py+++ b/bench/results/2026-10-04-windows-mapped-release/benchmark.py@@ -302,7 +302,7 @@ def main():"STRATA_ARENA_PIN_GIB", "STRATA_RESIDENT_PIN", "STRATA_RESIDENT_HEADROOM_GIB","STRATA_ARENA_MMAP", "STRATA_PREFILL_HELP", "STRATA_FETCH_THREADS", "STRATA_LOOKAHEAD","STRATA_DECODE_TIMING", "STRATA_SPLIT_TIMING", "STRATA_VERIFY_PROFILE",- "STRATA_SPLIT_MISS_MS", "STRATA_PF_FUSED", "STRATA_ARENA_RELEASE"}+ "STRATA_SPLIT_MISS_MS", "STRATA_PF_FUSED", "STRATA_FILE_RELEASE"}config["env"] = {key: value for key, value in source.get("env", {}).items()if key in compute_variables}revision = subprocess.run(["git", "-c", f"safe.directory={args.root.as_posix()}", "rev-parse", "HEAD"],diff --git a/bench/results/2026-10-04-windows-mapped-release/measurements.json b/bench/results/2026-10-04-windows-mapped-release/measurements.jsondeleted file mode 100644index 5ec113942..000000000--- a/bench/results/2026-10-04-windows-mapped-release/measurements.json+++ /dev/null@@ -1,1463 +0,0 @@-{- "schema_version": 1,- "measured_date": "2026-10-04",- "base_commit": "6f32ec070f23ced9f50e704d854d775da52591ab",- "prototype_executable_sha256": "9118b02dcc0ad4bd8398ba033c641feb93800e0eeecea59ee42be141e4a186fc",- "prototype_source_patch_sha256": "327fa305a12fee3395e788d6a2ea9dc731a9cc023290bbcf0609adf72d5832c9",- "source_difference_from_submission": "The submitted switch defaults to OFF; the measured prototype defaulted to ON. Both benchmark arms set it explicitly to 0 or 1.",- "toolchain": {- "cmake": "4.4.3",- "ninja": "1.13.2.git.kitware.jobserver-pipe-1",- "msvc": "19.29.30157.0",- "windows_sdk": "10.0.19041.0",- "nvcc": "13.1.80",- "cuda_architectures": [- 86,- 89- ],- "cxx_standard": 20,- "cuda_standard": 17,- "build_type": "Release",- "portable_avx2": true,- "msvc_runtime": "MultiThreaded",- "parallel_jobs": 2,- "tests_built": true- },- "script_sha256": {- "benchmark.py": "e8e67bad6a669d894eec0a5257e7175ddb71984f31cabaad0343ad59087aa9f6",- "test_benchmark.py": "35a32af56e2f46c2b487e61ee577aa8ac8e219b16de3025ac4d0cb551b5d4486",- "monitor_windows.py": "889216af622afa3af85f27316018e658573e477d3a1fbe0768b395f0d7ab2983"- },- "units": "Bytes, epoch seconds, seconds, and tokens per second. Host medians are sample medians, not time-weighted.",- "host_window": "Earliest request start through latest request finish, including the excluded warmup and gaps; approximately one sample per second.",- "arms": [- {- "label": "off",- "STRATA_ARENA_RELEASE": "0",- "source_results_sha256": "4f0db7536c1cc97a104d3c7ccf0565b6cd2265a15bb0a3574748eb699b82092c",- "source_host_samples_sha256": "e8c1a9be8395b25dd1470eb9d04d1d13976dc530284b1ea0ce219a828f0b3ae8",- "speed_summary": {- "1024": {- "successful_runs": 3,- "failed_attempts": 0,- "client_ttft_s": {- "median": 3.934812100000272,- "min": 3.722584300001472,- "max": 6.9117251000006945- },- "client_elapsed_s": {- "median": 7.015831400000025,- "min": 6.942086900000504,- "max": 11.843229200001588- },- "prefill_tok_s": {- "median": 263.6801814573292,- "min": 149.1036292085702,- "max": 277.4764023000976- },- "decode_tok_s": {- "median": 77.34606320623602,- "min": 51.612903225806456,- "max": 84.16346122234278- }- },- "4096": {- "successful_runs": 3,- "failed_attempts": 0,- "client_ttft_s": {- "median": 7.062032199999521,- "min": 6.976809499999945,- "max": 7.534027300000162- },- "client_elapsed_s": {- "median": 10.167359600000054,- "min": 9.68955300000016,- "max": 10.720107400000416- },- "prefill_tok_s": {- "median": 583.5090318536668,- "min": 547.3594184306179,- "max": 590.329321899546- },- "decode_tok_s": {- "median": 81.98821419420958,- "min": 79.75077881619937,- "max": 93.90015772292116- }- },- "16384": {- "successful_runs": 3,- "failed_attempts": 0,- "client_ttft_s": {- "median": 15.729271700000027,- "min": 15.47054879999996,- "max": 16.01550429999952- },- "client_elapsed_s": {- "median": 18.869459200001074,- "min": 18.32465349999984,- "max": 19.213972899999135- },- "prefill_tok_s": {- "median": 1045.85176532169,- "min": 1027.448373603908,- "max": 1062.3439779542875- },- "decode_tok_s": {- "median": 80.87701007803368,- "min": 79.44142746314972,- "max": 89.16753744339951- }- }- },- "host_benchmark_window": {- "coverage": {- "requested_start_epoch_s": 1791137373.373225,- "requested_end_epoch_s": 1791137498.7173786,- "requested_duration_s": 125.34415364265442,- "sample_count": 125,- "first_sample_epoch_s": 1791137374.2838576,- "last_sample_epoch_s": 1791137498.400041,- "observed_span_s": 124.1161835193634,- "omitted_start_s": 0.9106326103210449,- "omitted_end_s": 0.3173375129699707,- "sample_spacing_s": {- "count": 124,- "min": 0.9795429706573486,- "median": 0.9988986253738403,- "max": 1.0212182998657227- }- },- "available_bytes": {- "count": 125,- "min": 297324544,- "median": 549507072,- "max": 831209472- },- "commit_bytes": {- "count": 125,- "min": 55056080896,- "median": 55705743360,- "max": 55899545600- },- "commit_limit_bytes": {- "count": 125,- "min": 55889264640,- "median": 56974360576,- "max": 56974360576- },- "commit_headroom_bytes": {- "count": 125,- "min": 330276864,- "median": 1260085248,- "max": 1379921920- },- "pagefile_total_bytes": {- "count": 125,- "min": 21781618688,- "median": 22866714624,- "max": 22866714624- },- "pagefile_used_bytes": {- "count": 125,- "min": 1323528192,- "median": 1323659264,- "max": 1327710208- },- "strata": {- "samples_with_engine": 125,- "process_count_per_host_sample": {- "count": 125,- "min": 1,- "median": 1,- "max": 1- },- "working_set_bytes": {- "count": 125,- "min": 24851771392,- "median": 25103110144,- "max": 25565278208- },- "private_working_set_bytes": {- "count": 125,- "min": 3088654336,- "median": 3141586944,- "max": 3324026880- },- "nonprivate_working_set_bytes": {- "count": 125,- "min": 21681967104,- "median": 21969186816,- "max": 22408978432- },- "private_commit_bytes": {- "count": 125,- "min": 38979821568,- "median": 39521062912,- "max": 39638933504- }- },- "system_physical_disk_io": {- "PhysicalDrive0": {- "samples_present": 125,- "status": "ok",- "read_bytes_delta": 17984702464,- "write_bytes_delta": 57162752- },- "PhysicalDrive2": {- "samples_present": 125,- "status": "ok",- "read_bytes_delta": 0,- "write_bytes_delta": 0- }- }- },- "trials": [- {- "label": "warmup-c6eedd79209d",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 32,- "request_sha256": "109d29ce4ac42ab8a450ec87e42d2ac29f4d957fb391fc12db6211acddd5b651",- "started_epoch_s": 1791137373.373225,- "finished_epoch_s": 1791137374.9766107,- "client_ttft_s": 1.336918400000286,- "client_elapsed_s": 1.5827291000005062,- "finish_reason": "stop",- "stream_done": true,- "prefill_tok_s": 24.90466184138843,- "decode_tok_s": 6.805035726437564,- "usage": {- "prompt_tokens": 32,- "completion_tokens": 2,- "total_tokens": 34,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 32,- "prompt_ms": 1284.9,- "prompt_per_token_ms": 40.153,- "prompt_per_second": 24.9,- "predicted_n": 2,- "predicted_ms": 293.9,- "predicted_per_token_ms": 146.95,- "predicted_per_second": 6.8,- "draft_n": 3,- "draft_n_accepted": 3- },- "included_in_speed_summary": false,- "response_text_sha256": "c2e3ac47f4a325469c1a2d5f117e463ec943c721986d5d9f09ac4540b7d80526",- "engine": {- "prompt_tokens": 32,- "reused": 0,- "output_tokens": 2,- "prompt_total": 32,- "prompt_read": 32,- "engine_generated": 2,- "prompt_ms": 1284.9,- "decode_ms": 293.9,- "hit_rate": 0.866,- "pcie_share": 0.0,- "file_mb": 285.4,- "drafts_offered": 3,- "drafts_accepted": 3- }- },- {- "label": "tokens-1024-run-1",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 1023,- "request_sha256": "1b7264f120d81c7905cc2779e19aa3b14f7d2ad8efef6cc9c159e3e73bbe1ca5",- "started_epoch_s": 1791137375.9920728,- "finished_epoch_s": 1791137387.921758,- "client_ttft_s": 6.9117251000006945,- "client_elapsed_s": 11.843229200001588,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 149.1036292085702,- "decode_tok_s": 51.612903225806456,- "usage": {- "prompt_tokens": 1023,- "completion_tokens": 256,- "total_tokens": 1279,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 1023,- "prompt_ms": 6861.0,- "prompt_per_token_ms": 6.707,- "prompt_per_second": 149.1,- "predicted_n": 256,- "predicted_ms": 4960.0,- "predicted_per_token_ms": 19.375,- "predicted_per_second": 51.6,- "draft_n": 229,- "draft_n_accepted": 159- },- "included_in_speed_summary": true,- "response_text_sha256": "754e536475dcaa7e28eaf3c79499eb5588b1be3fc059d4a10573d2a2218c0532",- "engine": {- "prompt_tokens": 1023,- "reused": 0,- "output_tokens": 256,- "prompt_total": 1023,- "prompt_read": 1023,- "engine_generated": 256,- "prompt_ms": 6861.0,- "decode_ms": 4960.0,- "hit_rate": 0.971,- "pcie_share": 0.0,- "file_mb": 4797.1,- "drafts_offered": 229,- "drafts_accepted": 159- }- },- {- "label": "tokens-1024-run-2",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 1023,- "request_sha256": "670a09acda4a7e346e80e757d24552b70950ecec3bd9865cb3cc44bad41e3051",- "started_epoch_s": 1791137389.19458,- "finished_epoch_s": 1791137396.2214587,- "client_ttft_s": 3.934812100000272,- "client_elapsed_s": 6.942086900000504,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 263.6801814573292,- "decode_tok_s": 84.16346122234278,- "usage": {- "prompt_tokens": 1023,- "completion_tokens": 256,- "total_tokens": 1279,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 1023,- "prompt_ms": 3879.7,- "prompt_per_token_ms": 3.792,- "prompt_per_second": 263.7,- "predicted_n": 256,- "predicted_ms": 3041.7,- "predicted_per_token_ms": 11.882,- "predicted_per_second": 84.2,- "draft_n": 217,- "draft_n_accepted": 160- },- "included_in_speed_summary": true,- "response_text_sha256": "f16202df7a76d382e05db90e4feeeb85229cf2a62c17714e27425a261a81a855",- "engine": {- "prompt_tokens": 1023,- "reused": 0,- "output_tokens": 256,- "prompt_total": 1023,- "prompt_read": 1023,- "engine_generated": 256,- "prompt_ms": 3879.7,- "decode_ms": 3041.7,- "hit_rate": 0.992,- "pcie_share": 0.0,- "file_mb": 1525.5,- "drafts_offered": 217,- "drafts_accepted": 160- }- },- {- "label": "tokens-1024-run-3",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 1023,- "request_sha256": "aaeb15c4a0db6bd6c46ad6217c8babe776b720fb4ad9c375c8b0877527793168",- "started_epoch_s": 1791137397.3351476,- "finished_epoch_s": 1791137404.4230087,- "client_ttft_s": 3.722584300001472,- "client_elapsed_s": 7.015831400000025,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 277.4764023000976,- "decode_tok_s": 77.34606320623602,- "usage": {- "prompt_tokens": 1023,- "completion_tokens": 256,- "total_tokens": 1279,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 1023,- "prompt_ms": 3686.8,- "prompt_per_token_ms": 3.604,- "prompt_per_second": 277.5,- "predicted_n": 256,- "predicted_ms": 3309.8,- "predicted_per_token_ms": 12.929,- "predicted_per_second": 77.3,- "draft_n": 225,- "draft_n_accepted": 145- },- "included_in_speed_summary": true,- "response_text_sha256": "0b451b8c3fb95b34b030bd7c165bb636d571b89bcf137cc3165368185bc029e2",- "engine": {- "prompt_tokens": 1023,- "reused": 0,- "output_tokens": 256,- "prompt_total": 1023,- "prompt_read": 1023,- "engine_generated": 256,- "prompt_ms": 3686.8,- "decode_ms": 3309.8,- "hit_rate": 0.994,- "pcie_share": 0.0,- "file_mb": 1071.3,- "drafts_offered": 225,- "drafts_accepted": 145- }- },- {- "label": "tokens-4096-run-1",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 4096,- "request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",- "started_epoch_s": 1791137405.5423403,- "finished_epoch_s": 1791137416.3110352,- "client_ttft_s": 7.534027300000162,- "client_elapsed_s": 10.720107400000416,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 547.3594184306179,- "decode_tok_s": 79.75077881619937,- "usage": {- "prompt_tokens": 4096,- "completion_tokens": 256,- "total_tokens": 4352,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 4096,- "prompt_ms": 7483.2,- "prompt_per_token_ms": 1.827,- "prompt_per_second": 547.4,- "predicted_n": 256,- "predicted_ms": 3210.0,- "predicted_per_token_ms": 12.539,- "predicted_per_second": 79.8,- "draft_n": 223,- "draft_n_accepted": 156- },- "included_in_speed_summary": true,- "response_text_sha256": "d2d585d2a402a8626ef53f71831b4105a533c746301845be4f1cdff42fdd4c2d",- "engine": {- "prompt_tokens": 4096,- "reused": 0,- "output_tokens": 256,- "prompt_total": 4096,- "prompt_read": 4096,- "engine_generated": 256,- "prompt_ms": 7483.2,- "decode_ms": 3210.0,- "hit_rate": 0.991,- "pcie_share": 0.0,- "file_mb": 1609.7,- "drafts_offered": 223,- "drafts_accepted": 156- }- },- {- "label": "tokens-4096-run-2",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 4096,- "request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",- "started_epoch_s": 1791137417.3695579,- "finished_epoch_s": 1791137427.6159132,- "client_ttft_s": 7.062032199999521,- "client_elapsed_s": 10.167359600000054,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 583.5090318536668,- "decode_tok_s": 81.98821419420958,- "usage": {- "prompt_tokens": 4096,- "completion_tokens": 256,- "total_tokens": 4352,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 4096,- "prompt_ms": 7019.6,- "prompt_per_token_ms": 1.714,- "prompt_per_second": 583.5,- "predicted_n": 256,- "predicted_ms": 3122.4,- "predicted_per_token_ms": 12.197,- "predicted_per_second": 82.0,- "draft_n": 219,- "draft_n_accepted": 150- },- "included_in_speed_summary": true,- "response_text_sha256": "5abc1f348c1e9ac7fc96fdc7ec125a04f270f1f8522341ef2bb5915d5d6df3bb",- "engine": {- "prompt_tokens": 4096,- "reused": 0,- "output_tokens": 256,- "prompt_total": 4096,- "prompt_read": 4096,- "engine_generated": 256,- "prompt_ms": 7019.6,- "decode_ms": 3122.4,- "hit_rate": 0.996,- "pcie_share": 0.0,- "file_mb": 739.4,- "drafts_offered": 219,- "drafts_accepted": 150- }- },- {- "label": "tokens-4096-run-3",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 4096,- "request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",- "started_epoch_s": 1791137428.6746917,- "finished_epoch_s": 1791137438.4311018,- "client_ttft_s": 6.976809499999945,- "client_elapsed_s": 9.68955300000016,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 590.329321899546,- "decode_tok_s": 93.90015772292116,- "usage": {- "prompt_tokens": 4096,- "completion_tokens": 256,- "total_tokens": 4352,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 4096,- "prompt_ms": 6938.5,- "prompt_per_token_ms": 1.694,- "prompt_per_second": 590.3,- "predicted_n": 256,- "predicted_ms": 2726.3,- "predicted_per_token_ms": 10.65,- "predicted_per_second": 93.9,- "draft_n": 219,- "draft_n_accepted": 146- },- "included_in_speed_summary": true,- "response_text_sha256": "ecbc06b7fbeb088cc190ce8ce631686749f1b1e36021f08c8541663d05d046d1",- "engine": {- "prompt_tokens": 4096,- "reused": 0,- "output_tokens": 256,- "prompt_total": 4096,- "prompt_read": 4096,- "engine_generated": 256,- "prompt_ms": 6938.5,- "decode_ms": 2726.3,- "hit_rate": 0.997,- "pcie_share": 0.0,- "file_mb": 617.8,- "drafts_offered": 219,- "drafts_accepted": 146- }- },- {- "label": "tokens-16384-run-1",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 16384,- "request_sha256": "6189656df3e39c2820cb59a0561adb1207c2f570424ca0aee304356f5e386de4",- "started_epoch_s": 1791137439.704907,- "finished_epoch_s": 1791137458.992146,- "client_ttft_s": 16.01550429999952,- "client_elapsed_s": 19.213972899999135,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 1027.448373603908,- "decode_tok_s": 79.44142746314972,- "usage": {- "prompt_tokens": 16384,- "completion_tokens": 256,- "total_tokens": 16640,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 16384,- "prompt_ms": 15946.3,- "prompt_per_token_ms": 0.973,- "prompt_per_second": 1027.4,- "predicted_n": 256,- "predicted_ms": 3222.5,- "predicted_per_token_ms": 12.588,- "predicted_per_second": 79.4,- "draft_n": 190,- "draft_n_accepted": 143- },- "included_in_speed_summary": true,- "response_text_sha256": "41f7e8d67aa50a49cf3eef6073fb813941d964d609e18974af91984540803ca4",- "engine": {- "prompt_tokens": 16384,- "reused": 0,- "output_tokens": 256,- "prompt_total": 16384,- "prompt_read": 16384,- "engine_generated": 256,- "prompt_ms": 15946.3,- "decode_ms": 3222.5,- "hit_rate": 0.993,- "pcie_share": 0.0,- "file_mb": 1146.8,- "drafts_offered": 190,- "drafts_accepted": 143- }- },- {- "label": "tokens-16384-run-2",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 16384,- "request_sha256": "d77a390c17eb10efc0a7a0117c5c9ed46fa24b12d8c1fe005e2253f0472dfd15",- "started_epoch_s": 1791137460.2221165,- "finished_epoch_s": 1791137479.142808,- "client_ttft_s": 15.729271700000027,- "client_elapsed_s": 18.869459200001074,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 1045.85176532169,- "decode_tok_s": 80.87701007803368,- "usage": {- "prompt_tokens": 16384,- "completion_tokens": 256,- "total_tokens": 16640,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 16384,- "prompt_ms": 15665.7,- "prompt_per_token_ms": 0.956,- "prompt_per_second": 1045.9,- "predicted_n": 256,- "predicted_ms": 3165.3,- "predicted_per_token_ms": 12.364,- "predicted_per_second": 80.9,- "draft_n": 210,- "draft_n_accepted": 156- },- "included_in_speed_summary": true,- "response_text_sha256": "6feccac79a8375700788234a9e4a69905c635f422051af412468ca7167b40d86",- "engine": {- "prompt_tokens": 16384,- "reused": 0,- "output_tokens": 256,- "prompt_total": 16384,- "prompt_read": 16384,- "engine_generated": 256,- "prompt_ms": 15665.7,- "decode_ms": 3165.3,- "hit_rate": 0.996,- "pcie_share": 0.0,- "file_mb": 715.1,- "drafts_offered": 210,- "drafts_accepted": 156- }- },- {- "label": "tokens-16384-run-3",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 16384,- "request_sha256": "7664e759d262ff5e9dbbef7e55d09267244629ba14eff0c871954813fd5e36b2",- "started_epoch_s": 1791137480.3262331,- "finished_epoch_s": 1791137498.7173786,- "client_ttft_s": 15.47054879999996,- "client_elapsed_s": 18.32465349999984,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 1062.3439779542875,- "decode_tok_s": 89.16753744339951,- "usage": {- "prompt_tokens": 16384,- "completion_tokens": 256,- "total_tokens": 16640,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 16384,- "prompt_ms": 15422.5,- "prompt_per_token_ms": 0.941,- "prompt_per_second": 1062.3,- "predicted_n": 256,- "predicted_ms": 2871.0,- "predicted_per_token_ms": 11.215,- "predicted_per_second": 89.2,- "draft_n": 211,- "draft_n_accepted": 157- },- "included_in_speed_summary": true,- "response_text_sha256": "f9a10eec256b346a886ce44e6cb1bcb62d974884108b660dbe650b365539354d",- "engine": {- "prompt_tokens": 16384,- "reused": 0,- "output_tokens": 256,- "prompt_total": 16384,- "prompt_read": 16384,- "engine_generated": 256,- "prompt_ms": 15422.5,- "decode_ms": 2871.0,- "hit_rate": 0.997,- "pcie_share": 0.0,- "file_mb": 445.6,- "drafts_offered": 211,- "drafts_accepted": 157- }- }- ]- },- {- "label": "on",- "STRATA_ARENA_RELEASE": "1",- "source_results_sha256": "5aee68f7a00f048edceb3b2b75baf7657b2b9fcb57e829cad3392a105fe9b1b4",- "source_host_samples_sha256": "31a5f48d96dd0b57bb43d77d2d634da4ae772c61d5327ff0e4a3e6b81a96fb75",- "speed_summary": {- "1024": {- "successful_runs": 3,- "failed_attempts": 0,- "client_ttft_s": {- "median": 4.0692154999997,- "min": 3.986472699998558,- "max": 6.56791929999963- },- "client_elapsed_s": {- "median": 7.263019899999563,- "min": 6.9997069999990345,- "max": 11.219825399999536- },- "prefill_tok_s": {- "median": 253.8272585167357,- "min": 156.63997305118744,- "max": 259.05292479108635- },- "decode_tok_s": {- "median": 77.64634516226873,- "min": 54.67281735861952,- "max": 86.72380500694467- }- },- "4096": {- "successful_runs": 3,- "failed_attempts": 0,- "client_ttft_s": {- "median": 7.375531800000317,- "min": 7.352118200000405,- "max": 8.131530399999974- },- "client_elapsed_s": {- "median": 10.056364900001427,- "min": 10.007067900000038,- "max": 11.0680511999999- },- "prefill_tok_s": {- "median": 558.2358873715485,- "min": 506.3917117919047,- "max": 560.0295328073942- },- "decode_tok_s": {- "median": 94.17304296645085,- "min": 86.66508683435458,- "max": 96.77907152578256- }- },- "16384": {- "successful_runs": 3,- "failed_attempts": 0,- "client_ttft_s": {- "median": 16.450469699999303,- "min": 16.266660800001773,- "max": 16.826802199999292- },- "client_elapsed_s": {- "median": 19.415217300000222,- "min": 19.26390910000009,- "max": 19.8214212999992- },- "prefill_tok_s": {- "median": 1000.1648220837175,- "min": 976.6915052160955,- "max": 1011.4391895645946- },- "decode_tok_s": {- "median": 84.928507447832,- "min": 84.86656721365821,- "max": 85.25944181709187- }- }- },- "host_benchmark_window": {- "coverage": {- "requested_start_epoch_s": 1791137626.402531,- "requested_end_epoch_s": 1791137752.6598368,- "requested_duration_s": 126.25730586051941,- "sample_count": 126,- "first_sample_epoch_s": 1791137626.977466,- "last_sample_epoch_s": 1791137752.1095142,- "observed_span_s": 125.1320481300354,- "omitted_start_s": 0.5749351978302002,- "omitted_end_s": 0.5503225326538086,- "sample_spacing_s": {- "count": 125,- "min": 0.9786038398742676,- "median": 0.9989616870880127,- "max": 1.0214459896087646- }- },- "available_bytes": {- "count": 126,- "min": 6560342016,- "median": 13085794304.0,- "max": 22309302272- },- "commit_bytes": {- "count": 126,- "min": 55180480512,- "median": 55805659136.0,- "max": 55971119104- },- "commit_limit_bytes": {- "count": 126,- "min": 56076263424,- "median": 57163968512.0,- "max": 57163968512- },- "commit_headroom_bytes": {- "count": 126,- "min": 391651328,- "median": 1339875328.0,- "max": 1484484608- },- "pagefile_total_bytes": {- "count": 126,- "min": 21968617472,- "median": 23056322560.0,- "max": 23056322560- },- "pagefile_used_bytes": {- "count": 126,- "min": 1306562560,- "median": 1307480064.0,- "max": 1325748224- },- "strata": {- "samples_with_engine": 126,- "process_count_per_host_sample": {- "count": 126,- "min": 1,- "median": 1.0,- "max": 1- },- "working_set_bytes": {- "count": 126,- "min": 3676139520,- "median": 12827172864.0,- "max": 19314704384- },- "private_working_set_bytes": {- "count": 126,- "min": 3141050368,- "median": 3504500736.0,- "max": 3622793216- },- "nonprivate_working_set_bytes": {- "count": 126,- "min": 535089152,- "median": 9330184192.0,- "max": 15692541952- },- "private_commit_bytes": {- "count": 126,- "min": 38980931584,- "median": 39518244864.0,- "max": 39636115456- }- },- "system_physical_disk_io": {- "PhysicalDrive0": {- "samples_present": 126,- "status": "ok",- "read_bytes_delta": 18048543744,- "write_bytes_delta": 33413632- },- "PhysicalDrive2": {- "samples_present": 126,- "status": "ok",- "read_bytes_delta": 0,- "write_bytes_delta": 0- }- }- },- "trials": [- {- "label": "warmup-a1e1be73349b",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 33,- "request_sha256": "7cc9c1b4847a639e6588184ca10109efde1ab7e5af957bc4322ceebebe4bc689",- "started_epoch_s": 1791137626.402531,- "finished_epoch_s": 1791137627.908431,- "client_ttft_s": 1.2135624999991705,- "client_elapsed_s": 1.4330016000003525,- "finish_reason": "stop",- "stream_done": true,- "prefill_tok_s": 29.016090741229227,- "decode_tok_s": 7.178750897343861,- "usage": {- "prompt_tokens": 33,- "completion_tokens": 2,- "total_tokens": 35,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 33,- "prompt_ms": 1137.3,- "prompt_per_token_ms": 34.464,- "prompt_per_second": 29.0,- "predicted_n": 2,- "predicted_ms": 278.6,- "predicted_per_token_ms": 139.3,- "predicted_per_second": 7.2,- "draft_n": 3,- "draft_n_accepted": 3- },- "included_in_speed_summary": false,- "response_text_sha256": "c2e3ac47f4a325469c1a2d5f117e463ec943c721986d5d9f09ac4540b7d80526",- "engine": {- "prompt_tokens": 33,- "reused": 0,- "output_tokens": 2,- "prompt_total": 33,- "prompt_read": 33,- "engine_generated": 2,- "prompt_ms": 1137.3,- "decode_ms": 278.6,- "hit_rate": 0.857,- "pcie_share": 0.0,- "file_mb": 298.0,- "drafts_offered": 3,- "drafts_accepted": 3- }- },- {- "label": "tokens-1024-run-1",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 1023,- "request_sha256": "1b7264f120d81c7905cc2779e19aa3b14f7d2ad8efef6cc9c159e3e73bbe1ca5",- "started_epoch_s": 1791137628.7661443,- "finished_epoch_s": 1791137640.0090027,- "client_ttft_s": 6.56791929999963,- "client_elapsed_s": 11.219825399999536,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 156.63997305118744,- "decode_tok_s": 54.67281735861952,- "usage": {- "prompt_tokens": 1023,- "completion_tokens": 256,- "total_tokens": 1279,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 1023,- "prompt_ms": 6530.9,- "prompt_per_token_ms": 6.384,- "prompt_per_second": 156.6,- "predicted_n": 256,- "predicted_ms": 4682.4,- "predicted_per_token_ms": 18.291,- "predicted_per_second": 54.7,- "draft_n": 235,- "draft_n_accepted": 150- },- "included_in_speed_summary": true,- "response_text_sha256": "69e6248b81f83a2de98dbc75e0e40b4350bee7ca6cea5296b96a02f8975a0414",- "engine": {- "prompt_tokens": 1023,- "reused": 0,- "output_tokens": 256,- "prompt_total": 1023,- "prompt_read": 1023,- "engine_generated": 256,- "prompt_ms": 6530.9,- "decode_ms": 4682.4,- "hit_rate": 0.975,- "pcie_share": 0.0,- "file_mb": 4336.5,- "drafts_offered": 235,- "drafts_accepted": 150- }- },- {- "label": "tokens-1024-run-2",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 1023,- "request_sha256": "670a09acda4a7e346e80e757d24552b70950ecec3bd9865cb3cc44bad41e3051",- "started_epoch_s": 1791137640.9247723,- "finished_epoch_s": 1791137648.2246199,- "client_ttft_s": 3.986472699998558,- "client_elapsed_s": 7.263019899999563,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 259.05292479108635,- "decode_tok_s": 77.64634516226873,- "usage": {- "prompt_tokens": 1023,- "completion_tokens": 256,- "total_tokens": 1279,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 1023,- "prompt_ms": 3949.0,- "prompt_per_token_ms": 3.86,- "prompt_per_second": 259.1,- "predicted_n": 256,- "predicted_ms": 3297.0,- "predicted_per_token_ms": 12.879,- "predicted_per_second": 77.6,- "draft_n": 215,- "draft_n_accepted": 157- },- "included_in_speed_summary": true,- "response_text_sha256": "c066e3a14713ca128b2aa64ef1172ff3edaabaa394e11ae465e4d02514c9edce",- "engine": {- "prompt_tokens": 1023,- "reused": 0,- "output_tokens": 256,- "prompt_total": 1023,- "prompt_read": 1023,- "engine_generated": 256,- "prompt_ms": 3949.0,- "decode_ms": 3297.0,- "hit_rate": 0.99,- "pcie_share": 0.0,- "file_mb": 1774.4,- "drafts_offered": 215,- "drafts_accepted": 157- }- },- {- "label": "tokens-1024-run-3",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 1023,- "request_sha256": "aaeb15c4a0db6bd6c46ad6217c8babe776b720fb4ad9c375c8b0877527793168",- "started_epoch_s": 1791137649.1335173,- "finished_epoch_s": 1791137656.1717339,- "client_ttft_s": 4.0692154999997,- "client_elapsed_s": 6.9997069999990345,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 253.8272585167357,- "decode_tok_s": 86.72380500694467,- "usage": {- "prompt_tokens": 1023,- "completion_tokens": 256,- "total_tokens": 1279,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 1023,- "prompt_ms": 4030.3,- "prompt_per_token_ms": 3.94,- "prompt_per_second": 253.8,- "predicted_n": 256,- "predicted_ms": 2951.9,- "predicted_per_token_ms": 11.531,- "predicted_per_second": 86.7,- "draft_n": 214,- "draft_n_accepted": 159- },- "included_in_speed_summary": true,- "response_text_sha256": "5913309c145e19f3708b4783227ce89a428b93e2dfd48a49fbc05251a8f86880",- "engine": {- "prompt_tokens": 1023,- "reused": 0,- "output_tokens": 256,- "prompt_total": 1023,- "prompt_read": 1023,- "engine_generated": 256,- "prompt_ms": 4030.3,- "decode_ms": 2951.9,- "hit_rate": 0.993,- "pcie_share": 0.0,- "file_mb": 1169.8,- "drafts_offered": 214,- "drafts_accepted": 159- }- },- {- "label": "tokens-4096-run-1",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 4096,- "request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",- "started_epoch_s": 1791137657.1340292,- "finished_epoch_s": 1791137668.281504,- "client_ttft_s": 8.131530399999974,- "client_elapsed_s": 11.0680511999999,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 506.3917117919047,- "decode_tok_s": 86.66508683435458,- "usage": {- "prompt_tokens": 4096,- "completion_tokens": 256,- "total_tokens": 4352,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 4096,- "prompt_ms": 8088.6,- "prompt_per_token_ms": 1.975,- "prompt_per_second": 506.4,- "predicted_n": 256,- "predicted_ms": 2953.9,- "predicted_per_token_ms": 11.539,- "predicted_per_second": 86.7,- "draft_n": 215,- "draft_n_accepted": 157- },- "included_in_speed_summary": true,- "response_text_sha256": "5f83d6b250bc425094524568671a33dd5732382e1a63fdc4da122ce0d554c07f",- "engine": {- "prompt_tokens": 4096,- "reused": 0,- "output_tokens": 256,- "prompt_total": 4096,- "prompt_read": 4096,- "engine_generated": 256,- "prompt_ms": 8088.6,- "decode_ms": 2953.9,- "hit_rate": 0.995,- "pcie_share": 0.0,- "file_mb": 930.8,- "drafts_offered": 215,- "drafts_accepted": 157- }- },- {- "label": "tokens-4096-run-2",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 4096,- "request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",- "started_epoch_s": 1791137669.2562735,- "finished_epoch_s": 1791137679.3572376,- "client_ttft_s": 7.352118200000405,- "client_elapsed_s": 10.056364900001427,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 560.0295328073942,- "decode_tok_s": 94.17304296645085,- "usage": {- "prompt_tokens": 4096,- "completion_tokens": 256,- "total_tokens": 4352,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 4096,- "prompt_ms": 7313.9,- "prompt_per_token_ms": 1.786,- "prompt_per_second": 560.0,- "predicted_n": 256,- "predicted_ms": 2718.4,- "predicted_per_token_ms": 10.619,- "predicted_per_second": 94.2,- "draft_n": 233,- "draft_n_accepted": 157- },- "included_in_speed_summary": true,- "response_text_sha256": "d731c643f5498cf7670969f27dd7ef190be4afac0dff5fa847945c99a6fa7c24",- "engine": {- "prompt_tokens": 4096,- "reused": 0,- "output_tokens": 256,- "prompt_total": 4096,- "prompt_read": 4096,- "engine_generated": 256,- "prompt_ms": 7313.9,- "decode_ms": 2718.4,- "hit_rate": 0.995,- "pcie_share": 0.0,- "file_mb": 870.3,- "drafts_offered": 233,- "drafts_accepted": 157- }- },- {- "label": "tokens-4096-run-3",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 4096,- "request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",- "started_epoch_s": 1791137680.263168,- "finished_epoch_s": 1791137690.3335505,- "client_ttft_s": 7.375531800000317,- "client_elapsed_s": 10.007067900000038,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 558.2358873715485,- "decode_tok_s": 96.77907152578256,- "usage": {- "prompt_tokens": 4096,- "completion_tokens": 256,- "total_tokens": 4352,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 4096,- "prompt_ms": 7337.4,- "prompt_per_token_ms": 1.791,- "prompt_per_second": 558.2,- "predicted_n": 256,- "predicted_ms": 2645.2,- "predicted_per_token_ms": 10.333,- "predicted_per_second": 96.8,- "draft_n": 222,- "draft_n_accepted": 155- },- "included_in_speed_summary": true,- "response_text_sha256": "57e181c3707584e86bde080bd2f4730d4f735bd0a34c83ab9fbacae2cb603fe2",- "engine": {- "prompt_tokens": 4096,- "reused": 0,- "output_tokens": 256,- "prompt_total": 4096,- "prompt_read": 4096,- "engine_generated": 256,- "prompt_ms": 7337.4,- "decode_ms": 2645.2,- "hit_rate": 0.995,- "pcie_share": 0.0,- "file_mb": 812.9,- "drafts_offered": 222,- "drafts_accepted": 155- }- },- {- "label": "tokens-16384-run-1",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 16384,- "request_sha256": "6189656df3e39c2820cb59a0561adb1207c2f570424ca0aee304356f5e386de4",- "started_epoch_s": 1791137691.5508344,- "finished_epoch_s": 1791137711.428968,- "client_ttft_s": 16.826802199999292,- "client_elapsed_s": 19.8214212999992,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 976.6915052160955,- "decode_tok_s": 84.928507447832,- "usage": {- "prompt_tokens": 16384,- "completion_tokens": 256,- "total_tokens": 16640,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 16384,- "prompt_ms": 16775.0,- "prompt_per_token_ms": 1.024,- "prompt_per_second": 976.7,- "predicted_n": 256,- "predicted_ms": 3014.3,- "predicted_per_token_ms": 11.775,- "predicted_per_second": 84.9,- "draft_n": 215,- "draft_n_accepted": 158- },- "included_in_speed_summary": true,- "response_text_sha256": "d33caffe0edc7aa192daf1b736ee3949313458f50d684e3b4fd6f8531c2e9d25",- "engine": {- "prompt_tokens": 16384,- "reused": 0,- "output_tokens": 256,- "prompt_total": 16384,- "prompt_read": 16384,- "engine_generated": 256,- "prompt_ms": 16775.0,- "decode_ms": 3014.3,- "hit_rate": 0.996,- "pcie_share": 0.0,- "file_mb": 668.2,- "drafts_offered": 215,- "drafts_accepted": 158- }- },- {- "label": "tokens-16384-run-2",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 16384,- "request_sha256": "d77a390c17eb10efc0a7a0117c5c9ed46fa24b12d8c1fe005e2253f0472dfd15",- "started_epoch_s": 1791137712.7162516,- "finished_epoch_s": 1791137732.0337036,- "client_ttft_s": 16.266660800001773,- "client_elapsed_s": 19.26390910000009,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 1011.4391895645946,- "decode_tok_s": 84.86656721365821,- "usage": {- "prompt_tokens": 16384,- "completion_tokens": 256,- "total_tokens": 16640,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 16384,- "prompt_ms": 16198.7,- "prompt_per_token_ms": 0.989,- "prompt_per_second": 1011.4,- "predicted_n": 256,- "predicted_ms": 3016.5,- "predicted_per_token_ms": 11.783,- "predicted_per_second": 84.9,- "draft_n": 218,- "draft_n_accepted": 159- },- "included_in_speed_summary": true,- "response_text_sha256": "bc9f9c578e0c3d37c6d874c03b58f4db0dd332dc4cfb1310976e0f4ecb63c7e3",- "engine": {- "prompt_tokens": 16384,- "reused": 0,- "output_tokens": 256,- "prompt_total": 16384,- "prompt_read": 16384,- "engine_generated": 256,- "prompt_ms": 16198.7,- "decode_ms": 3016.5,- "hit_rate": 0.996,- "pcie_share": 0.0,- "file_mb": 710.8,- "drafts_offered": 218,- "drafts_accepted": 159- }- },- {- "label": "tokens-16384-run-3",- "attempt": 1,- "status": "ok",- "expected_prompt_tokens": 16384,- "request_sha256": "7664e759d262ff5e9dbbef7e55d09267244629ba14eff0c871954813fd5e36b2",- "started_epoch_s": 1791137733.223531,- "finished_epoch_s": 1791137752.6598368,- "client_ttft_s": 16.450469699999303,- "client_elapsed_s": 19.415217300000222,- "finish_reason": "length",- "stream_done": true,- "prefill_tok_s": 1000.1648220837175,- "decode_tok_s": 85.25944181709187,- "usage": {- "prompt_tokens": 16384,- "completion_tokens": 256,- "total_tokens": 16640,- "prompt_tokens_details": {- "cached_tokens": 0- }- },- "timings": {- "cache_n": 0,- "prompt_n": 16384,- "prompt_ms": 16381.3,- "prompt_per_token_ms": 1.0,- "prompt_per_second": 1000.2,- "predicted_n": 256,- "predicted_ms": 3002.6,- "predicted_per_token_ms": 11.729,- "predicted_per_second": 85.3,- "draft_n": 210,- "draft_n_accepted": 157- },- "included_in_speed_summary": true,- "response_text_sha256": "fc3fd4e03cf8656f98f106a2edc8c9f64e593addedc7dadc0ccc4f9022390bf8",- "engine": {- "prompt_tokens": 16384,- "reused": 0,- "output_tokens": 256,- "prompt_total": 16384,- "prompt_read": 16384,- "engine_generated": 256,- "prompt_ms": 16381.3,- "decode_ms": 3002.6,- "hit_rate": 0.997,- "pcie_share": 0.0,- "file_mb": 514.7,- "drafts_offered": 210,- "drafts_accepted": 157- }- }- ]- }- ]-}diff --git a/bench/results/2026-10-04-windows-mapped-release/test_benchmark.py b/bench/results/2026-10-04-windows-mapped-release/test_benchmark.pydeleted file mode 100644index 4595de1b2..000000000--- a/bench/results/2026-10-04-windows-mapped-release/test_benchmark.py+++ /dev/null@@ -1,179 +0,0 @@-"""Protocol and evidence checks against a local fake server; no model or GPU work."""-import importlib.util-import hashlib-import json-import tempfile-import threading-import unittest-from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer-from pathlib import Path--HERE = Path(__file__).resolve().parent-SPEC = importlib.util.spec_from_file_location("local_benchmark", HERE / "benchmark.py")-BENCH = importlib.util.module_from_spec(SPEC)-SPEC.loader.exec_module(BENCH)---class FakeServer(ThreadingHTTPServer):- def __init__(self):- super().__init__(("127.0.0.1", 0), FakeHandler)- self.mode = "ok"- self.metrics = {"engine": {"max_context": 32768}, "live": {"state": "idle", "queued": 0},- "totals": {"requests": 0}, "requests": [], "time": 1,- "hardware": {"ram_total": 32 * 2**30, "ram_used": 10 * 2**30,- "gpus": [{"index": 0, "mem_used": 100}, {"index": 1, "mem_used": 200}],- "disk_read_mb": 3.5}}---class FakeHandler(BaseHTTPRequestHandler):- def log_message(self, *_):- pass-- def do_GET(self):- self.send_response(200)- self.end_headers()- self.wfile.write(json.dumps(self.server.metrics).encode("utf-8"))-- def do_POST(self):- self.rfile.read(int(self.headers["Content-Length"]))- if self.server.mode == "http_error":- self.send_response(400)- self.end_headers()- self.wfile.write(b'{"error": "Synthetic request rejection"}')- return- self.send_response(200)- self.send_header("Content-Type", "text/event-stream")- self.end_headers()-- def send(value):- self.wfile.write(b"data: " + json.dumps(value).encode("utf-8") + b"\n\n")- self.wfile.flush()-- send({"choices": [{"delta": {"content": "Verified output."}, "finish_reason": None}]})- if self.server.mode == "stream_error":- send({"error": {"message": "Synthetic engine failure"}})- return- reused = 1 if self.server.mode == "reused" else 0- engine = {"prompt_tokens": 100, "prompt_total": 100, "prompt_read": 100 - reused,- "reused": reused, "prompt_ms": 100, "decode_ms": 200,- "output_tokens": 8, "engine_generated": 8, "finish": "length",- "file_mb": 12.5, "ram_blobs": 3, "file_blobs": 9}- self.server.metrics["totals"]["requests"] += 2 if self.server.mode == "other_client" else 1- self.server.metrics["requests"].insert(0, engine)- send({"choices": [{"delta": {}, "finish_reason": "length"}],- "usage": {"prompt_tokens": 100, "completion_tokens": 8,- "prompt_tokens_details": {"cached_tokens": reused}},- "timings": {"prompt_n": 100 - reused, "predicted_n": 8,- "prompt_ms": 100, "predicted_ms": 200}})- if self.server.mode != "missing_done":- self.wfile.write(b"data: [DONE]\n\n")---class BenchmarkProtocolTest(unittest.TestCase):- def setUp(self):- self.server = FakeServer()- self.thread = threading.Thread(target=self.server.serve_forever, daemon=True)- self.thread.start()- self.temporary = tempfile.TemporaryDirectory(prefix="test-benchmark-", dir=HERE)- self.out = Path(self.temporary.name).resolve()- self.assertEqual(self.out.parent, HERE)-- def tearDown(self):- self.server.shutdown()- self.server.server_close()- self.thread.join()- self.temporary.cleanup()-- def run_trial(self, mode):- self.server.mode = mode- url = f"http://127.0.0.1:{self.server.server_port}"- return BENCH.perform(url, self.out, "fake-session", mode, 1,- {"max_tokens": 8}, 100, interval=0.01, timeout=3)-- def test_success_has_real_rates_and_both_gpus(self):- row = self.run_trial("ok")- self.assertEqual(row["status"], "ok", row.get("error"))- self.assertEqual(row["prefill_tok_s"], 1000)- self.assertEqual(row["decode_tok_s"], 40)- self.assertEqual(row["engine"]["file_mb"], 12.5)- samples = [json.loads(line) for line in (self.out / row["telemetry"]).read_text(encoding="utf-8").splitlines()]- self.assertEqual(samples[0]["hardware"]["ram_available"], 22 * 2**30)- self.assertEqual(len(samples[0]["hardware"]["gpus"]), 2)-- def test_rejects_cached_prompt_missing_done_and_other_client(self):- for mode, message in (("reused", "cached tokens"), ("missing_done", "without [DONE]"),- ("other_client", "counter mismatch")):- with self.subTest(mode=mode):- row = self.run_trial(mode)- self.assertEqual(row["status"], "failed")- self.assertIn(message, row["error"]["message"])- self.assertTrue((self.out / f"{mode}-attempt-1-record.json").is_file())-- def test_stream_error_retains_partial_text_and_error_payload(self):- row = self.run_trial("stream_error")- self.assertEqual(row["status"], "failed")- self.assertEqual(row["text"], "Verified output.")- self.assertIn("Synthetic engine failure", row["error"]["message"])- self.assertIn("Synthetic engine failure", (self.out / row["raw_stream"]).read_text(encoding="utf-8"))-- def test_http_error_body_is_preserved(self):- row = self.run_trial("http_error")- self.assertEqual(row["status"], "failed")- self.assertEqual(row["error"]["http_status"], 400)- self.assertIn("Synthetic request rejection", row["error"]["body"])-- def test_summary_reports_failed_attempts_separately(self):- good = {"label": "tokens-1024-run-1", "status": "ok", "client_ttft_s": 1,- "client_elapsed_s": 2, "prefill_tok_s": 1024, "decode_tok_s": 256}- failed = {"label": "tokens-1024-run-1", "status": "failed"}- group = BENCH.summary([failed, good], [1024])["1024"]- self.assertEqual(group["successful_runs"], 1)- self.assertEqual(group["failed_attempts"], 1)- self.assertEqual(group["decode_tok_s"]["median"], 256)-- def test_executable_hash_uses_config_working_directory(self):- payload = b"Synthetic binary contents; never executed."- executable = self.out / "strata.exe"- executable.write_bytes(payload)- for name in ("strata.exe", str(executable)):- with self.subTest(name=name):- record = BENCH.executable_record({"exe": name, "cwd": str(self.out)})- self.assertEqual(record["path"], str(executable))- self.assertEqual(record["sha256"], hashlib.sha256(payload).hexdigest())- self.assertEqual(record["size_bytes"], len(payload))- with self.assertRaises(FileNotFoundError):- BENCH.executable_record({"exe": "missing.exe", "cwd": str(self.out)})-- def test_provenance_supports_artifact_schemas_and_rejects_wrong_binary(self):- executable = {"path": str(self.out / "strata.exe"), "sha256": "a" * 64}- artifact = {"sha256": executable["sha256"], "bytes": 123}- path = self.out / "provenance.json"- for artifacts in ({"strata.exe": artifact}, [{"file": "strata.exe", **artifact}]):- source = {"strata_version": "0.1.38", "commit": "fork-commit",- "engine_source_fingerprint": "engine-fingerprint", "artifacts": artifacts,- "source_file_hashes": [{"path": "large-file-list", "sha256": "omitted"}],- "toolchain": {"nvcc": "13.1.80", "cuda_architectures": [86, 89]}}- BENCH.write_json(path, source)- record = BENCH.engine_provenance_record(path, executable)- self.assertEqual(record["sha256"], hashlib.sha256(path.read_bytes()).hexdigest())- self.assertEqual(record["version"], "0.1.38")- self.assertEqual(record["commit"], "fork-commit")- self.assertEqual(record["fingerprint"], "engine-fingerprint")- self.assertTrue(record["executable_hash_verified"])- self.assertNotIn("source_file_hashes", record)- with self.assertRaisesRegex(ValueError, "does not match"):- BENCH.engine_provenance_record(path, {**executable, "sha256": "b" * 64})-- def test_release_build_metadata_does_not_invent_commit_or_hash_verification(self):- path = self.out / "BUILD.json"- BENCH.write_json(path, {"version": "0.1.39", "source": "release", "cuda": "13.0", "archs": [86, 89]})- record = BENCH.engine_provenance_record(path, {"path": str(self.out / "strata.exe"), "sha256": "a" * 64})- self.assertEqual(record["version"], "0.1.39")- self.assertEqual(record["toolchain"]["cuda"], "13.0")- self.assertIsNone(record["commit"])- self.assertIsNone(record["fingerprint"])- self.assertFalse(record["executable_hash_verified"])---if __name__ == "__main__":- unittest.main()diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex 14d1cc8e3..79e9f2a97 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -171,7 +171,7 @@ start writes `experts.bin` (when the drive has room for it), later starts map itare handed back to the OS. Run it with `--pcie-frac 0` (the GPUs get no mapped alias). Without the variable nothingchanges.-**Releasing mapped expert pages on Windows (opt-in):** `STRATA_ARENA_RELEASE=1` lets `FileExpertSource` trim the+**Releasing mapped expert pages on Windows (opt-in):** `STRATA_FILE_RELEASE=1` lets `FileExpertSource` trim thefull file-backed pages of experts after their GPU uploads complete, including the slots lent to prefill and thenrefilled. It works with `experts.bin` and the direct GGUF views; shared boundary pages and private/pinned buffersare left alone. Unset or `0` keeps the previous behavior. On one 32 GB Windows 11 laptop with an RTX 4080 Laptopdiff --git a/include/strata/core/expert_source.hpp b/include/strata/core/expert_source.hppindex ed50b6c2a..d579c5440 100644--- a/include/strata/core/expert_source.hpp+++ b/include/strata/core/expert_source.hpp@@ -549,7 +549,7 @@ public:bool advise_pairs(const std::pair<int32_t, int32_t>* pairs, int64_t n) const override;const uint8_t* blob(int64_t layer, int64_t expert) override;- /// Windows, opt-in with STRATA_ARENA_RELEASE=1: trim the file mapping's full pages after their expert reaches+ /// Windows, opt-in with STRATA_FILE_RELEASE=1: trim the file mapping's full pages after their expert reaches/// VRAM. Never touches the resident complement or staging buffers. Disabled by default.uint64_t release(int64_t layer, int64_t expert) override;bool pinned(int64_t layer, int64_t expert) const override;diff --git a/src/core/expert_source.cpp b/src/core/expert_source.cppindex 4f251e168..67175de67 100644--- a/src/core/expert_source.cpp+++ b/src/core/expert_source.cpp@@ -1585,7 +1585,7 @@ const uint8_t* FileExpertSource::mapped_blob(int64_t layer, int64_t expert) consuint64_t FileExpertSource::release(int64_t layer, int64_t expert) {#if defined(_WIN32)static const bool enabled = [] {- const char* v = std::getenv("STRATA_ARENA_RELEASE");+ const char* v = std::getenv("STRATA_FILE_RELEASE");return v != nullptr && std::strcmp(v, "1") == 0;}();if (!enabled || base_ == nullptr || layer < 0 || expert < 0 || layer >= n_layers_ || expert >= n_expert_)diff --git a/tests/core/expert_layout_test.cpp b/tests/core/expert_layout_test.cppindex 88d01785b..ffdf1c662 100644--- a/tests/core/expert_layout_test.cpp+++ b/tests/core/expert_layout_test.cpp@@ -228,7 +228,7 @@ void arena() {std::memcmp(buf.data(), dst.data() + L.blob_offset(l, e), n) == 0;const uint64_t released = fs.release(l, e);#if defined(_WIN32)- const char* setting = std::getenv("STRATA_ARENA_RELEASE");+ const char* setting = std::getenv("STRATA_FILE_RELEASE");const bool enabled = setting != nullptr && std::strcmp(setting, "1") == 0;check(enabled ? released > 0 : released == 0, "GGUF mapped release honors its opt-in switch");#elsediff --git a/tests/core/file_expert_source_test.cpp b/tests/core/file_expert_source_test.cppindex 9e2721877..56590970a 100644--- a/tests/core/file_expert_source_test.cpp+++ b/tests/core/file_expert_source_test.cpp@@ -12,6 +12,7 @@#include <cstring>#include <algorithm>#include <chrono>+#include <cstdio>#include <cstdlib>#include <cstring>#include <cstddef>@@ -114,14 +115,17 @@ void check_mapped_release(strata::core::FileExpertSource& source, int64_t layer,"QueryWorkingSetEx failed for the release fixture");return state.VirtualAttributes.Valid != 0;};- const char* setting = std::getenv("STRATA_ARENA_RELEASE");+ const char* setting = std::getenv("STRATA_FILE_RELEASE");const bool enabled = setting != nullptr && std::strcmp(setting, "1") == 0;for (int round = 0; round < 3; ++round) {require(std::memcmp(p, saved.data(), saved.size()) == 0, "release changed the mapped expert bytes");require(resident(first), "reading the expert did not bring its interior page into the working set");const uint64_t released = source.release(layer, expert);require(released == (enabled ? end - first : 0), "release did not honor full pages or its opt-in switch");- require(resident(first) != enabled, "release did not honor the working-set contract");+ // Off: the page stays. On: Windows may keep a trimmed page on its standby list and map it back at once, so a+ // page that is still valid is reported, not failed (the byte count above is the contract).+ if (!enabled) require(resident(first), "release trimmed pages with the switch off");+ else if (resident(first)) std::fprintf(stderr, "note: the trimmed page is already back in the working set\n");if ((uintptr_t) p < first)require(resident((uintptr_t) p), "release trimmed the expert's shared first page");if (end < (uintptr_t) p + bytes)