BurnyCoder commited on
Commit
be69f40
·
verified ·
1 Parent(s): 24afcf2

prereg-sustained-27b · 1f31be818d84

Browse files
README.md CHANGED
@@ -118,6 +118,7 @@ The original solver and judge adapters all use Qwen2.5-1.5B-Instruct. A solver s
118
  | [new-judges/q35-4b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-4b) | Qwen3.5-4B frozen, same-runtime screen | Complete | J3 verdict 35/64, twins 7/32, masked 0/32 | — |
119
  | [new-judges/q35-9b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b) | Qwen3.5-9B frozen, same-runtime screen | Complete | J3 verdict 43/64, twins 4/32, masked 0/32 | — |
120
  | [new-judges/q38-27b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b) | Qwen3.8-27B frozen, same-runtime screen | Checking GPU fit | Pending | — |
 
121
  | new-judges/confirm-control | Frozen Qwen2.5 control, fresh confirmation | Conditional | Pending | — |
122
  | new-judges/confirm-winner | Selected newer frozen judge, fresh confirmation | Conditional | Pending | — |
123
  | new-judges/winner-d2 | Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17 | Conditional, later day | Pending | — |
 
118
  | [new-judges/q35-4b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-4b) | Qwen3.5-4B frozen, same-runtime screen | Complete | J3 verdict 35/64, twins 7/32, masked 0/32 | — |
119
  | [new-judges/q35-9b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b) | Qwen3.5-9B frozen, same-runtime screen | Complete | J3 verdict 43/64, twins 4/32, masked 0/32 | — |
120
  | [new-judges/q38-27b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b) | Qwen3.8-27B frozen, same-runtime screen | Checking GPU fit | Pending | — |
121
+ | new-judges/q38-27b-iq1s | Frozen 27B IQ1_S, fresh screen conditional on sustained latency at higher precision | Conditional | Pending | — |
122
  | new-judges/confirm-control | Frozen Qwen2.5 control, fresh confirmation | Conditional | Pending | — |
123
  | new-judges/confirm-winner | Selected newer frozen judge, fresh confirmation | Conditional | Pending | — |
124
  | new-judges/winner-d2 | Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17 | Conditional, later day | Pending | — |
docs/assets/study.json CHANGED
@@ -240297,6 +240297,15 @@
240297
  "held_out": "—",
240298
  "evidence": "https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b"
240299
  },
 
 
 
 
 
 
 
 
 
240300
  {
240301
  "group": "Newer frozen Qwen judges",
240302
  "id": "new-judges/confirm-control",
@@ -240493,11 +240502,17 @@
240493
  "engines": [
240494
  {
240495
  "engine": "Copy",
240496
- "seconds": 4.3711994
 
 
 
240497
  },
240498
  {
240499
  "engine": "3D",
240500
- "seconds": 195.4857742
 
 
 
240501
  }
240502
  ],
240503
  "last_sample": "2026-11-27T06:24:30.0568777Z"
@@ -240651,11 +240666,17 @@
240651
  "engines": [
240652
  {
240653
  "engine": "Copy",
240654
- "seconds": 4.0930045
 
 
 
240655
  },
240656
  {
240657
  "engine": "3D",
240658
- "seconds": 1844674407025.169
 
 
 
240659
  }
240660
  ],
240661
  "last_sample": "2026-11-27T06:28:10.1969205Z"
@@ -240791,11 +240812,17 @@
240791
  "engines": [
240792
  {
240793
  "engine": "Copy",
240794
- "seconds": 0.3915645
 
 
 
240795
  },
240796
  {
240797
  "engine": "3D",
240798
- "seconds": 39.153601
 
 
 
240799
  }
240800
  ],
240801
  "last_sample": "2026-11-27T06:30:14.0400598Z"
@@ -240949,11 +240976,17 @@
240949
  "engines": [
240950
  {
240951
  "engine": "Copy",
240952
- "seconds": 4.1535561
 
 
 
240953
  },
240954
  {
240955
  "engine": "3D",
240956
- "seconds": 1844674406577.2244
 
 
 
240957
  }
240958
  ],
240959
  "last_sample": "2026-11-27T06:34:33.5119098Z"
@@ -241107,11 +241140,17 @@
241107
  "engines": [
241108
  {
241109
  "engine": "Copy",
241110
- "seconds": 4.5312259
 
 
 
241111
  },
241112
  {
241113
  "engine": "3D",
241114
- "seconds": 193.2695304
 
 
 
241115
  }
241116
  ],
241117
  "last_sample": "2026-11-27T07:01:37.1673096Z"
 
240297
  "held_out": "—",
240298
  "evidence": "https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b"
240299
  },
240300
+ {
240301
+ "group": "Newer frozen Qwen judges",
240302
+ "id": "new-judges/q38-27b-iq1s",
240303
+ "treatment": "Frozen 27B IQ1_S, fresh screen conditional on sustained latency at higher precision",
240304
+ "status": "Conditional",
240305
+ "result": "Pending",
240306
+ "held_out": "—",
240307
+ "evidence": null
240308
+ },
240309
  {
240310
  "group": "Newer frozen Qwen judges",
240311
  "id": "new-judges/confirm-control",
 
240502
  "engines": [
240503
  {
240504
  "engine": "Copy",
240505
+ "seconds": 1.0452778999999999,
240506
+ "interval_seconds": 73.770727,
240507
+ "usable": 13,
240508
+ "discarded": 0
240509
  },
240510
  {
240511
  "engine": "3D",
240512
+ "seconds": 53.59557130000002,
240513
+ "interval_seconds": 73.770727,
240514
+ "usable": 13,
240515
+ "discarded": 0
240516
  }
240517
  ],
240518
  "last_sample": "2026-11-27T06:24:30.0568777Z"
 
240666
  "engines": [
240667
  {
240668
  "engine": "Copy",
240669
+ "seconds": 3.8267114,
240670
+ "interval_seconds": 181.19548399999996,
240671
+ "usable": 31,
240672
+ "discarded": 0
240673
  },
240674
  {
240675
  "engine": "3D",
240676
+ "seconds": 105.560607528125,
240677
+ "interval_seconds": 175.47737299999997,
240678
+ "usable": 30,
240679
+ "discarded": 1
240680
  }
240681
  ],
240682
  "last_sample": "2026-11-27T06:28:10.1969205Z"
 
240812
  "engines": [
240813
  {
240814
  "engine": "Copy",
240815
+ "seconds": 0.2771048,
240816
+ "interval_seconds": 78.97356699999999,
240817
+ "usable": 14,
240818
+ "discarded": 0
240819
  },
240820
  {
240821
  "engine": "3D",
240822
+ "seconds": 38.1849177,
240823
+ "interval_seconds": 78.97356699999999,
240824
+ "usable": 14,
240825
+ "discarded": 0
240826
  }
240827
  ],
240828
  "last_sample": "2026-11-27T06:30:14.0400598Z"
 
240976
  "engines": [
240977
  {
240978
  "engine": "Copy",
240979
+ "seconds": 4.0017347,
240980
+ "interval_seconds": 186.40789900000004,
240981
+ "usable": 33,
240982
+ "discarded": 0
240983
  },
240984
  {
240985
  "engine": "3D",
240986
+ "seconds": 112.423271115625,
240987
+ "interval_seconds": 180.70772300000004,
240988
+ "usable": 32,
240989
+ "discarded": 1
240990
  }
240991
  ],
240992
  "last_sample": "2026-11-27T06:34:33.5119098Z"
 
241140
  "engines": [
241141
  {
241142
  "engine": "Copy",
241143
+ "seconds": 3.9984248,
241144
+ "interval_seconds": 276.07783400000005,
241145
+ "usable": 54,
241146
+ "discarded": 0
241147
  },
241148
  {
241149
  "engine": "3D",
241150
+ "seconds": 193.21427970000002,
241151
+ "interval_seconds": 276.07783400000005,
241152
+ "usable": 54,
241153
+ "discarded": 0
241154
  }
241155
  ],
241156
  "last_sample": "2026-11-27T07:01:37.1673096Z"
reports/experiments/new-judges/q25-1p5b/experiment.md CHANGED
@@ -11,4 +11,4 @@ Complete. J3 verdict 28/64, twins 0/32, masked 0/32
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 2,850 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
- Windows sampled the dedicated allocation of the llama.cpp process at up to 1,262 MiB. At its last sample, per-process engine running time was Copy 0.4 s, 3D 39.2 s. Engine counters include model loading. Sampling can end before the final kernel completes. [Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).
 
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 2,850 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
+ Windows sampled the dedicated allocation of the llama.cpp process at up to 1,262 MiB. Measured active time between usable adjacent samples was Copy 0.3 s across 79.0 s (14 usable intervals, 0 discarded), 3D 38.2 s across 79.0 s (14 usable intervals, 0 discarded). The sampling window can miss startup and final kernels. Discontinuities supply no time estimate. [Windows timer counters](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types).
reports/experiments/new-judges/q35-4b-ollama/experiment.md CHANGED
@@ -11,4 +11,4 @@ Complete. J3 verdict 32/64, twins 1/32, masked 0/32
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
- Windows sampled the dedicated allocation of the llama.cpp process at up to 2,784 MiB. At its last sample, per-process engine running time was Copy 4.1 s, 3D 1844674407025.2 s. Engine counters include model loading. Sampling can end before the final kernel completes. [Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).
 
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
+ Windows sampled the dedicated allocation of the llama.cpp process at up to 2,784 MiB. Measured active time between usable adjacent samples was Copy 3.8 s across 181.2 s (31 usable intervals, 0 discarded), 3D 105.6 s across 175.5 s (30 usable intervals, 1 discarded). The sampling window can miss startup and final kernels. Discontinuities supply no time estimate. [Windows timer counters](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types).
reports/experiments/new-judges/q35-4b/experiment.md CHANGED
@@ -11,4 +11,4 @@ Complete. J3 verdict 35/64, twins 7/32, masked 0/32
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
- Windows sampled the dedicated allocation of the llama.cpp process at up to 2,872 MiB. At its last sample, per-process engine running time was Copy 4.2 s, 3D 1844674406577.2 s. Engine counters include model loading. Sampling can end before the final kernel completes. [Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).
 
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
+ Windows sampled the dedicated allocation of the llama.cpp process at up to 2,872 MiB. Measured active time between usable adjacent samples was Copy 4.0 s across 186.4 s (33 usable intervals, 0 discarded), 3D 112.4 s across 180.7 s (32 usable intervals, 1 discarded). The sampling window can miss startup and final kernels. Discontinuities supply no time estimate. [Windows timer counters](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types).
reports/experiments/new-judges/q35-9b-ollama/experiment.md CHANGED
@@ -11,4 +11,4 @@ Complete. J3 verdict 43/64, twins 1/32, masked 0/32
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
- Windows sampled the dedicated allocation of the llama.cpp process at up to 5,628 MiB. At its last sample, per-process engine running time was Copy 4.4 s, 3D 195.5 s. Engine counters include model loading. Sampling can end before the final kernel completes. [Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).
 
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
+ Windows sampled the dedicated allocation of the llama.cpp process at up to 5,628 MiB. Measured active time between usable adjacent samples was Copy 1.0 s across 73.8 s (13 usable intervals, 0 discarded), 3D 53.6 s across 73.8 s (13 usable intervals, 0 discarded). The sampling window can miss startup and final kernels. Discontinuities supply no time estimate. [Windows timer counters](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types).
reports/experiments/new-judges/q35-9b/experiment.md CHANGED
@@ -11,4 +11,4 @@ Complete. J3 verdict 43/64, twins 4/32, masked 0/32
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
- Windows sampled the dedicated allocation of the llama.cpp process at up to 5,678 MiB. At its last sample, per-process engine running time was Copy 4.5 s, 3D 193.3 s. Engine counters include model loading. Sampling can end before the final kernel completes. [Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).
 
11
 
12
  The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs. The balanced invalid traces contained 16 first errors before the final step and 16 at the final step. The server recorded 4,110 compute graph assignments across the measured loads. Every assignment used CUDA0.
13
 
14
+ Windows sampled the dedicated allocation of the llama.cpp process at up to 5,678 MiB. Measured active time between usable adjacent samples was Copy 4.0 s across 276.1 s (54 usable intervals, 0 discarded), 3D 193.2 s across 276.1 s (54 usable intervals, 0 discarded). The sampling window can miss startup and final kernels. Discontinuities supply no time estimate. [Windows timer counters](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types).
reports/newer-frozen-judges.md CHANGED
@@ -33,3 +33,13 @@ Every model has the same output format and input evidence. Native templates can
33
  The balanced replay changes one numbered value. On the two-step family, its fixed error index alternates between the first and final step. The per-model audit reports both counts. This implementation detail narrows the interpretation of the protocol's phrase “one incorrect intermediate step.”
34
 
35
  The initial 9B deployment pilot revealed that the chat endpoint returned an empty reasoning wrapper from the prompt template as part of the assistant message. The strict grader treated the wrapper as output, and successor prompts included the wrapper. The archive retains all delivered messages. This pilot supplies no accuracy estimate. For every scored run, explicitly render the native non-thinking template and request its raw completion. Store the rendered prompt, actual generated token IDs and generated text separately. Forward and strictly score only the generated text. Rerun every affected chain from its first judge. The checker, problem assignments, generation budget and model-selection rule stay fixed. [Archived pilot](../results/new-judges/runtime-format-pilot/result.json) · [llama.cpp completion and template endpoints](https://github.com/ggml-org/llama.cpp/blob/b12807/tools/server/README.md)
 
 
 
 
 
 
 
 
 
 
 
33
  The balanced replay changes one numbered value. On the two-step family, its fixed error index alternates between the first and final step. The per-model audit reports both counts. This implementation detail narrows the interpretation of the protocol's phrase “one incorrect intermediate step.”
34
 
35
  The initial 9B deployment pilot revealed that the chat endpoint returned an empty reasoning wrapper from the prompt template as part of the assistant message. The strict grader treated the wrapper as output, and successor prompts included the wrapper. The archive retains all delivered messages. This pilot supplies no accuracy estimate. For every scored run, explicitly render the native non-thinking template and request its raw completion. Store the rendered prompt, actual generated token IDs and generated text separately. Forward and strictly score only the generated text. Rerun every affected chain from its first judge. The checker, problem assignments, generation budget and model-selection rule stay fixed. [Archived pilot](../results/new-judges/runtime-format-pilot/result.json) · [llama.cpp completion and template endpoints](https://github.com/ggml-org/llama.cpp/blob/b12807/tools/server/README.md)
36
+
37
+ ## Sustained 27B throughput amendment, 27 November 2026
38
+
39
+ The original four-call timing pilot passed for the IQ1_M file. The same deployment later took more than the existing 30-second ceiling on consecutive scored requests. Loading the identical model again reproduced the slowdown. This observation motivated an amendment **after the IQ1_M screen began and before inference with IQ1_S or the independent confirmation set**. Its trigger uses timestamps, call identities and wall durations. It does not inspect answers or grades. [Original 27B calls and fit records](../results/new-judges/q38-27b) · [Eligibility check](../src/study/frozen_latency.py).
40
+
41
+ At a completed case boundary, three consecutive scored requests above 30 seconds trigger one reload of the identical 27B file. A subsequent slow scored request that leaves three consecutive calls above the ceiling confirms persistence if the preceding load also ended with three slow calls. Preserve all partial records without estimating cohort accuracy. If the file was larger than the smallest registered compression, start a separate IQ1_S screen from the first prompt. Apply the same model, problem, timing, CUDA placement and scoring checks. Keep costs and responses in separate directories. Repeat the same sustained-throughput check on the smaller file and any 27B confirmation. [Reproducible campaign](../src/study/frozen_suite.py).
42
+
43
+ Report which original completed model wins when the partial screen is excluded and which model wins when the separate IQ1_S screen is eligible. The independent confirmation evaluates the latter selection against the same-runtime control. An incomplete IQ1_M screen leaves that file's accuracy unresolved. The user deferred all solver optimization to a later day. [Run inventory](run-inventory.md).
44
+
45
+ Windows exposed discontinuities in some raw GPU-engine counters, including an implausibly large absolute reading. Earlier per-model reports printed the last absolute reading. Recompute active seconds from consecutive samples for the same process and engine. Retain time differences between zero and the elapsed sample interval, report discarded intervals and preserve the original readings. New samples also retain the native counter and timestamp ticks. This correction affects timing summaries. Judge scores come from the separate raw answer journals. [Microsoft timer algorithms](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types) · [Measurement code](../src/study/frozen_device.py).
reports/paper.pdf CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8261d64c43460a4deafe89b7b45724411a663bad5c3480d9bb0d0364bf9db2b3
3
- size 986142
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a98702504a1dab29e23344f71091a2d6824502e8f762bd4a190a8bcb9003cfa
3
+ size 986763
reports/run-inventory.md CHANGED
@@ -104,6 +104,7 @@ The original solver and judge adapters all use Qwen2.5-1.5B-Instruct. A solver s
104
  | [new-judges/q35-4b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-4b) | Qwen3.5-4B frozen, same-runtime screen | Complete | J3 verdict 35/64, twins 7/32, masked 0/32 | — |
105
  | [new-judges/q35-9b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b) | Qwen3.5-9B frozen, same-runtime screen | Complete | J3 verdict 43/64, twins 4/32, masked 0/32 | — |
106
  | [new-judges/q38-27b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b) | Qwen3.8-27B frozen, same-runtime screen | Checking GPU fit | Pending | — |
 
107
  | new-judges/confirm-control | Frozen Qwen2.5 control, fresh confirmation | Conditional | Pending | — |
108
  | new-judges/confirm-winner | Selected newer frozen judge, fresh confirmation | Conditional | Pending | — |
109
  | new-judges/winner-d2 | Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17 | Conditional, later day | Pending | — |
 
104
  | [new-judges/q35-4b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-4b) | Qwen3.5-4B frozen, same-runtime screen | Complete | J3 verdict 35/64, twins 7/32, masked 0/32 | — |
105
  | [new-judges/q35-9b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b) | Qwen3.5-9B frozen, same-runtime screen | Complete | J3 verdict 43/64, twins 4/32, masked 0/32 | — |
106
  | [new-judges/q38-27b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b) | Qwen3.8-27B frozen, same-runtime screen | Checking GPU fit | Pending | — |
107
+ | new-judges/q38-27b-iq1s | Frozen 27B IQ1_S, fresh screen conditional on sustained latency at higher precision | Conditional | Pending | — |
108
  | new-judges/confirm-control | Frozen Qwen2.5 control, fresh confirmation | Conditional | Pending | — |
109
  | new-judges/confirm-winner | Selected newer frozen judge, fresh confirmation | Conditional | Pending | — |
110
  | new-judges/winner-d2 | Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17 | Conditional, later day | Pending | — |
reports/summary.md CHANGED
@@ -241,6 +241,7 @@ The original solver and judge adapters all use Qwen2.5-1.5B-Instruct. A solver s
241
  | [new-judges/q35-4b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-4b) | Qwen3.5-4B frozen, same-runtime screen | Complete | J3 verdict 35/64, twins 7/32, masked 0/32 | — |
242
  | [new-judges/q35-9b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b) | Qwen3.5-9B frozen, same-runtime screen | Complete | J3 verdict 43/64, twins 4/32, masked 0/32 | — |
243
  | [new-judges/q38-27b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b) | Qwen3.8-27B frozen, same-runtime screen | Checking GPU fit | Pending | — |
 
244
  | new-judges/confirm-control | Frozen Qwen2.5 control, fresh confirmation | Conditional | Pending | — |
245
  | new-judges/confirm-winner | Selected newer frozen judge, fresh confirmation | Conditional | Pending | — |
246
  | new-judges/winner-d2 | Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17 | Conditional, later day | Pending | — |
 
241
  | [new-judges/q35-4b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-4b) | Qwen3.5-4B frozen, same-runtime screen | Complete | J3 verdict 35/64, twins 7/32, masked 0/32 | — |
242
  | [new-judges/q35-9b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b) | Qwen3.5-9B frozen, same-runtime screen | Complete | J3 verdict 43/64, twins 4/32, masked 0/32 | — |
243
  | [new-judges/q38-27b](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q38-27b) | Qwen3.8-27B frozen, same-runtime screen | Checking GPU fit | Pending | — |
244
+ | new-judges/q38-27b-iq1s | Frozen 27B IQ1_S, fresh screen conditional on sustained latency at higher precision | Conditional | Pending | — |
245
  | new-judges/confirm-control | Frozen Qwen2.5 control, fresh confirmation | Conditional | Pending | — |
246
  | new-judges/confirm-winner | Selected newer frozen judge, fresh confirmation | Conditional | Pending | — |
247
  | new-judges/winner-d2 | Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17 | Conditional, later day | Pending | — |
src/study/frozen_device.ps1 CHANGED
@@ -10,11 +10,12 @@ while (($server = Get-Process -Id $ServerId -ErrorAction SilentlyContinue) -and
10
  $selector = "Name LIKE 'pid_${ServerId}_%'"
11
  $engines = @(Get-CimInstance Win32_PerfRawData_GPUPerformanceCounters_GPUEngine -Filter $selector |
12
  Where-Object RunningTime -gt 0 | ForEach-Object {
13
- [ordered]@{engine=$_.Name.Split('_')[-1];seconds=[double]$_.RunningTime/$_.Frequency_Sys100NS}
 
14
  })
15
  $memory = @(Get-CimInstance Win32_PerfFormattedData_GPUPerformanceCounters_GPUProcessMemory -Filter $selector)
16
  if ($engines.Count -and $memory.Count) {
17
- $record = [ordered]@{time=(Get-Date).ToUniversalTime().ToString('o');pid=$ServerId;engines=$engines
18
  dedicated_bytes=($memory|Measure-Object DedicatedUsage -Sum).Sum
19
  shared_bytes=($memory|Measure-Object SharedUsage -Sum).Sum}
20
  [IO.File]::AppendAllText($Destination,($record|ConvertTo-Json -Compress -Depth 4)+[Environment]::NewLine,
 
10
  $selector = "Name LIKE 'pid_${ServerId}_%'"
11
  $engines = @(Get-CimInstance Win32_PerfRawData_GPUPerformanceCounters_GPUEngine -Filter $selector |
12
  Where-Object RunningTime -gt 0 | ForEach-Object {
13
+ [ordered]@{engine=$_.Name.Split('_')[-1];instance=$_.Name;seconds=[double]$_.RunningTime/$_.Frequency_Sys100NS
14
+ running_ticks=[string]$_.RunningTime;sample_ticks=[string]$_.Timestamp_Sys100NS;frequency=[int64]$_.Frequency_Sys100NS}
15
  })
16
  $memory = @(Get-CimInstance Win32_PerfFormattedData_GPUPerformanceCounters_GPUProcessMemory -Filter $selector)
17
  if ($engines.Count -and $memory.Count) {
18
+ $record = [ordered]@{time=(Get-Date).ToUniversalTime().ToString('o');pid=$ServerId;process_start=$created.ToUniversalTime().ToString('o');engines=$engines
19
  dedicated_bytes=($memory|Measure-Object DedicatedUsage -Sum).Sum
20
  shared_bytes=($memory|Measure-Object SharedUsage -Sum).Sum}
21
  [IO.File]::AppendAllText($Destination,($record|ConvertTo-Json -Compress -Depth 4)+[Environment]::NewLine,
src/study/frozen_device.py CHANGED
@@ -3,10 +3,44 @@
3
  import hashlib
4
  import re
5
  from collections import Counter
 
 
6
 
7
  from .storage import ORIGINAL_RESULTS, log_directory, read_json, write_json
8
 
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  def graph_assignments(path):
11
  """CUDA0 is the only permitted compute graph backend. CPU tokenization is outside these graphs."""
12
  digest, counts = hashlib.sha256(), Counter()
@@ -25,7 +59,8 @@ def close_device_records():
25
  """Attach the logs for each scored load to its raw receipt. Skip archived/pre-fix pilot calls."""
26
  for marker in (ORIGINAL_RESULTS/"new-judges").glob("*/result.json"):
27
  folder = marker.parent
28
- if (folder/"gpu-graphs.json").is_file() or not read_json(marker).get("metrics"):
 
29
  continue
30
  logs = sorted((log_directory()/("new-judges-"+folder.name)).glob("*-server.log"))
31
  if not logs:
 
3
  import hashlib
4
  import re
5
  from collections import Counter
6
+ from datetime import datetime
7
+ from itertools import pairwise
8
 
9
  from .storage import ORIGINAL_RESULTS, log_directory, read_json, write_json
10
 
11
 
12
+ def measured_engine_times(samples):
13
+ """Sum physical adjacent WDDM counter differences within one server and GPU engine."""
14
+ # Microsoft defines active time as the difference between samples of a timer counter.
15
+ # https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types
16
+ totals = {}
17
+ for before, after in pairwise(samples):
18
+ if (before['pid'], before.get('process_start')) != (after['pid'], after.get('process_start')):
19
+ continue
20
+ wall = (datetime.fromisoformat(after['time'])-datetime.fromisoformat(before['time'])).total_seconds()
21
+ old = {e.get('instance',e['engine']):e for e in before['engines']}
22
+ old_counts = Counter(e.get('instance',e['engine']) for e in before['engines'])
23
+ new_counts = Counter(e.get('instance',e['engine']) for e in after['engines'])
24
+ for reading in after['engines']:
25
+ identity = reading.get('instance',reading['engine'])
26
+ if identity not in old:
27
+ continue
28
+ previous = old[identity]
29
+ total = totals.setdefault(reading['engine'],dict(engine=reading['engine'],seconds=0.,interval_seconds=0.,usable=0,discarded=0))
30
+ elapsed, active = wall, reading['seconds']-previous['seconds']
31
+ if 'running_ticks' in reading and 'running_ticks' in previous:
32
+ frequency = reading['frequency']
33
+ elapsed = (int(reading['sample_ticks'])-int(previous['sample_ticks']))/frequency
34
+ active = (int(reading['running_ticks'])-int(previous['running_ticks']))/frequency
35
+ if old_counts[identity]!=1 or new_counts[identity]!=1 or elapsed<=0 or not 0<=active<=elapsed:
36
+ total['discarded']+=1
37
+ continue
38
+ total['seconds']+=active
39
+ total['interval_seconds']+=elapsed
40
+ total['usable']+=1
41
+ return list(totals.values())
42
+
43
+
44
  def graph_assignments(path):
45
  """CUDA0 is the only permitted compute graph backend. CPU tokenization is outside these graphs."""
46
  digest, counts = hashlib.sha256(), Counter()
 
59
  """Attach the logs for each scored load to its raw receipt. Skip archived/pre-fix pilot calls."""
60
  for marker in (ORIGINAL_RESULTS/"new-judges").glob("*/result.json"):
61
  folder = marker.parent
62
+ receipt = read_json(marker)
63
+ if (folder/"gpu-graphs.json").is_file() or not (receipt.get("metrics") or receipt.get("latency")):
64
  continue
65
  logs = sorted((log_directory()/("new-judges-"+folder.name)).glob("*-server.log"))
66
  if not logs:
src/study/frozen_latency.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Clock-only eligibility check for the 27B deployment after a slowdown survives a fresh load."""
2
+
3
+
4
+ def slow_segment(calls, fits):
5
+ """Use recorded call times and identical-file loads. The policy never reads a prediction or label."""
6
+ loads = [r for r in fits if r['fit']]
7
+ measured = [r for r in calls if not r['id'].startswith('timing/')]
8
+ if not loads or not measured or measured[-1]['time'] <= loads[-1]['time']:
9
+ return None
10
+ def streak(group):
11
+ last = group[-3:]
12
+ return last if len(last)==3 and all(r['elapsed_seconds']>30 for r in last) else []
13
+ tail = streak(measured)
14
+ if not tail:
15
+ return None
16
+ previous = streak([r for r in measured if r['time']<loads[-1]['time']])
17
+ reloaded = len(loads)>=2 and loads[-1]['file']==loads[-2]['file'] and bool(previous)
18
+ evidence = {r['id']:{'id':r['id'],'time':r['time'],'seconds':r['elapsed_seconds']} for r in (*previous,*tail)}
19
+ return dict(reloaded=reloaded, file=loads[-1]['file'], evidence=list(evidence.values()),
20
+ calls=len(measured), latest_load=loads[-1]['time'])
21
+
22
+
23
+ class ReloadSlowJudge(RuntimeError):
24
+ """Release the native process and replay the incomplete case on the same weights."""
src/study/frozen_report.py CHANGED
@@ -3,6 +3,7 @@
3
  from functools import lru_cache
4
 
5
  from .frozen_audit import audit
 
6
  from .frozen_models import LOCAL_REPLICATES, MODELS
7
  from .storage import atomic, read_json, rows
8
  from .tables import markdown
@@ -56,7 +57,7 @@ def conversion_findings(root, results):
56
 
57
  def collect_frozen(root):
58
  results, failed = [], []
59
- for key in ("runtime-format-pilot",*[model.key for model in (*LOCAL_REPLICATES,*MODELS)],"confirm-control","confirm-winner"):
60
  for fit in read_json(root/key/"fit.json",[]):
61
  if not fit["fit"]:
62
  failed.append(dict(key=key,file=fit["file"],reason=fit["reason"].splitlines()[0]))
@@ -68,7 +69,7 @@ def collect_frozen(root):
68
  samples = list(rows(root/key/"gpu-telemetry.jsonl"))
69
  if samples:
70
  receipt["gpu"] = dict(peak_dedicated_mib=max(r["dedicated_bytes"] for r in samples)/2**20,
71
- engines=samples[-1]["engines"],last_sample=samples[-1]["time"])
72
  results.append({**receipt,"key":key})
73
  return dict(results=results,decision=read_json(root/"decision.json",{}),conversions=conversion_findings(root,results),fit_failures=failed)
74
 
@@ -112,6 +113,9 @@ def interpretation(study):
112
  parts += ["The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.",*study["conversions"]]
113
  decision = study["decision"]
114
  if decision:
 
 
 
115
  selected = next((r for r in study["results"] if r["key"]==decision.get("selected")),None)
116
  if selected:
117
  parts.append(f"The screen selected {selected['model']} ({selected['file']}) for independent confirmation against the original frozen model.")
@@ -186,10 +190,13 @@ def experiment_pages(study, dest):
186
  gpu = r.get("gpu")
187
  if gpu:
188
  method += ("\n\nWindows sampled the dedicated allocation of the llama.cpp process at up to "
189
- f"{gpu['peak_dedicated_mib']:,.0f} MiB. At its last sample, per-process engine running time was "
190
- +", ".join(f"{e['engine']} {e['seconds']:.1f} s" for e in gpu["engines"])+
191
- ". Engine counters include model loading. Sampling can end before the final kernel completes. "
192
- "[Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).")
 
 
 
193
  else:
194
  note += ["The archived attempt is excluded from accuracy comparisons. Its recorded termination reason is available in the raw evidence."]
195
  atomic(folder/"experiment.md",method+"\n")
 
3
  from functools import lru_cache
4
 
5
  from .frozen_audit import audit
6
+ from .frozen_device import measured_engine_times
7
  from .frozen_models import LOCAL_REPLICATES, MODELS
8
  from .storage import atomic, read_json, rows
9
  from .tables import markdown
 
57
 
58
  def collect_frozen(root):
59
  results, failed = [], []
60
+ for key in ("runtime-format-pilot",*[model.key for model in (*LOCAL_REPLICATES,*MODELS)],"q38-27b-iq1s","confirm-control","confirm-winner"):
61
  for fit in read_json(root/key/"fit.json",[]):
62
  if not fit["fit"]:
63
  failed.append(dict(key=key,file=fit["file"],reason=fit["reason"].splitlines()[0]))
 
69
  samples = list(rows(root/key/"gpu-telemetry.jsonl"))
70
  if samples:
71
  receipt["gpu"] = dict(peak_dedicated_mib=max(r["dedicated_bytes"] for r in samples)/2**20,
72
+ engines=measured_engine_times(samples),last_sample=samples[-1]["time"])
73
  results.append({**receipt,"key":key})
74
  return dict(results=results,decision=read_json(root/"decision.json",{}),conversions=conversion_findings(root,results),fit_failures=failed)
75
 
 
113
  parts += ["The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.",*study["conversions"]]
114
  decision = study["decision"]
115
  if decision:
116
+ if decision.get('original_completed_selection'):
117
+ old = next(r for r in study['results'] if r['key']==decision['original_completed_selection'])
118
+ parts.append(f"Among the completed original screens, {old['model']} ranked first. The amended ranking also considers the separately restarted 27B file when it completes.")
119
  selected = next((r for r in study["results"] if r["key"]==decision.get("selected")),None)
120
  if selected:
121
  parts.append(f"The screen selected {selected['model']} ({selected['file']}) for independent confirmation against the original frozen model.")
 
190
  gpu = r.get("gpu")
191
  if gpu:
192
  method += ("\n\nWindows sampled the dedicated allocation of the llama.cpp process at up to "
193
+ f"{gpu['peak_dedicated_mib']:,.0f} MiB. Measured active time between usable adjacent samples was "
194
+ +", ".join(f"{e['engine']} {e['seconds']:.1f} s across {e['interval_seconds']:.1f} s ({e['usable']} usable intervals, {e['discarded']} discarded)" for e in gpu["engines"])+
195
+ ". The sampling window can miss startup and final kernels. Discontinuities supply no time estimate. "
196
+ "[Windows timer counters](https://learn.microsoft.com/en-us/windows/win32/wmisdk/timer-algorithm-counter-types).")
197
+ elif r.get('latency'):
198
+ note += ["The throughput decision used recorded wall times before and after a reload of the same model. Each row is a completed call.",
199
+ markdown(['Call ID','Completion time (UTC)','Seconds'],[[c['id'],c['time'],f"{c['seconds']:.1f}"] for c in r['latency']['evidence']])]
200
  else:
201
  note += ["The archived attempt is excluded from accuracy comparisons. Its recorded termination reason is available in the raw evidence."]
202
  atomic(folder/"experiment.md",method+"\n")
src/study/frozen_suite.py CHANGED
@@ -8,6 +8,7 @@ from .curriculum import curriculum_problems
8
  from .domain import Problem
9
  from .frozen_cases import CaseRunner, metrics, paired_confirmation
10
  from .frozen_gpu import BUILD, CONTEXT, LIMIT, GPUFitError, LocalCUDA, weight_file
 
11
  from .frozen_models import LOCAL_REPLICATES, MODELS, SMALLER_FILES
12
  from .storage import ORIGINAL_RESULTS, Journal, log_directory, read_json, rows, stamp, write_json
13
 
@@ -45,6 +46,17 @@ def run_one(key, model, phase, confirmed_file=None):
45
  write_json(marker,result)
46
  journal.event("result",**result)
47
  return result
 
 
 
 
 
 
 
 
 
 
 
48
  with ExitStack() as stack:
49
  for config in choices:
50
  path = weight_file(config)
@@ -89,6 +101,8 @@ def run_one(key, model, phase, confirmed_file=None):
89
  if len(natural)!=32 or len({r["key"] for r in natural})!=32 or {p.key for p in pool}&{r["key"] for r in natural}:
90
  raise ValueError("Expected 32 unique archived traces disjoint from the balanced screen")
91
  def progress():
 
 
92
  write_json(folder/"progress.json",dict(time=stamp(),status="Evaluating",model=config.title,phase=phase,
93
  file=config.filename,calls=len(runner.calls),target=4+3*len(natural)+10*len(pool),
94
  cases=len(runner.completed),timing_seconds=timing))
@@ -120,7 +134,12 @@ def campaign(publish=False):
120
  """Release every measured configuration even if its model only completed a fit/timing pilot."""
121
  from .cli import study_lock,worker
122
  def stage(key,model,phase,confirmed_file=None):
123
- outcome = run_one(key,model,phase,confirmed_file)
 
 
 
 
 
124
  if publish:
125
  worker("publish","--milestone","new-judges-"+key)
126
  else:
@@ -132,26 +151,35 @@ def campaign(publish=False):
132
  for m in LOCAL_REPLICATES:
133
  stage(m.key,m,"deployment replicate")
134
  results = {m.key:stage(m.key,m,"screen") for m in MODELS}
135
- eligible = [m for m in MODELS[1:] if results[m.key]["status"]=="Complete"]
 
 
 
 
 
 
136
  if not eligible or results[MODELS[0].key]["status"]!="Complete":
137
  decision = dict(status="No matched confirmation",result="No eligible newer model and same-runtime control pair")
138
  else:
139
- def rank(m):
140
- result = results[m.key]
141
  return (result["metrics"]["twins"]["visible"],result["metrics"]["balanced"]["depths"][2]["accuracy"],
142
  -result["cost"]["elapsed_seconds"])
143
  winner = max(eligible,key=rank)
144
- confirmation = [stage(key,m,"confirmation",results[m.key]["file"]) for key,m in
145
- (("confirm-control",MODELS[0]),("confirm-winner",winner))]
146
  if not all(r["status"]=="Complete" for r in confirmation):
147
- decision = dict(status="Confirmation incomplete",selected=winner.key,result="No paired confirmation estimate")
148
  else:
149
  def cases(key):
150
  return {r["id"]:r for r in rows(ROOT/key/"cases.jsonl")}
151
  estimates = paired_confirmation(cases("confirm-winner"),cases("confirm-control"))
152
  gate = all(e["delta"]>0 for e in estimates.values())
153
- decision = dict(status="Confirmed comparison",selected=winner.key,estimates=estimates,online_gate=gate,
154
  result="Online comparison eligible on a later day" if gate else "Online improvement gate did not pass")
 
 
 
155
  write_json(ROOT/"decision.json",dict(time=stamp(),**decision))
156
  if publish:
157
  worker("publish","--milestone","new-judges-decision")
 
8
  from .domain import Problem
9
  from .frozen_cases import CaseRunner, metrics, paired_confirmation
10
  from .frozen_gpu import BUILD, CONTEXT, LIMIT, GPUFitError, LocalCUDA, weight_file
11
+ from .frozen_latency import ReloadSlowJudge, slow_segment
12
  from .frozen_models import LOCAL_REPLICATES, MODELS, SMALLER_FILES
13
  from .storage import ORIGINAL_RESULTS, Journal, log_directory, read_json, rows, stamp, write_json
14
 
 
46
  write_json(marker,result)
47
  journal.event("result",**result)
48
  return result
49
+ monitor_latency = key in ('q38-27b','q38-27b-iq1s') or (key=='confirm-winner' and model.key=='q38-27b')
50
+ if monitor_latency and len([r for r in fit_attempts if r['fit']])>=2:
51
+ history = list(rows(folder/'calls.jsonl'))
52
+ evidence = slow_segment(history,fit_attempts)
53
+ if evidence and evidence['reloaded']:
54
+ pilot = [r for r in history if r['id'].startswith('timing/')]
55
+ timed = mean(r['elapsed_seconds'] for r in pilot)
56
+ cost = {k:sum(r[k] for r in history if not r['id'].startswith('timing/')) for k in ('input_tokens','output_tokens','elapsed_seconds')}
57
+ description = (f"The {len(pilot)} pilot calls averaged {timed:.2f} seconds. Stopped after {evidence['calls']} scored requests. Consecutive requests exceeded the 30-second ceiling "
58
+ "and the slowdown persisted after reloading the same file. No cohort accuracy estimate")
59
+ return finish('Incomplete, sustained latency',description,file=evidence['file'],latency=evidence,timing_seconds=timed,cost=cost)
60
  with ExitStack() as stack:
61
  for config in choices:
62
  path = weight_file(config)
 
101
  if len(natural)!=32 or len({r["key"] for r in natural})!=32 or {p.key for p in pool}&{r["key"] for r in natural}:
102
  raise ValueError("Expected 32 unique archived traces disjoint from the balanced screen")
103
  def progress():
104
+ if monitor_latency and slow_segment(runner.calls.values(),fit_attempts):
105
+ raise ReloadSlowJudge(config.filename)
106
  write_json(folder/"progress.json",dict(time=stamp(),status="Evaluating",model=config.title,phase=phase,
107
  file=config.filename,calls=len(runner.calls),target=4+3*len(natural)+10*len(pool),
108
  cases=len(runner.completed),timing_seconds=timing))
 
134
  """Release every measured configuration even if its model only completed a fit/timing pilot."""
135
  from .cli import study_lock,worker
136
  def stage(key,model,phase,confirmed_file=None):
137
+ while True:
138
+ try:
139
+ outcome = run_one(key,model,phase,confirmed_file)
140
+ break
141
+ except ReloadSlowJudge:
142
+ continue
143
  if publish:
144
  worker("publish","--milestone","new-judges-"+key)
145
  else:
 
151
  for m in LOCAL_REPLICATES:
152
  stage(m.key,m,"deployment replicate")
153
  results = {m.key:stage(m.key,m,"screen") for m in MODELS}
154
+ by_key = {m.key:m for m in MODELS}
155
+ original = results['q38-27b']
156
+ smaller = SMALLER_FILES['q38-27b'][-1][0]
157
+ if original['status']=='Incomplete, sustained latency' and original['file']!=smaller:
158
+ by_key['q38-27b-iq1s'] = by_key['q38-27b']
159
+ results['q38-27b-iq1s'] = stage('q38-27b-iq1s',by_key['q38-27b'],'amended screen',smaller)
160
+ eligible = [key for key in by_key if key!=MODELS[0].key and results[key]["status"]=="Complete"]
161
  if not eligible or results[MODELS[0].key]["status"]!="Complete":
162
  decision = dict(status="No matched confirmation",result="No eligible newer model and same-runtime control pair")
163
  else:
164
+ def rank(key):
165
+ result = results[key]
166
  return (result["metrics"]["twins"]["visible"],result["metrics"]["balanced"]["depths"][2]["accuracy"],
167
  -result["cost"]["elapsed_seconds"])
168
  winner = max(eligible,key=rank)
169
+ confirmation = [stage(key,by_key[source],"confirmation",results[source]["file"]) for key,source in
170
+ (("confirm-control",MODELS[0].key),("confirm-winner",winner))]
171
  if not all(r["status"]=="Complete" for r in confirmation):
172
+ decision = dict(status="Confirmation incomplete",selected=winner,result="No paired confirmation estimate")
173
  else:
174
  def cases(key):
175
  return {r["id"]:r for r in rows(ROOT/key/"cases.jsonl")}
176
  estimates = paired_confirmation(cases("confirm-winner"),cases("confirm-control"))
177
  gate = all(e["delta"]>0 for e in estimates.values())
178
+ decision = dict(status="Confirmed comparison",selected=winner,estimates=estimates,online_gate=gate,
179
  result="Online comparison eligible on a later day" if gate else "Online improvement gate did not pass")
180
+ original_eligible = [key for key in eligible if key!='q38-27b-iq1s']
181
+ if 'q38-27b-iq1s' in results and original_eligible:
182
+ decision['original_completed_selection'] = max(original_eligible,key=rank)
183
  write_json(ROOT/"decision.json",dict(time=stamp(),**decision))
184
  if publish:
185
  worker("publish","--milestone","new-judges-decision")
src/study/inventory.py CHANGED
@@ -167,6 +167,7 @@ def inventory(root, profile, observed, contrasts=None):
167
  ("runtime-format-pilot","Qwen3.5-9B server-output formatting diagnostic",False),
168
  *((m.key,m.title+" frozen, Ollama Q4_K_M deployment replicate",False) for m in LOCAL_REPLICATES),
169
  *((m.key, m.title+" frozen, same-runtime screen", False) for m in MODELS),
 
170
  ("confirm-control", "Frozen Qwen2.5 control, fresh confirmation", True),
171
  ("confirm-winner", "Selected newer frozen judge, fresh confirmation", True),
172
  ("winner-d2", "Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17", True),
 
167
  ("runtime-format-pilot","Qwen3.5-9B server-output formatting diagnostic",False),
168
  *((m.key,m.title+" frozen, Ollama Q4_K_M deployment replicate",False) for m in LOCAL_REPLICATES),
169
  *((m.key, m.title+" frozen, same-runtime screen", False) for m in MODELS),
170
+ ("q38-27b-iq1s", "Frozen 27B IQ1_S, fresh screen conditional on sustained latency at higher precision", True),
171
  ("confirm-control", "Frozen Qwen2.5 control, fresh confirmation", True),
172
  ("confirm-winner", "Selected newer frozen judge, fresh confirmation", True),
173
  ("winner-d2", "Fresh Qwen2.5 solver, selected frozen J2 reward, seed 17", True),
tests/test_frozen_screen.py CHANGED
@@ -137,3 +137,53 @@ def test_failed_gpu_fit_is_visible_before_any_model_answers(tmp_path):
137
  assert not data["results"]
138
  assert data["fit_failures"] == [{"key":"q38-27b", "file":"larger.gguf", "reason":"Insufficient dedicated memory"}]
139
  assert "larger.gguf" in " ".join(interpretation(data))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  assert not data["results"]
138
  assert data["fit_failures"] == [{"key":"q38-27b", "file":"larger.gguf", "reason":"Insufficient dedicated memory"}]
139
  assert "larger.gguf" in " ".join(interpretation(data))
140
+
141
+
142
+ def test_gpu_engine_time_uses_physical_deltas_and_excludes_counter_resets():
143
+ from study.frozen_device import measured_engine_times
144
+ def sample(second,pid,counter):
145
+ return {"time":f"2026-11-27T00:00:{second:02d}+00:00", "pid":pid,
146
+ "engines":[{"engine":"3D","seconds":counter}]}
147
+ observations = [sample(0,7,1), sample(5,7,3), sample(10,7,1e12), sample(15,7,1e12+4),
148
+ sample(20,7,1), sample(25,11,100), sample(30,11,104)]
149
+ total, = measured_engine_times(observations)
150
+ assert total == {"engine":"3D", "seconds":10, "interval_seconds":15, "usable":3, "discarded":2}
151
+
152
+
153
+ def test_sustained_latency_requires_a_measured_slow_call_after_reload():
154
+ from study.frozen_latency import slow_segment
155
+ fits = [{"fit":True,"file":"same.gguf","time":"00"}]
156
+ calls = [{"id":f"fixed/{i}","time":f"0{i}","elapsed_seconds":40} for i in (1,2,3)]
157
+ assert not slow_segment(calls,fits)['reloaded']
158
+ fits.append({"fit":True,"file":"same.gguf","time":"04"})
159
+ assert slow_segment(calls,fits) is None
160
+ later = {"id":"fixed/5","time":"05","elapsed_seconds":41}
161
+ report = slow_segment([*calls,later],fits)
162
+ assert report['reloaded'] and len(report['evidence'])==4
163
+ assert slow_segment([*calls,{**later,'elapsed_seconds':2}],fits) is None
164
+
165
+
166
+ def test_fresh_throughput_fallback_can_win_without_its_partial_predecessor(tmp_path,monkeypatch):
167
+ from contextlib import nullcontext
168
+ from study import cli, frozen_device, frozen_suite as suite
169
+ from study.storage import write_json
170
+ observed=[]
171
+ def run(key,model,phase,confirmed_file=None):
172
+ observed.append((key,model.key,confirmed_file))
173
+ if key=='q38-27b':
174
+ return dict(status='Incomplete, sustained latency',file='earlier.gguf')
175
+ if key.startswith('confirm-'):
176
+ write_json(tmp_path/key/'result.json',{'status':'Complete'})
177
+ rate = {'q35-9b':1,'q35-4b':2,'q38-27b-iq1s':3}.get(key,0)
178
+ return dict(status='Complete',file=confirmed_file or model.filename,cost={'elapsed_seconds':1},
179
+ metrics={'twins':{'visible':rate},'balanced':{'depths':[{}, {}, {'accuracy':.5}]}})
180
+ monkeypatch.setattr(suite,'ROOT',tmp_path)
181
+ monkeypatch.setattr(suite,'run_one',run)
182
+ monkeypatch.setattr(suite,'paired_confirmation',lambda *args:{'twins':{'delta':0},'balanced_verdict':{'delta':0}})
183
+ monkeypatch.setattr(cli,'study_lock',lambda name:nullcontext())
184
+ monkeypatch.setattr(cli,'worker',lambda *args:None)
185
+ monkeypatch.setattr(frozen_device,'close_device_records',lambda:None)
186
+ decision=suite.campaign()
187
+ assert decision['original_completed_selection']=='q35-4b' and decision['selected']=='q38-27b-iq1s'
188
+ assert ('confirm-winner','q38-27b',suite.SMALLER_FILES['q38-27b'][-1][0]) in observed
189
+ assert not decision['online_gate']