diff --git a/bench/bench-node.mjs b/bench/bench-node.mjs new file mode 100644 index 0000000..dd4796f --- /dev/null +++ b/bench/bench-node.mjs @@ -0,0 +1,142 @@ +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Verification-only HTTP/SSE instrument, derived from bench.py's request contract. +// Records raw monotonic nanoseconds. Rates and statistics belong in Wolfram. +import http from 'node:http'; +import fs from 'node:fs'; +import {StringDecoder} from 'node:string_decoder'; +import {randomUUID} from 'node:crypto'; +import {pathToFileURL} from 'node:url'; +import {setTimeout as delay} from 'node:timers/promises'; + +export async function oneRequest({port, model, prompt, maxTokens, timeoutMs=1800000}) { + const row = {time_unit:'nanoseconds', clock:'process.hrtime.bigint', + t_send_ns:null, t_first_ns:null, t_last_ns:null, chunks:0, text:'', + usage:null, finish_reason:null, error:null, http_status:null, busy_retries:0}; + const body = JSON.stringify({model, messages:[{role:'user',content:prompt}], + stream:true, stream_options:{include_usage:true}, temperature:0, top_p:1, + max_tokens:maxTokens, seed:0, chat_template_kwargs:{enable_thinking:false}}); + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), timeoutMs); + const signal = controller.signal; + const connect = () => new Promise((resolve,reject) => { + const req = http.request({host:'127.0.0.1',port,path:'/v1/chat/completions', + method:'POST',agent:false,signal,headers:{'Content-Type':'application/json', + Accept:'text/event-stream'}}, resolve); + req.on('error',reject); + req.end(body); + }); + try { + row.t_send_ns = process.hrtime.bigint().toString(); + let response; + while (true) { + response = await connect(); + row.http_status = response.statusCode; + if (![429,503].includes(response.statusCode)) break; + response.resume(); + response.destroy(); + row.busy_retries++; + await delay(50,undefined,{signal}); + } + if (response.statusCode !== 200) { + response.destroy(); + throw new Error('HTTP '+response.statusCode); + } + const decoder = new StringDecoder('utf8'); + let pending = '', done = false; + try { + stream: for await (const chunk of response) { + pending += decoder.write(chunk); + while (pending.includes('\n')) { + const boundary = pending.indexOf('\n'); + const line = pending.slice(0,boundary).trim(); + pending = pending.slice(boundary+1); + if (!line.startsWith('data:')) continue; + const payload = line.slice(5).trim(); + if (payload === '[DONE]') { done=true; break stream; } + let event; + try { event=JSON.parse(payload); } + catch { throw new Error('malformed SSE JSON'); } + if (event.error) throw new Error('server error event'); + const now = process.hrtime.bigint().toString(); + if (event.usage) row.usage=event.usage; + for (const choice of event.choices || []) { + const delta=choice.delta || {}; + for(const key of ['content','reasoning_content']) + if(delta[key]!=null && typeof delta[key]!=='string') + throw new Error('invalid text delta'); + const piece=(delta.content || '')+(delta.reasoning_content || ''); + if (typeof piece !== 'string') throw new Error('invalid text delta'); + if (piece) { + if (row.t_first_ns === null) row.t_first_ns=now; + row.t_last_ns=now; + row.chunks++; + row.text+=piece; + } + if (choice.finish_reason) row.finish_reason=choice.finish_reason; + } + } + } + } finally { response.destroy(); } + if (!done) throw new Error('stream ended without DONE'); + if (row.t_first_ns === null) throw new Error('no content received'); + if (!row.finish_reason) throw new Error('missing finish reason'); + if (!Number.isInteger(row.usage?.prompt_tokens) || !Number.isInteger(row.usage?.completion_tokens)) + throw new Error('missing token usage'); + } catch (error) { row.error=error.message; } + finally { clearTimeout(timer); } + return row; +} + +async function main() { + const args={}; + const flags=new Set(['port','model','arm','round','metric','prompts','select','concurrency', + 'max-tokens','warmup','reps','out','cell-run']); + for (let i=2;ix.trim()).map(JSON.parse); + if(args.select) prompts=args.select.split(',').map(id=>{ + const p=prompts.find(p=>p.id===id); if(!p) throw new Error('missing prompt '+id); return p; + }); + if(!prompts.length || prompts.some(p=>typeof p.id!=='string'||typeof p.text!=='string')) + throw new Error('invalid prompt file'); + const output=fs.openSync(args.out,'wx'); // Preserve all prior runs; never silently append. + let failed=false; + try { + for(let k=0;kprompts[(k*args.concurrency+i)%prompts.length]); + const batchId=randomUUID(); + const before=fs.readFileSync('/proc/loadavg','utf8').trim(); + const wallUtc=new Date().toISOString(); + const rows=await Promise.all(selected.map(p=>oneRequest({port:args.port,model:args.model, + prompt:(args.nonce?'Request id '+randomUUID().replaceAll('-','')+'. Ignore this line.\n':'')+p.text, + maxTokens:args['max-tokens']}))); + const after=fs.readFileSync('/proc/loadavg','utf8').trim(); + for(let i=0;i{console.error(error.message);process.exitCode=1;}); diff --git a/bench/test-bench-node.mjs b/bench/test-bench-node.mjs new file mode 100644 index 0000000..9afbcfd --- /dev/null +++ b/bench/test-bench-node.mjs @@ -0,0 +1,97 @@ +// Verification-only synthetic HTTP controls. No model or GPU required. +import test from 'node:test'; +import assert from 'node:assert/strict'; +import http from 'node:http'; +import fs from 'node:fs'; +import os from 'node:os'; +import path from 'node:path'; +import {spawn} from 'node:child_process'; +import {fileURLToPath} from 'node:url'; +import {oneRequest} from './bench-node.mjs'; + +const event=value=>'data: '+JSON.stringify(value)+'\r\n\r\n'; +const content=text=>event({choices:[{delta:{content:text},finish_reason:null}]}); +const finish=event({choices:[{delta:{},finish_reason:'length'}],usage:{prompt_tokens:5,completion_tokens:2}}); +const body=content('héllo')+finish+'data: [DONE]\r\n\r\n'; +async function server(handler,run) { + const s=http.createServer((req,res)=>{ + let input='';req.on('data',chunk=>input+=chunk); + req.on('end',()=>Promise.resolve(handler(req,res,JSON.parse(input))).catch(e=>res.destroy(e))); + }); + await new Promise(resolve=>s.listen(0,'127.0.0.1',resolve)); + try { return await run(s.address().port); } + finally { s.closeAllConnections(); await new Promise(resolve=>s.close(resolve)); } +} +const call=(port,extra={})=>oneRequest({port,model:'fixture',prompt:'public fixture',maxTokens:2,...extra}); + +test('request contract, fragmented UTF-8/SSE, reasoning, usage and raw clocks',async()=>{ + await server((req,res,b)=>{ + assert.equal(req.url,'/v1/chat/completions');assert.equal(req.method,'POST'); + assert.deepEqual(b,{model:'fixture',messages:[{role:'user',content:'public fixture'}],stream:true, + stream_options:{include_usage:true},temperature:0,top_p:1,max_tokens:2,seed:0, + chat_template_kwargs:{enable_thinking:false}}); + res.writeHead(200,{'Content-Type':'text/event-stream'}); + const bytes=Buffer.from(': ignored\r\n'+event({choices:[{delta:{reasoning_content:'réason '}}]})+body); + for(const byte of bytes) res.write(Buffer.from([byte])); + res.end(); + },async port=>{ + const row=await call(port);assert.equal(row.error,null);assert.equal(row.text,'réason héllo'); + assert.equal(row.chunks,2);assert.equal(row.finish_reason,'length'); + assert.deepEqual(row.usage,{prompt_tokens:5,completion_tokens:2}); + for(const key of ['t_send_ns','t_first_ns','t_last_ns']) assert.match(row[key],/^\d+$/); + }); +}); +test('busy retries retain one request start and eventually succeed',async()=>{ + let requests=0; + await server((req,res)=>{requests++;if(requests===1){res.writeHead(503);res.end('busy');} + else{res.writeHead(200);res.end(body);}},async port=>{ + const row=await call(port);assert.equal(row.error,null);assert.equal(row.busy_retries,1); + assert.equal(row.http_status,200);assert.equal(requests,2); + }); +}); +for(const [name,payload,message] of [ + ['malformed','data: {bad}\n\n','malformed SSE JSON'], + ['truncated',content('partial')+finish,'stream ended without DONE'], + ['missing usage',content('x')+event({choices:[{finish_reason:'stop'}]})+'data: [DONE]\n','missing token usage'], + ['no content',finish+'data: [DONE]\n','no content received'], + ['server error',event({error:{message:'fixture'}}),'server error event'], + ['bad delta',event({choices:[{delta:{content:{bad:true}}}]}),'invalid text delta'], +]) test(name+' is recorded as a failed request',async()=>{ + await server((req,res)=>{res.writeHead(200);res.end(payload);},async port=>{ + const row=await call(port);assert.equal(row.error,message); + }); +}); +test('non-success HTTP and overall retry timeout refuse success',async()=>{ + await server((req,res)=>{res.writeHead(400);res.end('fixture');},async port=>{ + assert.equal((await call(port)).error,'HTTP 400'); + }); + await server((req,res)=>{res.writeHead(429);res.end('busy');},async port=>{ + const row=await call(port,{timeoutMs:50});assert(row.error);assert.equal(row.t_first_ns,null); + }); +}); +const client=fileURLToPath(new URL('./bench-node.mjs',import.meta.url)); +const cli=args=>new Promise(resolve=>{ + const child=spawn(process.execPath,[client,...args],{stdio:['ignore','pipe','pipe']}); + let stderr='';child.stderr.on('data',x=>stderr+=x);child.on('close',status=>resolve({status,stderr})); +}); +test('CLI writes all concurrent rows, nonce, warmup flags, and refuses overwrite',async()=>{ + const root=fs.mkdtempSync(path.join(os.tmpdir(),'bench-node-control-')); + try { + const prompts=path.join(root,'prompts.jsonl'),out=path.join(root,'rows.jsonl'); + fs.writeFileSync(prompts,'{"id":"p0","text":"zero"}\n{"id":"p1","text":"one"}\n'); + const seen=[]; + await server((req,res,b)=>{seen.push(b.messages[0].content);res.writeHead(200);res.end(body);},async port=>{ + const args=['--port',String(port),'--model','fixture','--arm','CONTROL','--round','R0', + '--metric','decode','--prompts',prompts,'--max-tokens','2','--concurrency','2', + '--warmup','1','--reps','1','--nonce','--out',out]; + assert.equal((await cli(args)).status,0); + const rows=fs.readFileSync(out,'utf8').trim().split('\n').map(JSON.parse); + assert.equal(rows.length,4);assert.deepEqual(rows.map(r=>r.warmup),[true,true,false,false]); + assert.deepEqual(rows.map(r=>r.prompt_id),['p0','p1','p0','p1']); + assert(rows.every(r=>r.error===null&&r.client==='node-sse-v1'&&r.concurrency===2)); + assert(seen.every(t=>/^Request id [a-f0-9]+\. Ignore this line\.\n/.test(t))); + assert.equal(new Set(seen).size,4); + assert.notEqual((await cli(args)).status,0);assert.equal(seen.length,4); + }); + } finally { fs.rmSync(root,{recursive:true,force:true}); } +}); diff --git a/q35-9b/ORDERED-WEIGHTS.md b/q35-9b/ORDERED-WEIGHTS.md new file mode 100644 index 0000000..d06ef60 --- /dev/null +++ b/q35-9b/ORDERED-WEIGHTS.md @@ -0,0 +1,65 @@ +# Ordered weight verification + +The old sorted-value checks remain historical evidence. They cannot establish +the tensor layout: see `results/WEIGHTS.md.correction.json` and its Wolfram +counterexample. This check compares named tensors at their expected positions. + +The converter reference is llama.cpp +`7aca0d2ea8d92b56911233b822db01f9fbb1ae50`, particularly +`conversion/qwen.py` and `gguf-py/gguf/tensor_mapping.py`. The checker validates +Q/K prefixes, grouped-to-tiled V-head rows, output-projection columns, conv1d +channels, scalar head parameters, widening and zero-centred norm folding. +Unknown names, types, shapes, malformed lengths and missing coverage refuse the +check. Model files are opened read-only. + +`tools/weight-files.mjs` and `tools/ordered-weights.mjs` only catalogue and move +bytes. Arithmetic transformations call existing seeded-Omega `bin`/`sexp` units +through `weight-numeric-glue.c`. For the exact converter exponential, the final +check uses the pinned converter's ATen CPU `exp` through `torch-cpu-exp.cpp`. +This is an independent verification oracle, never an engine/build dependency. +No Python process or GPU model is started by that helper. The library does link +libcudart; this is not a claim that its process has no NVIDIA libraries. + +The verification dependency is Torch `2.14.0a0+b2c75dd062.nv26.09` in image digest +`557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2`. +Its role is to reproduce the converter's CPU numerical function. No Omega +replacement is planned for this independent oracle. Production remains outside +this check. Build logs record the host/container compilers and binary hashes. + +The initial Omega exponential reference differs from the converter's values by +at most one binary32 ULP in the observed inputs, as calculated by the retained +Wolfram query `exp-oracle-difference.wl`. That attempt remains a mismatch record. +No tolerance was widened: the final comparison uses exact bytes from the pinned +converter library. Both numeric helpers also match the retained independent +Wolfram control vectors and refuse malformed byte inputs. + +## Reproduce + +Use the same pinned model files and compiler/bridge/backend artifacts recorded +in `resumption.json`. Build the verifier against that Omega kernel object: + +```sh +sh q35-9b/tools/build-weight-oracles.sh NEW_ORACLE_DIR /absolute/path/omega_ggml_kernels.o +node --test q35-9b/tools/test-ordered-weights.mjs +STACK_TORCH_ORACLE_DIR=/absolute/NEW_ORACLE_DIR node q35-9b/tools/ordered-weights.mjs \ + HF_DIR BF16_GGUF NEW_ORACLE_DIR/weight-numeric-glue NEW_REPORT.json \ + --negexp-helper="$PWD/q35-9b/tools/torch-cpu-exp.sh" +``` + +The build and report refuse existing outputs. The optional `--only=NAME` is a +partial diagnostic and never returns a whole-model verdict. `--mutant-order` +deliberately leaves the original head order in the expected buffer; it preserves +the values but must fail against a genuinely reordered target tensor. + +## Observed scope + +The source-bound local report `ordered-weight-check-3.json` compares all 427 +named text tensors exactly, with no mismatches. The 15 GGUF MTP tensors are +explicitly excluded from plain decoding, as in the original protocol; image and +MTP source tensors are separately listed. The real-tensor wrong-order mutant +for `blk.0.attn_qkv.weight` fails the intended byte comparison. Synthetic parser, +mapping and corruption controls pass. + +This verifies the named file transformations for the pinned checkpoint. It does +not prove every inference operation, full backend model qualification, output +correctness, deployment, or performance. Those gates remain separate. diff --git a/q35-9b/PROTOCOL.md b/q35-9b/PROTOCOL.md new file mode 100644 index 0000000..2dba724 --- /dev/null +++ b/q35-9b/PROTOCOL.md @@ -0,0 +1,248 @@ +# Qwen3.5-9B on one GB10: our Omega engine, stock llama.cpp on CUDA, and stock llama.cpp on Omega + +Version 3, 2026-10-27, frozen before any timed number exists. Changes: +- v1 (sha256 d57ff4dc…) put OURS FP8 against llama.cpp Q8_0. That breaks the first ask in ggml-org/llama.cpp discussion #31092, so v1 is withdrawn. +- v2 made the headline pair BF16 against BF16. +- v3 adds Drake's third configuration (stock llama.cpp on our GPU stack with no NVIDIA CUDA user-space libraries) and an independent correctness oracle (HF transformers). + +No timed cell has run under any version. The GPU runs so far were untimed: the BF16 llama.cpp reference capture, the OURS FP8 and BF16 correctness checks, and the HF oracle. + +Drake in chat, 2026-10-27: +- "run a test between Llama CPP and our system, Omega CUDA++ ... use the Qwen 3.5 9B model" +- "make sure we are doing it collaboratively in the repo with Llama CPP ... Make sure we're doing what she asked" +- "Omega versus Llama CPP (pure Omega); Pure Llama with CUDA; Omega and Llama together with no CUDA" + +## The three configurations +| # | Configuration | Arms | Same-file pairing | +|---|---|---|---| +| 1 | Pure Omega: our own engine, no llama.cpp, no NVIDIA user-space libs | OURS16 | OURS16 vs LLAMA16: same BF16 values. Layout differs, see results/WEIGHTS.md | +| 2 | Pure llama.cpp on NVIDIA CUDA (stock release b11913) | LLAMA16, LLAMA8 | the baseline for 1 and 3 | +| 3 | Stock llama.cpp with our GPU backend (aien-dev/ggml-omega `OmegaGB10`), no libggml-cuda, no NVIDIA user-space libs | LLOMEGA8, LLOMEGA16 if BF16 lands | LLOMEGA8 vs LLAMA8 and LLOMEGA16 vs LLAMA16: the identical GGUF file, identical llama.cpp front end. Only the GPU backend differs | + +In configuration 3, any op ggml-omega does not take runs on ggml's CPU backend. The op placement table (GPU or CPU, share of decode time) is published with the numbers. A slow result there is reported as it is. + +## What the llama.cpp side asked for (SIDDARTHAREDDY8, discussion #31092, 2026-10-24) and how this run meets it +| Ask | Here | +|---|---| +| Same model file, same quantization, same prompt, same context size | Config 3 against config 2 uses the identical GGUF file (Q8_0, and BF16 if supported), so this ask is met exactly. Config 1 cannot read GGUF, so it uses the HF safetensors the GGUF was converted from. Every tensor was checked to hold the same values (130 byte-identical, the rest reordered or exactly transformed by the converter: results/WEIGHTS.md). Same prompts, same chat template, context 32768 for every arm. | +| Prompt processing and generation reported separately | pp tok/s and tg tok/s are separate columns. They are never blended. | +| State the offload | LLAMA*: `-ngl 999`, all layers on the GPU, verified from the load log. LLOMEGA*: `-ngl 999` onto the OmegaGB10 device, plus a per-op table of what ran on the GPU and what fell back to the CPU. OURS*: every layer on the GB10 GPU, with embedding lookup and sampling locations stated from the code. | +| Repetitions and spread | 3 rounds × 3 reps per cell (after warm-ups). Reported as mean ± sd and median with min..max. llama-bench `-r 5` is included as a cross-check. | +| Correctness before speed | The `agree` cell runs first: greedy tokens from both arms on the same 16 prompts, with the first divergence index reported. Garbage output voids that arm. | +| Freeze machine state, publish the recipe | Recorded per session: driver version, GPU clocks and power state (`nvidia-smi -q -d CLOCK,POWER,PERFORMANCE`), load and other processes. Exact commands, llama.cpp b11913 version string, both commits, and every file hash are published in the repo. | +| Disclose that the stacks differ | LLAMA* uses NVIDIA's user-space libraries (libcudart, libcublas, libcuda). OURS* and LLOMEGA* load none of them, which is checked from /proc/PID/maps. Every arm uses NVIDIA's open kernel module and GSP firmware. | + +## Arms +| Arm | Engine | Weights | Role | +|---|---|---|---| +| OURS16 | aien-serve-http `--engine omega` (sc #790 + omega-mv #905 build) | BF16 safetensors, HF Qwen/Qwen3.5-9B rev c2022362 | headline, config 1 | +| LLAMA16 | llama-server b11913, CUDA 13.4 runtime, `-ngl 999 -fa on` | BF16 GGUF, sha256 5d6fe481… | headline, config 2 | +| LLAMA8 | same binary | Q8_0 GGUF, sha256 e1dc8c27… | headline, config 2 (pair for LLOMEGA8) | +| LLOMEGA8 | stock llama-server, backend dir = CPU + libggml-omega.so only | the same Q8_0 GGUF file | headline, config 3 | +| LLOMEGA16 | same as LLOMEGA8 | the same BF16 GGUF file | headline, config 3, only if ggml-omega gains BF16 MUL_MAT; otherwise NOT_RUN | +| OURS8 | aien-serve-http, FP8 block-128 checkpoint | FP8 | reference only, never a headline (no llama.cpp FP8 type exists) | + +## Correctness oracle +HF transformers 5.16.1 (nvcr.io/nvidia/vllm:26.09-py3) runs greedy BF16 on the same 16 prompts with the same chat template and thinking off: results/ref/HF-ORACLE.jsonl. It is the model's reference implementation and shares no code with any arm. Every arm's `agree` output is compared with the oracle and with LLAMA16: first divergence in characters and in tokens, using the model's tokenizer. + +## Proof of "no NVIDIA user-space libraries" +For OURS* and LLOMEGA*, the shared objects the running server mapped are captured from /proc/PID/maps (maps-so.txt). It must list none of libcuda, libcudart, libcublas, libcublasLt, libnvrtc, libnvidia-ptxjitcompiler. LLAMA* is the negative control and must list them. NVIDIA's open kernel module and GSP firmware are used by every arm and are disclosed. + +## Cells (one HTTP client for all arms: HeadToHead repo bench/bench.py, temperature 0, thinking off) +1. `agree`: c=1, 128 tokens, 16 decode prompts, 1 rep each. Correctness gate, runs first. +2. `decode-c1`: c=1, max 256 tokens, decode.jsonl, 2 warm-ups + 3 reps. Gives tg tok/s. +3. `prefill-p512`, `prefill-p2k`, `prefill-p8k`: c=1, max 1 token, `--nonce`, 2 warm-ups + 3 reps. Gives pp tok/s and TTFT. +4. `decode-c8`: LLAMA arms with `-np 8` only, as an aggregate reference. NOT_RUN for OURS, whose dense door has no batching. +- Server cpus 5-9,15-19, client cpus 0-1. Quiet gate before every cell: bench/quiet.py `--window 60 --max-load 6`. A cell that runs without a quiet window is marked LOADED. + +## Design +- 3 rounds. In each round every arm runs once with a fresh server start, and load time is recorded. Arm order per round comes from `random.Random(9)`, and the order is logged. +- No re-runs by choice. A round is repeated only for a recorded machine fault, and both attempts are reported. + +## Metrics +- tg tok/s per request = (completion_tokens − 1) / (t_last − t_first). +- pp tok/s per request = prompt_tokens / (t_first − t_send). This includes HTTP and the first sampled token, and that is stated. +- Per arm and cell: mean ± sd, median, min..max over all non-warm-up requests, computed in Wolfram with the queries saved. +- Headline: OURS16 / LLAMA16 ratio of median tg (decode-c1) and of median pp per prompt size. + +## Not claimed +- One machine, one model, single-stream generation. Not batch serving. Any cell not run is NOT_RUN. + +## Resumption amendment, 2026-10-29 (before any new timed run) + +The resumed campaign uses `bench/bench-node.mjs` on Node v24.21.0 as a +verification-only measurement instrument. Python is not executed. It preserves +the request fields, prompt rotation, warm-up selection, nonce prefix, streaming +content/reasoning handling and busy-response retry policy of `bench.py`. +Synthetic HTTP controls live in `bench/test-bench-node.mjs`; they exercise +fragmented UTF-8/SSE, request shape, retries, failed/truncated responses, missing +usage, concurrent requests, warm-ups and refusal to overwrite an existing output. + +The instrument records monotonic nanoseconds as decimal strings (`t_send_ns`, +`t_first_ns`, `t_last_ns`). It calculates no rates or statistics. Wolfram converts +those raw timestamps and applies the metric definitions above; queries and +results accompany the report. The default request timeout is the same as the +original client: Wolfram query +`UnitConvert[Quantity[1800, "Seconds"], "Milliseconds"]` returned +`Quantity[1800000, "Milliseconds"]`. + +Unlike the old client, malformed events, missing token usage and streams ending +without `[DONE]` fail the request and make the client exit unsuccessfully. +Failed rows are retained. Files from different client implementations are not +pooled into one timing summary. The recovered R1 remains historical evidence; +the resumed client needs its own complete repeated campaign before a headline +comparison. No new timed run has been accepted under this amendment. + +Backend operator checks are a separate qualification level from model output. +The existing `ggml-omega/tests/e2e-gb10.sh` requires an exclusive model window +with the resident model stopped. That test remains NOT_RUN while the shared +service is retained. Operator-only tests performed beside that service cannot +replace this gate. This amendment grants no permission to stop the service. + +The archived Q35 launcher named a CUDA-runtime directory that does not exist. +The resumed launcher uses the actual extracted companion release directory, +`h2h/dl/llama-bin/cudart-llama-b11913-bin-ubuntu-cuda-13.4-arm64`. +Its release archive SHA-256 is +`f6a5a0236082be3a10e9418a47ba389d23097c1fe8926581835f22e3cdeb599a`. +Library maps are retained for every arm. Historical maps show system-library +paths, so historical and resumed CUDA rows are not treated as identical runtime +configurations or pooled together. + +## Authorized model-window follow-up, 2026-10-29 + +Drake explicitly authorized stopping the shared model unless it is doing a test. +The saved operating rule now requires checking live activity and the shared +board before stopping it, then restoring the original setup after testing. +Exclusive windows performed under that instruction have now exercised the +mixed backend's fixed-prompt model check. Qwen3.5-9B BF16 and Q8 each matched +the CPU reference over all 16 generated tokens. Nonzero MUL_MAT, RMS_NORM and +SWIGLU calls prove actual placement; post-inference process maps contained none +of the forbidden NVIDIA user-space libraries. The checkpoint files are the same +ones verified above. Full chat-corpus agreement and timing remain separate gates. + +The backend test driver and comparator were hardened after controls reproduced +false success for empty output and a changed greedy token. The driver now +preserves comparator failure, requires all three executed operations and checks +an after-inference library snapshot. Twenty-one comparator controls and eight +host-only driver controls passed. Backend test-source commit: +`f4d4014` in `aien-dev/ggml-omega`, local experimental branch at this checkpoint. +Its committed `evidence/gb10-model-20261029.json` binds the model results to the +backend, CUDApp, llama.cpp and test-source hashes and records the numerical +differences. Greedy agreement is not full numerical equality. + +The original shared model was restored after both completed windows, with the +same binary, model, configuration and healthy endpoint. A subsequent full-corpus +attempt refused to stop it while another worker had requests in progress. No +comparison cell is accepted from that refusal, and no active request was stopped. +The independent reference observations, repeated timing, quiet-window evidence, +larger-model arms and final comparison report remain incomplete. + +## Full-server observations, 2026-10-29 + +The resumed full-server attempt exposed two defects that the bounded model +driver did not cover. Private CUDApp SHA helpers could resolve to incompatible +`libmtmd` symbols; an export map now keeps all backend definitions private except +`ggml_backend_init`. Empty graph nodes could also reach a chip routine requiring +nonempty input; the GPU executor now skips them, matching the CPU executor. +The original failures, debugger trace and failing empty-graph reproduction are +preserved. Export isolation and empty-graph regression controls pass on the +fixed backend, source `9b1d3d5` (local branch). + +With those fixes, LLOMEGA16 completed every original chat-corpus request without +request errors. All three intended GPU operations executed, and the +after-inference library snapshot passed. Responses differ from the resumed +stock BF16 baseline on d04, d14 and d15. Against the frozen independent HF +reference, three sequences are identical and thirteen first-divergence tuples +have exact previously recorded observations. These observations do not establish +full numerical equivalence or excuse later differences. No final accuracy or +timing verdict follows from this run. + +The first full LLOMEGA8 run completed its requests but failed the unchanged +placement gate: MUL_MAT was absent from its GPU profile. It remains a failed +placement experiment. Source inspection found llama.cpp's CPU-only repacked +weight buffers incompatible with this backend's host-buffer interface. The +historical Omega launcher used `-nr`; the resumed command had omitted it. The +corrected Q8 run uses stock `--no-repack`, the identical GGUF and the same staged +backend. Its placement and output remain unverified until the run completes. +This is a recorded configuration correction; results are not pooled across the +two configurations. + +Local evidence: `handoffs/stack-comparison-20261029/llomega16-full-corpus-receipt.json`, +`llomega16-token-audit.json`, `llomega8-token-audit.json`, +`startup-collision-fix.json`, `q8-placement-diagnosis.json` and +`llomega-correctness-3/`. The independent-reference observations still missing +for other arms, repeated timing, quiet-window controls and larger-model arms +remain outstanding. + +## Corrected Q8 result, 2026-10-29 + +The `--no-repack` Q8 rerun completed all sixteen requests and passed the +unchanged three-operation placement gate. MUL_MAT, RMS_NORM and SWIGLU all have +nonzero GPU execution counts. The after-inference library snapshot passed, the +window exited successfully, and the original shared model was restored healthy. +Thus the two full-server defects and the Q8 placement configuration error have +executed follow-up evidence; they are not merely proposed repairs. + +Against the frozen independent reference, corrected Q8 has one identical +sequence, nine exact previously observed first-divergence tuples and six tuples +without accepted observations. The BF16 result remains three identical and +thirteen previously observed tuples. Prior observations alone do not establish +whole-sequence equivalence or semantic correctness. + +The combined pending list in `results/PENDING-REFERENCE-20261029.json` contains +thirteen distinct contexts across all resumed arms, with identical contexts +deduplicated while preserving the affected arms. Every saved prefix and oracle +token was checked against the hashed HF reference. No fresh independent score +is inferred. The existing checker requires Python, which the current operating +instructions forbid. This gate, the repeated timing campaign, larger-model +comparisons and final performance report remain incomplete. + +Completed Q8 evidence is in `results/LLOMEGA8-CORPUS-20261029.json`; the local raw +rows, post-inference maps, operation profile and token audit remain under +`handoffs/stack-comparison-20261029/`. This correctness run is not a timed cell, +and no speed winner is claimed. + +## Independent reference completion and timing start, 2026-10-29 + +Drake clarified that external testing/reference/measurement tools may use Python +while Aien architecture and structural implementation remain Python-free. +Calculations may also use Python, with Wolfram preferred. This removes the +earlier reference-tool prohibition; it does not add Python to the tested native +engine or Omega backend. + +The original `tie_check.py`, byte-checked against this repository's pinned copy, +ran in the pinned NVIDIA image +`nvcr.io/nvidia/vllm@sha256:557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2`. +All thirteen deduplicated pending contexts produced finite observations matching +the exact prompt, position and token pair. The shared model was restored and +healthy after exit. The updated five-arm token audit has no first-divergence +tuple lacking a matching independent observation. + +In the thirteen new contexts, seven tested tokens rank equal to the reference's +top score and six rank second. These are recorded observations, not an invented +acceptance tolerance. LLAMA8 d08 scores its tested token above the token saved +in the frozen generation reference; that negative gap is preserved. A +first-divergence score does not verify later divergent continuation or establish +whole-model numerical equivalence. Exact agreement remains reported separately. + +The resumed timing campaign retains all five arms across three rounds, with +`random.Random(9)` determining the recorded arm order. Each fresh session reruns +the agree cell, then uses the original warm-up/repetition counts, prompt sizes +and nonce setting. Stock CUDA arms additionally run concurrency-eight and the +llama-bench cross-check. Corrected Omega Q8 retains `--no-repack`; its earlier +failed placement run remains separate. Each cell has a fresh output file. + +Client and prompt copies are frozen for the campaign. `bench-node.mjs` records +raw monotonic nanoseconds as declared above; the existing external Python quiet +checker enforces the declared window before cells. Request/library/placement +failure stops the campaign. A quiet gate that cannot pass after its bounded +attempts stops the session without accepting a timed cell. The original shared +model is restored between configurations. Results are not pooled with historical +clients or runtimes, and no speed conclusion is justified before the required +cells finish and their observations are analyzed. + +New committed reference evidence: `results/REFERENCE-OBSERVATIONS-20261029.jsonl`, +`results/REFERENCE-RECEIPT-20261029.json`, and +`results/ALL-ARMS-TOKEN-AUDIT-20261029.json`. +The live campaign manifest, frozen instruments, order and raw outputs are under +`handoffs/stack-comparison-20261029/timing-campaign-1/`. diff --git a/q35-9b/README.md b/q35-9b/README.md new file mode 100644 index 0000000..858e44f --- /dev/null +++ b/q35-9b/README.md @@ -0,0 +1,21 @@ +# Qwen3.5-9B on one GB10 + +This campaign compares three ways of running Qwen3.5-9B on one DGX Spark (GB10). It follows the setup asked for in [ggml-org/llama.cpp discussion #31092](https://github.com/ggml-org/llama.cpp/discussions/31092). + +1. Our Omega engine (`aien-serve-http --engine omega`) with no NVIDIA user-space CUDA libraries. +2. Stock llama.cpp b11913 on NVIDIA CUDA. +3. Stock llama.cpp b11913 with our GPU backend ([aien-dev/ggml-omega](https://github.com/aien-dev/ggml-omega)) in place of libggml-cuda, again with no NVIDIA user-space CUDA libraries. + +- [PROTOCOL.md](PROTOCOL.md): original protocol and dated resumption amendments. +- [ORDERED-WEIGHTS.md](ORDERED-WEIGHTS.md): exact checks of 427 named text tensors at the recorded pins. The original [weight report](results/WEIGHTS.md) remains historical evidence and must be read with its [correction](results/WEIGHTS.md.correction.json). +- [results/ref/](results/ref/): correctness references. + - `HF-ORACLE.jsonl`: Hugging Face transformers, BF16, greedy. + - `LLAMA16-REF.jsonl`: llama.cpp CUDA, BF16, greedy. + - `tie-*.jsonl`: for every point where an arm's output differs from the oracle, the logit gap between the two tokens as the oracle sees it. +- [tools/](tools/): drivers and checks. These are host measurement tools, not product code. + +The resumed timing campaign is running; no complete repeated comparison or final speed result is accepted yet. Failed attempts and historical results remain separate. The independent first-divergence observations cover the current five-arm corpus; they do not establish full-model numerical equivalence. + +Publication chronology: the original protocol was already published, but these resumption amendments and corrections reached this draft after resumed timing began. The local campaign manifest records the frozen recipe before the first session. This late publication is disclosed rather than described as prospective remote registration. + +`resumption.json` is the initial historical checkpoint. Its adjacent correction records later observations and remaining work. Native Intel CPU qualification and available-GPU investigation are additional pending work; no emulator result qualifies them. diff --git a/q35-9b/results/ALL-ARMS-TOKEN-AUDIT-20261029.json b/q35-9b/results/ALL-ARMS-TOKEN-AUDIT-20261029.json new file mode 100644 index 0000000..d489f3b --- /dev/null +++ b/q35-9b/results/ALL-ARMS-TOKEN-AUDIT-20261029.json @@ -0,0 +1,3924 @@ +{ + "kind": "token_audit_not_final_model_qualification", + "tokenizer": { + "path": "/home/drakestapleton/workspace/stack-tokenizer-20261029/bin/llama-tokenize", + "sha256": "d0fee8abda2643bc9625f371f0d6af80502125f0d4bc3bb793bfd518d5c9469e", + "source": "7aca0d2ea8d92b56911233b822db01f9fbb1ae50", + "backend": "CPU-only" + }, + "oracle": { + "path": "/home/drakestapleton/handoffs/H2H9B/results/ref/HF-ORACLE.jsonl", + "sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28" + }, + "tieSources": [ + { + "path": "/home/drakestapleton/handoffs/H2H9B/results/ref/tie-OURS16.jsonl", + "sha256": "22240d0ea2fdaa1657dd200f317673026f85e507448f38445a1b31fa55b2d684" + }, + { + "path": "/home/drakestapleton/handoffs/H2H9B/results/ref/tie-LLAMA16-OURS8.jsonl", + "sha256": "92a10bd5366f12abf40cbfec89adc62885d84d83a442dd8e54c4f03a4a5b3a37" + }, + { + "path": "/home/drakestapleton/handoffs/stack-comparison-20261029/reference-observations-1.jsonl", + "sha256": "fd911cbddb1df5a32b8e436af2206e677d9dbdfe4fcf533f485aa970667e7092" + } + ], + "oracleRoundtrip": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "arms": { + "OURS16": { + "path": "/home/drakestapleton/handoffs/stack-comparison-20261029/correctness-full-1/OURS16.jsonl", + "sha256": "e53c729223619f281c62307df2f116bbe3e31e02fb42f65297e0da4e49c9219b", + "rows": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 119, + "identical": false, + "first_div": 119, + "token_a": 466, + "token_b": 2407, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d01", + "oracle_len": 128, + "arm_len": 128, + "first_div": 119, + "oracle_tok": 466, + "arm_tok": 2407, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.061350703239441, + "logprob_arm_tok": -1.061350703239441, + "oracle_piece": " or", + "arm_piece": " body" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 121, + "identical": false, + "first_div": 121, + "token_a": 10439, + "token_b": 264, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d02", + "oracle_len": 128, + "arm_len": 128, + "first_div": 121, + "oracle_tok": 10439, + "arm_tok": 264, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.138827919960022, + "logprob_arm_tok": -1.013827919960022, + "oracle_piece": " shock", + "arm_piece": " a" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 97, + "identical": false, + "first_div": 97, + "token_a": 2574, + "token_b": 6895, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d03", + "oracle_len": 128, + "arm_len": 128, + "first_div": 97, + "oracle_tok": 2574, + "arm_tok": 6895, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.9599215984344482, + "logprob_arm_tok": -1.8349215984344482, + "oracle_piece": " given", + "arm_piece": " brought" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 1, + "oracle_tok": 33498, + "arm_tok": 3712, + "logit_gap": -0.0625, + "oracle_top1_top2_gap": 0.0625, + "arm_tok_rank": 0, + "logprob_oracle_tok": -2.131272077560425, + "logprob_arm_tok": -2.068772077560425, + "oracle_piece": " laying", + "arm_piece": " history" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 58, + "identical": false, + "first_div": 58, + "token_a": 7410, + "token_b": 27088, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d05", + "oracle_len": 128, + "arm_len": 128, + "first_div": 58, + "oracle_tok": 7410, + "arm_tok": 27088, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7176401615142822, + "logprob_arm_tok": -0.7176401615142822, + "oracle_piece": " leader", + "arm_piece": " commander" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 116, + "identical": false, + "first_div": 116, + "token_a": 2577, + "token_b": 15766, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 116, + "oracle_tok": 2577, + "arm_tok": 15766, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.1289901733398438, + "logprob_arm_tok": -1.2539901733398438, + "oracle_piece": " better", + "arm_piece": " stronger" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 21100, + "token_b": 26281, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d08", + "oracle_len": 128, + "arm_len": 128, + "first_div": 19, + "oracle_tok": 21100, + "arm_tok": 26281, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.8117429614067078, + "logprob_arm_tok": -0.8117429614067078, + "oracle_piece": " dramatic", + "arm_piece": " profound" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 28069, + "token_b": 65967, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d09", + "oracle_len": 128, + "arm_len": 128, + "first_div": 13, + "oracle_tok": 28069, + "arm_tok": 65967, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.951248049736023, + "logprob_arm_tok": -0.826248049736023, + "oracle_piece": " technological", + "arm_piece": " milestones" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 68, + "identical": false, + "first_div": 68, + "token_a": 680, + "token_b": 95086, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d10", + "oracle_len": 128, + "arm_len": 128, + "first_div": 68, + "oracle_tok": 680, + "arm_tok": 95086, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.8626643419265747, + "logprob_arm_tok": -1.7376643419265747, + "oracle_piece": " out", + "arm_piece": " pinnacle" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 15, + "identical": false, + "first_div": 15, + "token_a": 13437, + "token_b": 14246, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d12", + "oracle_len": 128, + "arm_len": 128, + "first_div": 15, + "oracle_tok": 13437, + "arm_tok": 14246, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7990480661392212, + "logprob_arm_tok": -0.6740480661392212, + "oracle_piece": " ancient", + "arm_piece": " engineering" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 11, + "token_b": 13, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d13", + "oracle_len": 128, + "arm_len": 128, + "first_div": 33, + "oracle_tok": 11, + "arm_tok": 13, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2242814302444458, + "logprob_arm_tok": -1.2242814302444458, + "oracle_piece": ",", + "arm_piece": "." + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 635, + "token_b": 513, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d14", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 635, + "arm_tok": 513, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7335556745529175, + "logprob_arm_tok": -0.7335556745529175, + "oracle_piece": " do", + "arm_piece": " are" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 36561, + "token_b": 71734, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d15", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 36561, + "arm_tok": 71734, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1145293712615967, + "logprob_arm_tok": -1.1145293712615967, + "oracle_piece": " nightmare", + "arm_piece": " nightmares" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + } + ] + }, + "LLAMA16": { + "path": "/home/drakestapleton/handoffs/stack-comparison-20261029/correctness-full-1/LLAMA16.jsonl", + "sha256": "3b0095173d8c52c72d5b2924ca829d17c89c28fef47158200f51dd8225a75b81", + "rows": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 119, + "identical": false, + "first_div": 119, + "token_a": 466, + "token_b": 2407, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d01", + "oracle_len": 128, + "arm_len": 128, + "first_div": 119, + "oracle_tok": 466, + "arm_tok": 2407, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.061350703239441, + "logprob_arm_tok": -1.061350703239441, + "oracle_piece": " or", + "arm_piece": " body" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 121, + "identical": false, + "first_div": 121, + "token_a": 10439, + "token_b": 264, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d02", + "oracle_len": 128, + "arm_len": 128, + "first_div": 121, + "oracle_tok": 10439, + "arm_tok": 264, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.138827919960022, + "logprob_arm_tok": -1.013827919960022, + "oracle_piece": " shock", + "arm_piece": " a" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 97, + "identical": false, + "first_div": 97, + "token_a": 2574, + "token_b": 6895, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d03", + "oracle_len": 128, + "arm_len": 128, + "first_div": 97, + "oracle_tok": 2574, + "arm_tok": 6895, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.9599215984344482, + "logprob_arm_tok": -1.8349215984344482, + "oracle_piece": " given", + "arm_piece": " brought" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 64, + "identical": false, + "first_div": 64, + "token_a": 73917, + "token_b": 7712, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA16", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 64, + "oracle_tok": 73917, + "arm_tok": 7712, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.665413498878479, + "logprob_arm_tok": -1.790413498878479, + "oracle_piece": " conduit", + "arm_piece": " tele" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 58, + "identical": false, + "first_div": 58, + "token_a": 7410, + "token_b": 27088, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d05", + "oracle_len": 128, + "arm_len": 128, + "first_div": 58, + "oracle_tok": 7410, + "arm_tok": 27088, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7176401615142822, + "logprob_arm_tok": -0.7176401615142822, + "oracle_piece": " leader", + "arm_piece": " commander" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 116, + "identical": false, + "first_div": 116, + "token_a": 2577, + "token_b": 15766, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 116, + "oracle_tok": 2577, + "arm_tok": 15766, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.1289901733398438, + "logprob_arm_tok": -1.2539901733398438, + "oracle_piece": " better", + "arm_piece": " stronger" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 21100, + "token_b": 26281, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d08", + "oracle_len": 128, + "arm_len": 128, + "first_div": 19, + "oracle_tok": 21100, + "arm_tok": 26281, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.8117429614067078, + "logprob_arm_tok": -0.8117429614067078, + "oracle_piece": " dramatic", + "arm_piece": " profound" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 28069, + "token_b": 65967, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d09", + "oracle_len": 128, + "arm_len": 128, + "first_div": 13, + "oracle_tok": 28069, + "arm_tok": 65967, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.951248049736023, + "logprob_arm_tok": -0.826248049736023, + "oracle_piece": " technological", + "arm_piece": " milestones" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 68, + "identical": false, + "first_div": 68, + "token_a": 680, + "token_b": 95086, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d10", + "oracle_len": 128, + "arm_len": 128, + "first_div": 68, + "oracle_tok": 680, + "arm_tok": 95086, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.8626643419265747, + "logprob_arm_tok": -1.7376643419265747, + "oracle_piece": " out", + "arm_piece": " pinnacle" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 15, + "identical": false, + "first_div": 15, + "token_a": 13437, + "token_b": 14246, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d12", + "oracle_len": 128, + "arm_len": 128, + "first_div": 15, + "oracle_tok": 13437, + "arm_tok": 14246, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7990480661392212, + "logprob_arm_tok": -0.6740480661392212, + "oracle_piece": " ancient", + "arm_piece": " engineering" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 61, + "identical": false, + "first_div": 61, + "token_a": 383, + "token_b": 5028, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA16", + "prompt_id": "d13", + "oracle_len": 128, + "arm_len": 128, + "first_div": 61, + "oracle_tok": 383, + "arm_tok": 5028, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7586430907249451, + "logprob_arm_tok": -0.6336430907249451, + "oracle_piece": " on", + "arm_piece": " upon" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 635, + "token_b": 513, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d14", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 635, + "arm_tok": 513, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7335556745529175, + "logprob_arm_tok": -0.7335556745529175, + "oracle_piece": " do", + "arm_piece": " are" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 36561, + "token_b": 71734, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d15", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 36561, + "arm_tok": 71734, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1145293712615967, + "logprob_arm_tok": -1.1145293712615967, + "oracle_piece": " nightmare", + "arm_piece": " nightmares" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + } + ] + }, + "LLAMA8": { + "path": "/home/drakestapleton/handoffs/stack-comparison-20261029/correctness-full-1/LLAMA8.jsonl", + "sha256": "e6a9baf3718cc5b50679e33a3a8e48e9614ebecca433021951815bba1f200f63", + "rows": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 60, + "identical": false, + "first_div": 60, + "token_a": 279, + "token_b": 1375, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d00", + "oracle_len": 128, + "arm_len": 128, + "first_div": 60, + "oracle_tok": 279, + "arm_tok": 1375, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.2271150350570679, + "logprob_arm_tok": -1.3521150350570679, + "oracle_piece": " the", + "arm_piece": " hand" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d01", + "oracle_len": 128, + "arm_len": 128, + "first_div": 79, + "oracle_tok": 264, + "arm_tok": 449, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -0.6326383948326111, + "logprob_arm_tok": -0.7576383948326111, + "oracle_piece": " a", + "arm_piece": " an" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 1061, + "token_b": 25215, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d02", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 1061, + "arm_tok": 25215, + "logit_gap": 0.25, + "oracle_top1_top2_gap": 0.25, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.0752676725387573, + "logprob_arm_tok": -1.3252676725387573, + "oracle_piece": " This", + "arm_piece": " Unlike" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 97, + "identical": false, + "first_div": 97, + "token_a": 2574, + "token_b": 6895, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d03", + "oracle_len": 128, + "arm_len": 128, + "first_div": 97, + "oracle_tok": 2574, + "arm_tok": 6895, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.9599215984344482, + "logprob_arm_tok": -1.8349215984344482, + "oracle_piece": " given", + "arm_piece": " brought" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 92, + "identical": false, + "first_div": 92, + "token_a": 557, + "token_b": 995, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 92, + "oracle_tok": 557, + "arm_tok": 995, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7243256568908691, + "logprob_arm_tok": -0.7243256568908691, + "oracle_piece": " was", + "arm_piece": " had" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 44, + "identical": false, + "first_div": 44, + "token_a": 10222, + "token_b": 11153, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d05", + "oracle_len": 128, + "arm_len": 128, + "first_div": 44, + "oracle_tok": 10222, + "arm_tok": 11153, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -0.6856847405433655, + "logprob_arm_tok": -0.8106847405433655, + "oracle_piece": " communication", + "arm_piece": " chemical" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d06", + "oracle_len": 128, + "arm_len": 128, + "first_div": 37, + "oracle_tok": 1118, + "arm_tok": 3177, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.8486727476119995, + "logprob_arm_tok": -1.9736727476119995, + "oracle_piece": " first", + "arm_piece": " city" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 115, + "identical": false, + "first_div": 115, + "token_a": 2590, + "token_b": 2577, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 115, + "oracle_tok": 2590, + "arm_tok": 2577, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.0838810205459595, + "logprob_arm_tok": -1.0838810205459595, + "oracle_piece": " always", + "arm_piece": " better" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 110, + "identical": false, + "first_div": 110, + "token_a": 421, + "token_b": 12506, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d08", + "oracle_len": 128, + "arm_len": 128, + "first_div": 110, + "oracle_tok": 421, + "arm_tok": 12506, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2555303573608398, + "logprob_arm_tok": -1.1305303573608398, + "oracle_piece": " that", + "arm_piece": " capable" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 28069, + "token_b": 65967, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d09", + "oracle_len": 128, + "arm_len": 128, + "first_div": 13, + "oracle_tok": 28069, + "arm_tok": 65967, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.951248049736023, + "logprob_arm_tok": -0.826248049736023, + "oracle_piece": " technological", + "arm_piece": " milestones" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 68, + "identical": false, + "first_div": 68, + "token_a": 680, + "token_b": 95086, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d10", + "oracle_len": 128, + "arm_len": 128, + "first_div": 68, + "oracle_tok": 680, + "arm_tok": 95086, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.8626643419265747, + "logprob_arm_tok": -1.7376643419265747, + "oracle_piece": " out", + "arm_piece": " pinnacle" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS8", + "prompt_id": "d12", + "oracle_len": 128, + "arm_len": 128, + "first_div": 11, + "oracle_tok": 321, + "arm_tok": 1228, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.9442569613456726, + "logprob_arm_tok": -0.9442569613456726, + "oracle_piece": " and", + "arm_piece": " test" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 11, + "token_b": 13, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d13", + "oracle_len": 128, + "arm_len": 128, + "first_div": 33, + "oracle_tok": 11, + "arm_tok": 13, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2242814302444458, + "logprob_arm_tok": -1.2242814302444458, + "oracle_piece": ",", + "arm_piece": "." + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 635, + "token_b": 513, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d14", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 635, + "arm_tok": 513, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7335556745529175, + "logprob_arm_tok": -0.7335556745529175, + "oracle_piece": " do", + "arm_piece": " are" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 36561, + "token_b": 71734, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d15", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 36561, + "arm_tok": 71734, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1145293712615967, + "logprob_arm_tok": -1.1145293712615967, + "oracle_piece": " nightmare", + "arm_piece": " nightmares" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + } + ] + }, + "LLOMEGA16": { + "path": "/home/drakestapleton/handoffs/stack-comparison-20261029/llomega-correctness-3/LLOMEGA16.jsonl", + "sha256": "70423c90874886954a41051dd2728b1e032f126d02fe676bc4107bb196601f1e", + "rows": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 119, + "identical": false, + "first_div": 119, + "token_a": 466, + "token_b": 2407, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d01", + "oracle_len": 128, + "arm_len": 128, + "first_div": 119, + "oracle_tok": 466, + "arm_tok": 2407, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.061350703239441, + "logprob_arm_tok": -1.061350703239441, + "oracle_piece": " or", + "arm_piece": " body" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 121, + "identical": false, + "first_div": 121, + "token_a": 10439, + "token_b": 264, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d02", + "oracle_len": 128, + "arm_len": 128, + "first_div": 121, + "oracle_tok": 10439, + "arm_tok": 264, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.138827919960022, + "logprob_arm_tok": -1.013827919960022, + "oracle_piece": " shock", + "arm_piece": " a" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 97, + "identical": false, + "first_div": 97, + "token_a": 2574, + "token_b": 6895, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d03", + "oracle_len": 128, + "arm_len": 128, + "first_div": 97, + "oracle_tok": 2574, + "arm_tok": 6895, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.9599215984344482, + "logprob_arm_tok": -1.8349215984344482, + "oracle_piece": " given", + "arm_piece": " brought" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 1, + "oracle_tok": 33498, + "arm_tok": 3712, + "logit_gap": -0.0625, + "oracle_top1_top2_gap": 0.0625, + "arm_tok_rank": 0, + "logprob_oracle_tok": -2.131272077560425, + "logprob_arm_tok": -2.068772077560425, + "oracle_piece": " laying", + "arm_piece": " history" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 58, + "identical": false, + "first_div": 58, + "token_a": 7410, + "token_b": 27088, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d05", + "oracle_len": 128, + "arm_len": 128, + "first_div": 58, + "oracle_tok": 7410, + "arm_tok": 27088, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7176401615142822, + "logprob_arm_tok": -0.7176401615142822, + "oracle_piece": " leader", + "arm_piece": " commander" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 116, + "identical": false, + "first_div": 116, + "token_a": 2577, + "token_b": 15766, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 116, + "oracle_tok": 2577, + "arm_tok": 15766, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.1289901733398438, + "logprob_arm_tok": -1.2539901733398438, + "oracle_piece": " better", + "arm_piece": " stronger" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 21100, + "token_b": 26281, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d08", + "oracle_len": 128, + "arm_len": 128, + "first_div": 19, + "oracle_tok": 21100, + "arm_tok": 26281, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.8117429614067078, + "logprob_arm_tok": -0.8117429614067078, + "oracle_piece": " dramatic", + "arm_piece": " profound" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 28069, + "token_b": 65967, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d09", + "oracle_len": 128, + "arm_len": 128, + "first_div": 13, + "oracle_tok": 28069, + "arm_tok": 65967, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.951248049736023, + "logprob_arm_tok": -0.826248049736023, + "oracle_piece": " technological", + "arm_piece": " milestones" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 68, + "identical": false, + "first_div": 68, + "token_a": 680, + "token_b": 95086, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d10", + "oracle_len": 128, + "arm_len": 128, + "first_div": 68, + "oracle_tok": 680, + "arm_tok": 95086, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.8626643419265747, + "logprob_arm_tok": -1.7376643419265747, + "oracle_piece": " out", + "arm_piece": " pinnacle" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 15, + "identical": false, + "first_div": 15, + "token_a": 13437, + "token_b": 14246, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d12", + "oracle_len": 128, + "arm_len": 128, + "first_div": 15, + "oracle_tok": 13437, + "arm_tok": 14246, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7990480661392212, + "logprob_arm_tok": -0.6740480661392212, + "oracle_piece": " ancient", + "arm_piece": " engineering" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 61, + "identical": false, + "first_div": 61, + "token_a": 383, + "token_b": 5028, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA16", + "prompt_id": "d13", + "oracle_len": 128, + "arm_len": 128, + "first_div": 61, + "oracle_tok": 383, + "arm_tok": 5028, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7586430907249451, + "logprob_arm_tok": -0.6336430907249451, + "oracle_piece": " on", + "arm_piece": " upon" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 635, + "token_b": 513, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d14", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 635, + "arm_tok": 513, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7335556745529175, + "logprob_arm_tok": -0.7335556745529175, + "oracle_piece": " do", + "arm_piece": " are" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 36561, + "token_b": 71734, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d15", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 36561, + "arm_tok": 71734, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1145293712615967, + "logprob_arm_tok": -1.1145293712615967, + "oracle_piece": " nightmare", + "arm_piece": " nightmares" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + } + ] + }, + "LLOMEGA8": { + "path": "/home/drakestapleton/handoffs/stack-comparison-20261029/llomega-correctness-4/LLOMEGA8.jsonl", + "sha256": "dec6aacd41fbc2782c6982a70b538bccab855c02df7d5f0514fdc604916331b4", + "rows": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null, + "recordedUsage": 128, + "priorObservation": null, + "observationStatus": "IDENTICAL" + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d01", + "oracle_len": 128, + "arm_len": 128, + "first_div": 79, + "oracle_tok": 264, + "arm_tok": 449, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -0.6326383948326111, + "logprob_arm_tok": -0.7576383948326111, + "oracle_piece": " a", + "arm_piece": " an" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 121, + "identical": false, + "first_div": 121, + "token_a": 10439, + "token_b": 264, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d02", + "oracle_len": 128, + "arm_len": 128, + "first_div": 121, + "oracle_tok": 10439, + "arm_tok": 264, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.138827919960022, + "logprob_arm_tok": -1.013827919960022, + "oracle_piece": " shock", + "arm_piece": " a" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 97, + "identical": false, + "first_div": 97, + "token_a": 2574, + "token_b": 6895, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d03", + "oracle_len": 128, + "arm_len": 128, + "first_div": 97, + "oracle_tok": 2574, + "arm_tok": 6895, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.9599215984344482, + "logprob_arm_tok": -1.8349215984344482, + "oracle_piece": " given", + "arm_piece": " brought" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 1, + "oracle_tok": 33498, + "arm_tok": 3712, + "logit_gap": -0.0625, + "oracle_top1_top2_gap": 0.0625, + "arm_tok_rank": 0, + "logprob_oracle_tok": -2.131272077560425, + "logprob_arm_tok": -2.068772077560425, + "oracle_piece": " laying", + "arm_piece": " history" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 58, + "identical": false, + "first_div": 58, + "token_a": 7410, + "token_b": 27088, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d05", + "oracle_len": 128, + "arm_len": 128, + "first_div": 58, + "oracle_tok": 7410, + "arm_tok": 27088, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7176401615142822, + "logprob_arm_tok": -0.7176401615142822, + "oracle_piece": " leader", + "arm_piece": " commander" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLAMA8", + "prompt_id": "d06", + "oracle_len": 128, + "arm_len": 128, + "first_div": 37, + "oracle_tok": 1118, + "arm_tok": 3177, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.8486727476119995, + "logprob_arm_tok": -1.9736727476119995, + "oracle_piece": " first", + "arm_piece": " city" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 114, + "identical": false, + "first_div": 114, + "token_a": 369, + "token_b": 5978, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 114, + "oracle_tok": 369, + "arm_tok": 5978, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1322638988494873, + "logprob_arm_tok": -1.1322638988494873, + "oracle_piece": " is", + "arm_piece": " objects" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 21100, + "token_b": 26281, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d08", + "oracle_len": 128, + "arm_len": 128, + "first_div": 19, + "oracle_tok": 21100, + "arm_tok": 26281, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.8117429614067078, + "logprob_arm_tok": -0.8117429614067078, + "oracle_piece": " dramatic", + "arm_piece": " profound" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 84, + "identical": false, + "first_div": 84, + "token_a": 3759, + "token_b": 16829, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d09", + "oracle_len": 128, + "arm_len": 128, + "first_div": 84, + "oracle_tok": 3759, + "arm_tok": 16829, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2174102067947388, + "logprob_arm_tok": -1.2174102067947388, + "oracle_piece": " variable", + "arm_piece": " tied" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 68, + "identical": false, + "first_div": 68, + "token_a": 680, + "token_b": 95086, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d10", + "oracle_len": 128, + "arm_len": 128, + "first_div": 68, + "oracle_tok": 680, + "arm_tok": 95086, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.8626643419265747, + "logprob_arm_tok": -1.7376643419265747, + "oracle_piece": " out", + "arm_piece": " pinnacle" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 93, + "identical": false, + "first_div": 93, + "token_a": 22892, + "token_b": 82240, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d11", + "oracle_len": 128, + "arm_len": 128, + "first_div": 93, + "oracle_tok": 22892, + "arm_tok": 82240, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.30898916721344, + "logprob_arm_tok": -1.30898916721344, + "oracle_piece": " centuries", + "arm_piece": " geological" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS8", + "prompt_id": "d12", + "oracle_len": 128, + "arm_len": 128, + "first_div": 11, + "oracle_tok": 321, + "arm_tok": 1228, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.9442569613456726, + "logprob_arm_tok": -0.9442569613456726, + "oracle_piece": " and", + "arm_piece": " test" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 11, + "token_b": 13, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d13", + "oracle_len": 128, + "arm_len": 128, + "first_div": 33, + "oracle_tok": 11, + "arm_tok": 13, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2242814302444458, + "logprob_arm_tok": -1.2242814302444458, + "oracle_piece": ",", + "arm_piece": "." + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 82, + "identical": false, + "first_div": 82, + "token_a": 494, + "token_b": 680, + "recordedUsage": 128, + "priorObservation": { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d14", + "oracle_len": 128, + "arm_len": 128, + "first_div": 82, + "oracle_tok": 494, + "arm_tok": 680, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.8281126618385315, + "logprob_arm_tok": -0.8281126618385315, + "oracle_piece": " from", + "arm_piece": " out" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 36561, + "token_b": 71734, + "recordedUsage": 128, + "priorObservation": { + "arm": "OURS16", + "prompt_id": "d15", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 36561, + "arm_tok": 71734, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1145293712615967, + "logprob_arm_tok": -1.1145293712615967, + "oracle_piece": " nightmare", + "arm_piece": " nightmares" + }, + "observationStatus": "EXACT_PRIOR_TUPLE" + } + ] + } + }, + "pairs": { + "OURS16-LLAMA16": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 3712, + "token_b": 33498 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 13, + "token_b": 11 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 81, + "identical": false, + "first_div": 81, + "token_a": 34103, + "token_b": 264 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "OURS16-LLAMA8": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 60, + "identical": false, + "first_div": 60, + "token_a": 279, + "token_b": 1375 + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449 + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 1061, + "token_b": 25215 + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 101, + "identical": false, + "first_div": 101, + "token_a": 264, + "token_b": 279 + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 3712, + "token_b": 33498 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 44, + "identical": false, + "first_div": 44, + "token_a": 10222, + "token_b": 11153 + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177 + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 115, + "identical": false, + "first_div": 115, + "token_a": 2590, + "token_b": 2577 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 26281, + "token_b": 21100 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 100, + "identical": false, + "first_div": 100, + "token_a": 33760, + "token_b": 1906 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 67, + "identical": false, + "first_div": 67, + "token_a": 86088, + "token_b": 63712 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 81, + "identical": false, + "first_div": 81, + "token_a": 34103, + "token_b": 264 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "OURS16-LLOMEGA16": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 13, + "token_b": 11 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 76, + "identical": false, + "first_div": 76, + "token_a": 58562, + "token_b": 11290 + } + ], + "OURS16-LLOMEGA8": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449 + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 101, + "identical": false, + "first_div": 101, + "token_a": 264, + "token_b": 279 + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177 + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 114, + "identical": false, + "first_div": 114, + "token_a": 369, + "token_b": 5978 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 14537 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 65967, + "token_b": 28069 + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 96, + "identical": false, + "first_div": 96, + "token_a": 1483, + "token_b": 1132 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 93, + "identical": false, + "first_div": 93, + "token_a": 22892, + "token_b": 82240 + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 67, + "identical": false, + "first_div": 67, + "token_a": 86088, + "token_b": 63712 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 635 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "LLAMA16-LLAMA8": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 60, + "identical": false, + "first_div": 60, + "token_a": 279, + "token_b": 1375 + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449 + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 1061, + "token_b": 25215 + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 101, + "identical": false, + "first_div": 101, + "token_a": 264, + "token_b": 279 + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 64, + "identical": false, + "first_div": 64, + "token_a": 7712, + "token_b": 73917 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 44, + "identical": false, + "first_div": 44, + "token_a": 10222, + "token_b": 11153 + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177 + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 115, + "identical": false, + "first_div": 115, + "token_a": 2590, + "token_b": 2577 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 26281, + "token_b": 21100 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 100, + "identical": false, + "first_div": 100, + "token_a": 33760, + "token_b": 1906 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 11, + "token_b": 13 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 85, + "identical": false, + "first_div": 85, + "token_a": 17415, + "token_b": 2919 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "LLAMA16-LLOMEGA16": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 81, + "identical": false, + "first_div": 81, + "token_a": 264, + "token_b": 34103 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 76, + "identical": false, + "first_div": 76, + "token_a": 58562, + "token_b": 11290 + } + ], + "LLAMA16-LLOMEGA8": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449 + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 101, + "identical": false, + "first_div": 101, + "token_a": 264, + "token_b": 279 + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177 + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 114, + "identical": false, + "first_div": 114, + "token_a": 369, + "token_b": 5978 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 14537 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 65967, + "token_b": 28069 + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 96, + "identical": false, + "first_div": 96, + "token_a": 1483, + "token_b": 1132 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 93, + "identical": false, + "first_div": 93, + "token_a": 22892, + "token_b": 82240 + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 11, + "token_b": 13 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 635 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "LLAMA8-LLOMEGA16": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 60, + "identical": false, + "first_div": 60, + "token_a": 1375, + "token_b": 279 + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 449, + "token_b": 264 + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 25215, + "token_b": 1061 + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 101, + "identical": false, + "first_div": 101, + "token_a": 279, + "token_b": 264 + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 44, + "identical": false, + "first_div": 44, + "token_a": 11153, + "token_b": 10222 + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 3177, + "token_b": 1118 + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 115, + "identical": false, + "first_div": 115, + "token_a": 2577, + "token_b": 2590 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 21100, + "token_b": 26281 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 100, + "identical": false, + "first_div": 100, + "token_a": 1906, + "token_b": 33760 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 1228, + "token_b": 321 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 13, + "token_b": 11 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 81, + "identical": false, + "first_div": 81, + "token_a": 264, + "token_b": 34103 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 76, + "identical": false, + "first_div": 76, + "token_a": 58562, + "token_b": 11290 + } + ], + "LLAMA8-LLOMEGA8": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 60, + "identical": false, + "first_div": 60, + "token_a": 1375, + "token_b": 279 + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 25215, + "token_b": 1061 + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 1, + "identical": false, + "first_div": 1, + "token_a": 33498, + "token_b": 3712 + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 44, + "identical": false, + "first_div": 44, + "token_a": 11153, + "token_b": 10222 + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 114, + "identical": false, + "first_div": 114, + "token_a": 369, + "token_b": 5978 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 19, + "identical": false, + "first_div": 19, + "token_a": 21100, + "token_b": 26281 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 65967, + "token_b": 28069 + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 96, + "identical": false, + "first_div": 96, + "token_a": 1483, + "token_b": 1132 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 93, + "identical": false, + "first_div": 93, + "token_a": 22892, + "token_b": 82240 + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 16, + "identical": false, + "first_div": 16, + "token_a": 70576, + "token_b": 6537 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 87, + "identical": false, + "first_div": 87, + "token_a": 4950, + "token_b": 27163 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 635 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + } + ], + "LLOMEGA16-LLOMEGA8": [ + { + "prompt_id": "d00", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d01", + "length_a": 128, + "length_b": 128, + "common_prefix": 79, + "identical": false, + "first_div": 79, + "token_a": 264, + "token_b": 449 + }, + { + "prompt_id": "d02", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d03", + "length_a": 128, + "length_b": 128, + "common_prefix": 101, + "identical": false, + "first_div": 101, + "token_a": 264, + "token_b": 279 + }, + { + "prompt_id": "d04", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d05", + "length_a": 128, + "length_b": 128, + "common_prefix": 128, + "identical": true, + "first_div": null, + "token_a": null, + "token_b": null + }, + { + "prompt_id": "d06", + "length_a": 128, + "length_b": 128, + "common_prefix": 37, + "identical": false, + "first_div": 37, + "token_a": 1118, + "token_b": 3177 + }, + { + "prompt_id": "d07", + "length_a": 128, + "length_b": 128, + "common_prefix": 114, + "identical": false, + "first_div": 114, + "token_a": 369, + "token_b": 5978 + }, + { + "prompt_id": "d08", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 14537 + }, + { + "prompt_id": "d09", + "length_a": 128, + "length_b": 128, + "common_prefix": 13, + "identical": false, + "first_div": 13, + "token_a": 65967, + "token_b": 28069 + }, + { + "prompt_id": "d10", + "length_a": 128, + "length_b": 128, + "common_prefix": 96, + "identical": false, + "first_div": 96, + "token_a": 1483, + "token_b": 1132 + }, + { + "prompt_id": "d11", + "length_a": 128, + "length_b": 128, + "common_prefix": 93, + "identical": false, + "first_div": 93, + "token_a": 22892, + "token_b": 82240 + }, + { + "prompt_id": "d12", + "length_a": 128, + "length_b": 128, + "common_prefix": 11, + "identical": false, + "first_div": 11, + "token_a": 321, + "token_b": 1228 + }, + { + "prompt_id": "d13", + "length_a": 128, + "length_b": 128, + "common_prefix": 33, + "identical": false, + "first_div": 33, + "token_a": 11, + "token_b": 13 + }, + { + "prompt_id": "d14", + "length_a": 128, + "length_b": 128, + "common_prefix": 40, + "identical": false, + "first_div": 40, + "token_a": 513, + "token_b": 635 + }, + { + "prompt_id": "d15", + "length_a": 128, + "length_b": 128, + "common_prefix": 76, + "identical": false, + "first_div": 76, + "token_a": 11290, + "token_b": 58562 + } + ] + }, + "tokenizerValidatedAgainstRecordedHF": true, + "notes": [ + "Recorded prior logit observations are reused only for exact prompt/position/token tuples against the same frozen HF oracle.", + "Matching prior scores are observations, not proof of all-model numerical equivalence.", + "Uncovered divergences remain unverified. No speed or model qualification verdict follows from request success alone." + ] +} diff --git a/q35-9b/results/LLOMEGA8-CORPUS-20261029.json b/q35-9b/results/LLOMEGA8-CORPUS-20261029.json new file mode 100644 index 0000000..ccbaa1f --- /dev/null +++ b/q35-9b/results/LLOMEGA8-CORPUS-20261029.json @@ -0,0 +1,43 @@ +{ + "at": "2026-10-29T12:42:21.344Z", + "scope": "Full16prompt request and GPU placement verification, not final model accuracy or performance", + "successfulRequests": 16, + "configurationCorrection": "--no-repack; same GGUF and backend as failed prior placement attempt", + "placement": "PASS_ALL_THREE_OPERATIONS", + "profile": [ + "omega-gb10-profile op=RMS_NORM calls=316066 ms=36257.777", + "omega-gb10-profile op=MUL_MAT calls=514370 ms=522851.372", + "omega-gb10-profile op=SWIGLU calls=66096 ms=8265.802" + ], + "forbiddenLibraries": [], + "backendSource": "9b1d3d5", + "files": [ + { + "name": "LLOMEGA8.jsonl", + "sha256": "dec6aacd41fbc2782c6982a70b538bccab855c02df7d5f0514fdc604916331b4" + }, + { + "name": "LLOMEGA8-maps-after-inference.txt", + "sha256": "15e369b8bfeb0f3dc330c0c02796aa22a9868a57c6a7b4c63f98857e364f5494" + } + ], + "tokenAnalysis": "llomega8-corrected-token-audit.json", + "sharedRestoration": { + "runnerExit": 0, + "health": { + "busy": false, + "concurrency": 8, + "engine": "omega-qwen36-batch", + "in_flight": 1, + "model": "qwen3.6-35b-a3b-fp8", + "status": "ok", + "uptime_s": 15 + } + }, + "referenceTokenizerValidated": true, + "observationCounts": { + "IDENTICAL": 1, + "EXACT_PRIOR_TUPLE": 9, + "NEEDS_ORACLE_OBSERVATION": 6 + } +} diff --git a/q35-9b/results/PENDING-REFERENCE-20261029.json b/q35-9b/results/PENDING-REFERENCE-20261029.json new file mode 100644 index 0000000..744e2e3 --- /dev/null +++ b/q35-9b/results/PENDING-REFERENCE-20261029.json @@ -0,0 +1,1196 @@ +{ + "status": "UNOBSERVED_REFERENCE_REQUESTS", + "reason": "Existing independent HF model driver requires Python, forbidden by current AGENTS.md. Saved exact contexts; no borrowed or inferred scores.", + "at": "2026-10-29T12:43:51.696Z", + "sourceAudits": [ + "token-audit-1.json", + "llomega8-corrected-token-audit.json" + ], + "requests": [ + { + "prompt_id": "d04", + "prompt": "Write a long, detailed essay of at least 600 words about the first transatlantic telegraph cable. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 33498, + 314, + 279, + 1118, + 1308, + 57331, + 7902, + 7712, + 4293, + 14231, + 12965, + 430, + 799, + 314, + 279, + 1379, + 5944, + 18840, + 14246, + 61165, + 303, + 3611, + 3712, + 11, + 264, + 75098, + 52008, + 421, + 41080, + 27811, + 279, + 3199, + 314, + 3521, + 10222, + 321, + 70958, + 45410, + 13, + 43977, + 303, + 220, + 16, + 23, + 20, + 23, + 11, + 411, + 2313, + 15631, + 310, + 13759, + 279, + 12401, + 495, + 91159, + 314, + 279, + 21678, + 20915, + 440, + 449, + 43860 + ], + "position": 64, + "oracle_token": 73917, + "candidate_token": 7712, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA16" + ] + }, + { + "prompt_id": "d00", + "prompt": "Write a long, detailed essay of at least 600 words about the history of the printing press. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 26257, + 314, + 279, + 17933, + 3379, + 12965, + 430, + 799, + 314, + 279, + 1379, + 57733, + 13543, + 303, + 3611, + 3712, + 11, + 41080, + 57805, + 279, + 33534, + 314, + 33760, + 11, + 6337, + 83672, + 11, + 321, + 12387, + 14931, + 13, + 12851, + 1141, + 11017, + 11, + 279, + 5492, + 314, + 6265, + 557, + 264, + 94243, + 11, + 9050, + 83992, + 1817, + 421, + 6973, + 50235, + 310, + 279, + 20059, + 321, + 279, + 60379, + 13, + 561, + 8869, + 494 + ], + "position": 60, + "oracle_token": 279, + "candidate_token": 1375, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8" + ] + }, + { + "prompt_id": "d01", + "prompt": "Write a long, detailed essay of at least 600 words about how a river delta forms. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 17465, + 314, + 264, + 14367, + 9197, + 369, + 799, + 314, + 279, + 1379, + 26811, + 321, + 6150, + 82240, + 11036, + 383, + 8964, + 11, + 13661, + 279, + 1534, + 12096, + 303, + 279, + 2199, + 10458, + 314, + 264, + 14367, + 13, + 1049, + 369, + 264, + 8476, + 17865, + 1332, + 279, + 79384, + 11, + 40725, + 520, + 2279, + 314, + 34338, + 2919, + 6486, + 1560, + 310, + 279, + 11012, + 11, + 51690, + 8177, + 314, + 56084, + 362, + 13, + 357, + 9197, + 7346, + 506, + 279, + 10463, + 314, + 264, + 14367, + 11, + 1332, + 424, + 27891, + 264, + 10932, + 2407, + 314, + 2919, + 11, + 1680, + 430 + ], + "position": 79, + "oracle_token": 264, + "candidate_token": 449, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8", + "LLOMEGA8_NO_REPACK" + ] + }, + { + "prompt_id": "d02", + "prompt": "Write a long, detailed essay of at least 600 words about the life cycle of a star. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 2199, + 10458, + 314, + 264, + 6561, + 369, + 799, + 314, + 279, + 1379, + 26281, + 321, + 54231, + 55361, + 303, + 279, + 79699, + 11, + 264, + 11285, + 421, + 42824, + 11391, + 310, + 30995, + 314, + 1578, + 321, + 76511, + 279, + 1546, + 13486, + 314, + 4766, + 430, + 567, + 1366, + 424, + 13 + ], + "position": 40, + "oracle_token": 1061, + "candidate_token": 25215, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8" + ] + }, + { + "prompt_id": "d04", + "prompt": "Write a long, detailed essay of at least 600 words about the first transatlantic telegraph cable. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 33498, + 314, + 279, + 1118, + 1308, + 57331, + 7902, + 7712, + 4293, + 14231, + 12965, + 430, + 799, + 314, + 279, + 1379, + 5944, + 18840, + 14246, + 61165, + 303, + 3611, + 3712, + 11, + 264, + 75098, + 52008, + 421, + 41080, + 27811, + 279, + 3199, + 314, + 3521, + 10222, + 321, + 70958, + 45410, + 13, + 43977, + 303, + 220, + 16, + 23, + 20, + 23, + 11, + 411, + 2313, + 15631, + 310, + 13759, + 279, + 12401, + 495, + 91159, + 314, + 279, + 21678, + 20915, + 440, + 449, + 43860, + 73917, + 12506, + 314, + 75010, + 19132, + 16779, + 11, + 26600, + 59993, + 279, + 1814, + 494, + 5381, + 314, + 48345, + 854, + 310, + 17003, + 4276, + 314, + 17822, + 13, + 561, + 10806, + 364, + 1680, + 264, + 3511 + ], + "position": 92, + "oracle_token": 557, + "candidate_token": 995, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8" + ] + }, + { + "prompt_id": "d05", + "prompt": "Write a long, detailed essay of at least 600 words about how bees choose a new hive site. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 5307, + 26847, + 1817, + 314, + 264, + 24924, + 30976, + 58791, + 310, + 3186, + 264, + 491, + 2046, + 369, + 799, + 314, + 279, + 1379, + 25924, + 9989, + 314, + 46362, + 10903, + 303, + 279, + 9572, + 24284, + 13, + 1049, + 369, + 264, + 6150, + 11, + 7072, + 48470, + 5488, + 421, + 17077, + 8765, + 314, + 7529, + 11, + 54231 + ], + "position": 44, + "oracle_token": 10222, + "candidate_token": 11153, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8" + ] + }, + { + "prompt_id": "d06", + "prompt": "Write a long, detailed essay of at least 600 words about a day in a medieval market town. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 37119, + 17758, + 524, + 440, + 279, + 68065, + 9694, + 314, + 19053, + 11, + 694, + 440, + 279, + 27163, + 20569, + 11, + 8545, + 270, + 643, + 314, + 264, + 3565, + 31923, + 579, + 22725, + 2272, + 449, + 449, + 43743, + 11, + 264, + 4950, + 421, + 16545, + 430, + 279 + ], + "position": 37, + "oracle_token": 1118, + "candidate_token": 3177, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8", + "LLOMEGA8_NO_REPACK" + ] + }, + { + "prompt_id": "d07", + "prompt": "Write a long, detailed essay of at least 600 words about the physics of a bicycle. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 33828, + 12965, + 430, + 799, + 314, + 279, + 1379, + 24956, + 321, + 10727, + 12282, + 3397, + 47434, + 539, + 3611, + 14246, + 11, + 264, + 58170, + 310, + 279, + 45305, + 17066, + 314, + 27882, + 28079, + 321, + 3558, + 7785, + 13, + 2332, + 1141, + 6007, + 11, + 279, + 33828, + 369, + 264, + 3788, + 303, + 279, + 27676, + 314, + 4649, + 321, + 279, + 32570, + 314, + 8177, + 11, + 10377, + 264, + 35896, + 310, + 36303, + 25704, + 440, + 264, + 18830, + 314, + 279, + 4879, + 2483, + 539, + 264, + 14780, + 466, + 264, + 8604, + 7083, + 13, + 1946, + 3418, + 279, + 20665, + 314, + 264, + 33828, + 369, + 310, + 12804, + 279, + 34036, + 7915, + 1881, + 88129, + 28240, + 11, + 37296, + 11, + 32338, + 76214, + 11, + 321, + 279, + 23016, + 16126, + 314, + 1141, + 6599, + 13, + 1049, + 369, + 264, + 5484, + 421, + 687, + 536, + 279, + 40302, + 21551, + 421, + 42371, + 369 + ], + "position": 115, + "oracle_token": 2590, + "candidate_token": 2577, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8" + ] + }, + { + "prompt_id": "d08", + "prompt": "Write a long, detailed essay of at least 600 words about how glaciers shape valleys. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 17454, + 314, + 264, + 52941, + 15822, + 17865, + 1083, + 264, + 91491, + 11, + 533, + 33582, + 32469, + 369, + 799, + 314, + 279, + 1379, + 21100, + 321, + 50032, + 4138, + 314, + 6775, + 11, + 264, + 58170, + 310, + 279, + 36534, + 2279, + 314, + 9561, + 13, + 5788, + 34343, + 513, + 279, + 5839, + 12636, + 314, + 55090, + 383, + 8964, + 11, + 74068, + 680, + 279, + 629, + 33582, + 628, + 88, + 2305, + 567, + 3428, + 21270, + 440, + 1274, + 11715, + 518, + 5524, + 11, + 91420, + 14061, + 383, + 264, + 50260, + 2086, + 5281, + 321, + 440, + 264, + 12103, + 21461, + 18550, + 13, + 3095, + 264, + 90533, + 10480, + 11, + 424, + 1503, + 524, + 15756, + 6195, + 1040, + 2919, + 26, + 424, + 13653, + 430, + 264, + 93493, + 11, + 6103, + 82520, + 76148, + 78, + 6850, + 11, + 264, + 16365, + 5484, + 11, + 321, + 264, + 25911, + 269 + ], + "position": 110, + "oracle_token": 421, + "candidate_token": 12506, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLAMA8" + ] + }, + { + "prompt_id": "d07", + "prompt": "Write a long, detailed essay of at least 600 words about the physics of a bicycle. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 33828, + 12965, + 430, + 799, + 314, + 279, + 1379, + 24956, + 321, + 10727, + 12282, + 3397, + 47434, + 539, + 3611, + 14246, + 11, + 264, + 58170, + 310, + 279, + 45305, + 17066, + 314, + 27882, + 28079, + 321, + 3558, + 7785, + 13, + 2332, + 1141, + 6007, + 11, + 279, + 33828, + 369, + 264, + 3788, + 303, + 279, + 27676, + 314, + 4649, + 321, + 279, + 32570, + 314, + 8177, + 11, + 10377, + 264, + 35896, + 310, + 36303, + 25704, + 440, + 264, + 18830, + 314, + 279, + 4879, + 2483, + 539, + 264, + 14780, + 466, + 264, + 8604, + 7083, + 13, + 1946, + 3418, + 279, + 20665, + 314, + 264, + 33828, + 369, + 310, + 12804, + 279, + 34036, + 7915, + 1881, + 88129, + 28240, + 11, + 37296, + 11, + 32338, + 76214, + 11, + 321, + 279, + 23016, + 16126, + 314, + 1141, + 6599, + 13, + 1049, + 369, + 264, + 5484, + 421, + 687, + 536, + 279, + 40302, + 21551, + 421, + 42371 + ], + "position": 114, + "oracle_token": 369, + "candidate_token": 5978, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLOMEGA8_NO_REPACK" + ] + }, + { + "prompt_id": "d09", + "prompt": "Write a long, detailed essay of at least 600 words about the invention of the mechanical clock. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 26257, + 314, + 279, + 21461, + 8598, + 12965, + 430, + 799, + 314, + 279, + 1379, + 26281, + 28069, + 27700, + 303, + 3611, + 3712, + 11, + 33767, + 264, + 48603, + 1387, + 494, + 279, + 16845, + 77935, + 314, + 6775, + 310, + 279, + 31768, + 11, + 9966, + 21916, + 15579, + 314, + 3611, + 14246, + 13, + 12851, + 279, + 11017, + 314, + 279, + 21461, + 8598, + 11, + 854, + 557, + 264, + 15133, + 7059, + 11, + 16384, + 539, + 279, + 15589, + 321, + 6047, + 314, + 279, + 6797, + 11, + 279, + 33286, + 314, + 279, + 17257, + 11, + 466, + 279, + 19074, + 314, + 9002, + 303, + 6258, + 70, + 32748, + 13, + 4081, + 5245, + 998, + 46484 + ], + "position": 84, + "oracle_token": 3759, + "candidate_token": 16829, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLOMEGA8_NO_REPACK" + ] + }, + { + "prompt_id": "d11", + "prompt": "Write a long, detailed essay of at least 600 words about how coral reefs grow. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 34, + 9527, + 88559, + 3875, + 799, + 314, + 279, + 1379, + 6150, + 321, + 31883, + 58801, + 383, + 8964, + 11, + 3428, + 13464, + 310, + 430, + 279, + 328, + 28142, + 1278, + 35080, + 314, + 279, + 9117, + 1, + 4016, + 310, + 836, + 36534, + 69572, + 13, + 4213, + 11, + 23221, + 279, + 74356, + 1287, + 314, + 7736, + 321, + 279, + 86088, + 27657, + 2199, + 14995, + 264, + 22551, + 1817, + 421, + 369, + 2107, + 16323, + 6103, + 321, + 47002, + 56696, + 13, + 561, + 6310, + 314, + 264, + 50255, + 67673, + 369, + 524, + 279, + 1067, + 314, + 264, + 3074, + 44483, + 4599, + 264, + 5759, + 11, + 694, + 4598, + 264, + 64401, + 58958, + 14859, + 1881, + 13280, + 9605, + 321, + 85928, + 65562, + 11, + 10042, + 888 + ], + "position": 93, + "oracle_token": 22892, + "candidate_token": 82240, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLOMEGA8_NO_REPACK" + ] + }, + { + "prompt_id": "d14", + "prompt": "Write a long, detailed essay of at least 600 words about how volcanoes create new islands. Use several paragraphs and do not stop early.", + "oracle_prefix_ids": [ + 760, + 17465, + 314, + 63834, + 28053, + 369, + 799, + 314, + 279, + 1379, + 21100, + 321, + 83353, + 11036, + 303, + 279, + 8964, + 579, + 82240, + 3712, + 11, + 13661, + 264, + 18677, + 7796, + 1881, + 279, + 11247, + 579, + 20947, + 1893, + 14362, + 321, + 1141, + 6235, + 7520, + 38300, + 13, + 4081, + 28053, + 635, + 524, + 4833, + 23626, + 26, + 4598, + 11, + 781, + 513, + 279, + 1067, + 314, + 11391, + 314, + 1578, + 314, + 24207, + 82240, + 5524, + 11, + 1332, + 36534, + 7035, + 321, + 8364, + 494, + 5365, + 2785, + 279, + 68051, + 5176, + 836, + 1560, + 310, + 279, + 7099, + 11, + 25193, + 4599, + 4128, + 25490, + 287 + ], + "position": 82, + "oracle_token": 494, + "candidate_token": 680, + "oracle_source_sha256": "fcdf4ba690e7900c90b8d16e8e799546d24b5187bf41b930363d5a8e9ea91d28", + "arms": [ + "LLOMEGA8_NO_REPACK" + ] + } + ] +} diff --git a/q35-9b/results/REFERENCE-OBSERVATIONS-20261029.jsonl b/q35-9b/results/REFERENCE-OBSERVATIONS-20261029.jsonl new file mode 100644 index 0000000..0f38db4 --- /dev/null +++ b/q35-9b/results/REFERENCE-OBSERVATIONS-20261029.jsonl @@ -0,0 +1,13 @@ +{"arm": "LLAMA16", "prompt_id": "d04", "oracle_len": 128, "arm_len": 128, "first_div": 64, "oracle_tok": 73917, "arm_tok": 7712, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -1.665413498878479, "logprob_arm_tok": -1.790413498878479, "oracle_piece": " conduit", "arm_piece": " tele"} +{"arm": "LLAMA8", "prompt_id": "d00", "oracle_len": 128, "arm_len": 128, "first_div": 60, "oracle_tok": 279, "arm_tok": 1375, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -1.2271150350570679, "logprob_arm_tok": -1.3521150350570679, "oracle_piece": " the", "arm_piece": " hand"} +{"arm": "LLAMA8", "prompt_id": "d01", "oracle_len": 128, "arm_len": 128, "first_div": 79, "oracle_tok": 264, "arm_tok": 449, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -0.6326383948326111, "logprob_arm_tok": -0.7576383948326111, "oracle_piece": " a", "arm_piece": " an"} +{"arm": "LLAMA8", "prompt_id": "d02", "oracle_len": 128, "arm_len": 128, "first_div": 40, "oracle_tok": 1061, "arm_tok": 25215, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.25, "arm_tok_rank": 1, "logprob_oracle_tok": -1.0752676725387573, "logprob_arm_tok": -1.3252676725387573, "oracle_piece": " This", "arm_piece": " Unlike"} +{"arm": "LLAMA8", "prompt_id": "d04", "oracle_len": 128, "arm_len": 128, "first_div": 92, "oracle_tok": 557, "arm_tok": 995, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.7243256568908691, "logprob_arm_tok": -0.7243256568908691, "oracle_piece": " was", "arm_piece": " had"} +{"arm": "LLAMA8", "prompt_id": "d05", "oracle_len": 128, "arm_len": 128, "first_div": 44, "oracle_tok": 10222, "arm_tok": 11153, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -0.6856847405433655, "logprob_arm_tok": -0.8106847405433655, "oracle_piece": " communication", "arm_piece": " chemical"} +{"arm": "LLAMA8", "prompt_id": "d06", "oracle_len": 128, "arm_len": 128, "first_div": 37, "oracle_tok": 1118, "arm_tok": 3177, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -1.8486727476119995, "logprob_arm_tok": -1.9736727476119995, "oracle_piece": " first", "arm_piece": " city"} +{"arm": "LLAMA8", "prompt_id": "d07", "oracle_len": 128, "arm_len": 128, "first_div": 115, "oracle_tok": 2590, "arm_tok": 2577, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.0838810205459595, "logprob_arm_tok": -1.0838810205459595, "oracle_piece": " always", "arm_piece": " better"} +{"arm": "LLAMA8", "prompt_id": "d08", "oracle_len": 128, "arm_len": 128, "first_div": 110, "oracle_tok": 421, "arm_tok": 12506, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -1.2555303573608398, "logprob_arm_tok": -1.1305303573608398, "oracle_piece": " that", "arm_piece": " capable"} +{"arm": "LLOMEGA8_NO_REPACK", "prompt_id": "d07", "oracle_len": 128, "arm_len": 128, "first_div": 114, "oracle_tok": 369, "arm_tok": 5978, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.1322638988494873, "logprob_arm_tok": -1.1322638988494873, "oracle_piece": " is", "arm_piece": " objects"} +{"arm": "LLOMEGA8_NO_REPACK", "prompt_id": "d09", "oracle_len": 128, "arm_len": 128, "first_div": 84, "oracle_tok": 3759, "arm_tok": 16829, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.2174102067947388, "logprob_arm_tok": -1.2174102067947388, "oracle_piece": " variable", "arm_piece": " tied"} +{"arm": "LLOMEGA8_NO_REPACK", "prompt_id": "d11", "oracle_len": 128, "arm_len": 128, "first_div": 93, "oracle_tok": 22892, "arm_tok": 82240, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.30898916721344, "logprob_arm_tok": -1.30898916721344, "oracle_piece": " centuries", "arm_piece": " geological"} +{"arm": "LLOMEGA8_NO_REPACK", "prompt_id": "d14", "oracle_len": 128, "arm_len": 128, "first_div": 82, "oracle_tok": 494, "arm_tok": 680, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.8281126618385315, "logprob_arm_tok": -0.8281126618385315, "oracle_piece": " from", "arm_piece": " out"} diff --git a/q35-9b/results/REFERENCE-RECEIPT-20261029.json b/q35-9b/results/REFERENCE-RECEIPT-20261029.json new file mode 100644 index 0000000..060e288 --- /dev/null +++ b/q35-9b/results/REFERENCE-RECEIPT-20261029.json @@ -0,0 +1,228 @@ +{ + "at": "2026-10-29T12:54:12.967Z", + "verdict": "ALL_REQUESTED_CONTEXTS_OBSERVED", + "cases": 13, + "exactContextIdentityValidated": true, + "finiteScores": true, + "rows": [ + { + "arm": "LLAMA16", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 64, + "oracle_tok": 73917, + "arm_tok": 7712, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.665413498878479, + "logprob_arm_tok": -1.790413498878479, + "oracle_piece": " conduit", + "arm_piece": " tele" + }, + { + "arm": "LLAMA8", + "prompt_id": "d00", + "oracle_len": 128, + "arm_len": 128, + "first_div": 60, + "oracle_tok": 279, + "arm_tok": 1375, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.2271150350570679, + "logprob_arm_tok": -1.3521150350570679, + "oracle_piece": " the", + "arm_piece": " hand" + }, + { + "arm": "LLAMA8", + "prompt_id": "d01", + "oracle_len": 128, + "arm_len": 128, + "first_div": 79, + "oracle_tok": 264, + "arm_tok": 449, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -0.6326383948326111, + "logprob_arm_tok": -0.7576383948326111, + "oracle_piece": " a", + "arm_piece": " an" + }, + { + "arm": "LLAMA8", + "prompt_id": "d02", + "oracle_len": 128, + "arm_len": 128, + "first_div": 40, + "oracle_tok": 1061, + "arm_tok": 25215, + "logit_gap": 0.25, + "oracle_top1_top2_gap": 0.25, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.0752676725387573, + "logprob_arm_tok": -1.3252676725387573, + "oracle_piece": " This", + "arm_piece": " Unlike" + }, + { + "arm": "LLAMA8", + "prompt_id": "d04", + "oracle_len": 128, + "arm_len": 128, + "first_div": 92, + "oracle_tok": 557, + "arm_tok": 995, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.7243256568908691, + "logprob_arm_tok": -0.7243256568908691, + "oracle_piece": " was", + "arm_piece": " had" + }, + { + "arm": "LLAMA8", + "prompt_id": "d05", + "oracle_len": 128, + "arm_len": 128, + "first_div": 44, + "oracle_tok": 10222, + "arm_tok": 11153, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -0.6856847405433655, + "logprob_arm_tok": -0.8106847405433655, + "oracle_piece": " communication", + "arm_piece": " chemical" + }, + { + "arm": "LLAMA8", + "prompt_id": "d06", + "oracle_len": 128, + "arm_len": 128, + "first_div": 37, + "oracle_tok": 1118, + "arm_tok": 3177, + "logit_gap": 0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 1, + "logprob_oracle_tok": -1.8486727476119995, + "logprob_arm_tok": -1.9736727476119995, + "oracle_piece": " first", + "arm_piece": " city" + }, + { + "arm": "LLAMA8", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 115, + "oracle_tok": 2590, + "arm_tok": 2577, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.0838810205459595, + "logprob_arm_tok": -1.0838810205459595, + "oracle_piece": " always", + "arm_piece": " better" + }, + { + "arm": "LLAMA8", + "prompt_id": "d08", + "oracle_len": 128, + "arm_len": 128, + "first_div": 110, + "oracle_tok": 421, + "arm_tok": 12506, + "logit_gap": -0.125, + "oracle_top1_top2_gap": 0.125, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2555303573608398, + "logprob_arm_tok": -1.1305303573608398, + "oracle_piece": " that", + "arm_piece": " capable" + }, + { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d07", + "oracle_len": 128, + "arm_len": 128, + "first_div": 114, + "oracle_tok": 369, + "arm_tok": 5978, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.1322638988494873, + "logprob_arm_tok": -1.1322638988494873, + "oracle_piece": " is", + "arm_piece": " objects" + }, + { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d09", + "oracle_len": 128, + "arm_len": 128, + "first_div": 84, + "oracle_tok": 3759, + "arm_tok": 16829, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.2174102067947388, + "logprob_arm_tok": -1.2174102067947388, + "oracle_piece": " variable", + "arm_piece": " tied" + }, + { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d11", + "oracle_len": 128, + "arm_len": 128, + "first_div": 93, + "oracle_tok": 22892, + "arm_tok": 82240, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -1.30898916721344, + "logprob_arm_tok": -1.30898916721344, + "oracle_piece": " centuries", + "arm_piece": " geological" + }, + { + "arm": "LLOMEGA8_NO_REPACK", + "prompt_id": "d14", + "oracle_len": 128, + "arm_len": 128, + "first_div": 82, + "oracle_tok": 494, + "arm_tok": 680, + "logit_gap": 0, + "oracle_top1_top2_gap": 0, + "arm_tok_rank": 0, + "logprob_oracle_tok": -0.8281126618385315, + "logprob_arm_tok": -0.8281126618385315, + "oracle_piece": " from", + "arm_piece": " out" + } + ], + "runnerExit": 0, + "image": "nvcr.io/nvidia/vllm@sha256:557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2", + "rawSha256": "fd911cbddb1df5a32b8e436af2206e677d9dbdfe4fcf533f485aa970667e7092", + "sourceManifest": "reference-run-manifest-1.json", + "limits": [ + "Only first divergence at frozen oracle prefix; not later divergent continuations", + "No invented gap tolerance or whole-model equivalence verdict", + "LLAMA8 d08 candidate scores above frozen oracle token in this independent forward; negative gap preserved", + "External verification tool only; no Python added to Aien architecture" + ], + "restoration": "Shared original model health ok observed after runner exit" +} diff --git a/q35-9b/results/WEIGHTS.md b/q35-9b/results/WEIGHTS.md new file mode 100644 index 0000000..4b578ee --- /dev/null +++ b/q35-9b/results/WEIGHTS.md @@ -0,0 +1,21 @@ +# Same weights on both sides (BF16 headline pair) + +Source: HF Qwen/Qwen3.5-9B rev c202236235762e1c871ad0ccb60c8ee5ba337b9a. All files pass sha256 against `qwen3.5-9b-c2022362.sha256`. +- OURS16 reads the safetensors directly. +- LLAMA16 reads `q35-9b-bf16.gguf` (sha256 5d6fe481317c2570d8e136d6d6da7b33c97f5de4064f96a14b4ea46b8b80a9bb), made by `convert_hf_to_gguf.py --outtype bf16` from llama.cpp tree 7aca0d2ea. + +Checked tensor by tensor with cmp_weights.py, cmp_weights2.py and cmp_ssm_a.py, which run in nvcr.io/nvidia/vllm:26.09-py3 with gguf-py taken from the same llama.cpp tree. + +The GGUF has 442 tensors. 15 belong to the MTP head (blk.32.*, nextn.*); the HF checkpoint has that head too (mtp.*, excluded here), and neither engine uses it for plain decoding. The other 427 match the 427 text tensors of the safetensors one-to-one (130 + 120 + 72 + 81 + 24 = 427 below). + +| GGUF tensors | Relation to the HF tensor | Count | +|---|---|---| +| ffn_up/gate/down, full-attention q/k/v/output, token_embd, output | byte-identical | 130 | +| linear-attention attn_qkv, attn_gate, ssm_alpha, ssm_beta, ssm_out (BF16) | same values, rows reordered by the converter (value-head order) | 120 | +| ssm_conv1d, ssm_dt.bias, ssm_norm (F32) | same values, widened exactly to F32, reordered | 72 | +| attn_norm, post_attention_norm, q_norm, k_norm, output_norm (F32) | exactly 1 + w (Qwen3.5 stores zero-centred RMSNorm weights; llama.cpp folds the +1 in) | 81 | +| ssm_a (F32) | exactly −exp(A_log), 0 ULP difference after sorting, reordered | 24 | + +"Same values" means the sorted multiset of float32 values is identical. Both engines therefore compute with the same numbers. Only the storage layout differs. + +Raw output: weights-cmp.json, weights-cmp2.txt, weights-cmp-ssm_a.txt. diff --git a/q35-9b/results/WEIGHTS.md.correction.json b/q35-9b/results/WEIGHTS.md.correction.json new file mode 100644 index 0000000..5ad9512 --- /dev/null +++ b/q35-9b/results/WEIGHTS.md.correction.json @@ -0,0 +1,28 @@ +{ + "status": "PARTIAL_LAYOUT_UNVERIFIED", + "target": "WEIGHTS.md", + "target_sha256": "c018e655d86c37980b9da4e40fe510ea78fb0af4eb7694587db4f241aa9e8691", + "checker": "q35-9b/tools/cmp_weights2.py", + "checker_sha256": "a49198974a06a590b98794ae8ff07925fdc9104579e86f07e527c8f1ec3b9dca", + "finding": "The checker hashes sorted float values. Equal sorted values establish a multiset match, not the required axis/head permutation or a functional equivalence proof.", + "preserved": "The original document and receipts are unchanged. Fresh HF and GGUF file hashes match their saved manifests. This finding does not demonstrate that the model conversion is wrong.", + "admission": "Do not use sorted-value equality alone to qualify weight-layout equivalence. Verify named tensors against the explicit converter permutations and numeric transforms.", + "counterexample": { + "kind": "MODELED logical counterexample, not a hardware measurement", + "wolfram_query": "With[{a = {{1, 2}, {3, 4}}, b = {{3, 4}, {1, 2}}, x = {1, 0}}, <|\"SameSortedValues\" -> (Sort[Flatten[a]] == Sort[Flatten[b]]), \"SameOutput\" -> (a.x == b.x), \"Outputs\" -> {a.x, b.x}|>]", + "wolfram_result": {"SameSortedValues":true,"SameOutput":false,"Outputs":[[1,3],[3,1]]} + }, + "source_for_followup": { + "llama_cpp": "7aca0d2ea8d92b56911233b822db01f9fbb1ae50", + "path": "conversion/qwen.py", + "entrypoints": ["_LinearAttentionVReorderBase._reorder_v_heads", "_LinearAttentionVReorderBase.modify_tensors", "Qwen3NextModel.modify_tensors", "Qwen3_5TextModel"], + "requirements": [ + "Q/K/V split: preserve Q and K, permute V rows by the declared key/value-head layout", + "Gate and alpha/beta projection row permutations", + "Output-projection column permutation", + "Conv1d V-channel and one-dimensional parameter permutations", + "Exact widening, zero-centred norm folding and A_log transformation checks", + "Negative controls with preserved multisets and deliberately wrong ordering must fail" + ] + } +} diff --git a/q35-9b/results/WEIGHTS.md.ordered-verification.json b/q35-9b/results/WEIGHTS.md.ordered-verification.json new file mode 100644 index 0000000..006fe0c --- /dev/null +++ b/q35-9b/results/WEIGHTS.md.ordered-verification.json @@ -0,0 +1,47 @@ +{ + "status": "ORDERED_FILE_TRANSFORMS_VERIFIED", + "scope": "Pinned Q35-9B text checkpoint file conversion; not inference or performance qualification", + "previous_record": "WEIGHTS.md.correction.json", + "historical_document_sha256": "c018e655d86c37980b9da4e40fe510ea78fb0af4eb7694587db4f241aa9e8691", + "source": "llama.cpp7aca0d2ea8d92b56911233b822db01f9fbb1ae50 conversion/qwen.py", + "model": "Qwen/Qwen3.5-9B c202236235762e1c871ad0ccb60c8ee5ba337b9a", + "result": { + "namedTextTensors": 427, + "exact": 427, + "mismatches": 0, + "ggufMtpExcluded": 15 + }, + "report_sha256": "b84dcccda0ad93ca41d4f8d847809661d263888cdb3468e7db28fb366328d0f4", + "checker_sources": { + "weight-files.mjs": "b65be19fcd1a13555a998362241d5b2de638cf5e438b7af7a720632b5eafd7d6", + "ordered-weights.mjs": "98a5e03fbb849aa8cd3d22b3b473babae907c8371236796ec4d71a912190d3c8", + "weight-numeric-glue.c": "cda71957fbdcbc3cb82ad64ace19e7dc5161ccf2f8d54aff06e6896ba53282e5", + "torch-cpu-exp.cpp": "be9b73394281c1bdae26601515ae51439b6096abb4fb3683cdc280f3e55a0589", + "torch-cpu-exp.sh": "8c9d39501bbe91021fe56682ad8c6d01bef6b719b63186dd72f2e6dcd64ad0bb", + "build-weight-oracles.sh": "a10aabf1e166fd17e5ebdcb1732e5476db2fb3aae15d21f1dbb6236a4b646a48", + "test-ordered-weights.mjs": "6cd6edfa8b2cc4f515e37079db3a3cb3a79afcdbd2d9c6e3a4918748483a6a21" + }, + "oracle_objects": { + "omega_kernel_object_sha256": "df724fe63c2e8c1c97459c044ff69bb5c40813ea393c0245b2cd3d028602a4cf", + "omega_glue_sha256": "b2e176217d25a4abdcd0e4cc05f963be314c72ec56f430b5007acf588cc8b1ee", + "aten_glue_sha256": "91c8584fcbddf6e6888af8f778ef6d91b31e5ee19842658b40d416bf727bf638", + "torch": "2.14.0a0+b2c75dd062.nv26.09", + "image_digest": "557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2", + "role": "Verification only; arithmetic calls use explicit CPU tensors. Library dependencies include libcudart; no absence claim." + }, + "controls": { + "synthetic": "6PASS", + "realTensorWrongOrder": "Rejected with unchanged value multiset; intended byte mismatch", + "numeric": "Omega and ATen controls match recorded Wolfram vectors; malformed bytes refused", + "rebuild": "Build-script rebuild is byte-identical to both tested numeric helpers" + }, + "preserved_failures": [ + "Initial name-map diagnostic (no model verdict)", + "Omega-only exponential mismatch in ordered-weight-check-2.json; no tolerance widened" + ], + "still_unverified": [ + "Fresh output-reference observations for9tuples", + "Full backend model qualification requiring an authorized exclusive window", + "Complete repeated timing campaign and final comparison" + ] +} diff --git a/q35-9b/results/gguf.sha256 b/q35-9b/results/gguf.sha256 new file mode 100644 index 0000000..2a305c6 --- /dev/null +++ b/q35-9b/results/gguf.sha256 @@ -0,0 +1,2 @@ +e1dc8c27e1a10b857fa9987f7456683a8f503583d83afa8fc749b0b5a0270b5c /home/drakestapleton/h2h/gguf/q35-9b-q8_0.gguf +5d6fe481317c2570d8e136d6d6da7b33c97f5de4064f96a14b4ea46b8b80a9bb /home/drakestapleton/h2h/gguf/q35-9b-bf16.gguf diff --git a/q35-9b/results/hf-weights.sha256 b/q35-9b/results/hf-weights.sha256 new file mode 100644 index 0000000..c22d16e --- /dev/null +++ b/q35-9b/results/hf-weights.sha256 @@ -0,0 +1,6 @@ +db6f444b43d318c92f360a13a25561a6a65b10c0631b8ed305a426dbaa6c380e model.safetensors-00001-of-00004.safetensors +31c7d7e2dd5d207840b31cc59083c8f4c4718959149e0358c0364052bb9a0330 model.safetensors-00002-of-00004.safetensors +7ec36ba3a4176a44c3c0876ad80c56a2f70c84bf008d82e9501df642f17dadec model.safetensors-00003-of-00004.safetensors +b62b0c4cd7e44edee103ee8f4fe225f246d5e768e07bfd5f25b63a8aa1fdd0c6 model.safetensors-00004-of-00004.safetensors +d0883072e01861ed0b2d47be3c16c36a8e81c224c7ffaa310c6558fb3f932b05 config.json +5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42 tokenizer.json diff --git a/q35-9b/results/ref/HF-ORACLE.jsonl b/q35-9b/results/ref/HF-ORACLE.jsonl new file mode 100644 index 0000000..f915e74 --- /dev/null +++ b/q35-9b/results/ref/HF-ORACLE.jsonl @@ -0,0 +1,16 @@ +{"prompt_id": "d00", "prompt_tokens": 43, "ids": [760, 26257, 314, 279, 17933, 3379, 12965, 430, 799, 314, 279, 1379, 57733, 13543, 303, 3611, 3712, 11, 41080, 57805, 279, 33534, 314, 33760, 11, 6337, 83672, 11, 321, 12387, 14931, 13, 12851, 1141, 11017, 11, 279, 5492, 314, 6265, 557, 264, 94243, 11, 9050, 83992, 1817, 421, 6973, 50235, 310, 279, 20059, 321, 279, 60379, 13, 561, 8869, 494, 279, 94990, 45248, 310, 279, 2973, 80584, 16218, 2081, 1467, 524, 15756, 2222, 1204, 1928, 557, 9476, 26, 424, 92745, 1452, 6337, 11, 53507, 279, 51413, 314, 279, 8983, 383, 7793, 11, 321, 16610, 279, 91472, 364, 279, 6278, 11991, 321, 19034, 89282, 13, 271, 760, 3255, 11690, 303, 13437, 5440, 11, 1332, 279, 7059, 314, 79733, 913, 557, 1118, 14607, 13, 31728, 279, 220, 16, 16, 337], "text": "The invention of the printing press stands as one of the most pivotal moments in human history, fundamentally altering the trajectory of civilization, knowledge dissemination, and cultural evolution. Before its advent, the production of books was a painstaking, labor-intensive process that limited literacy to the elite and the clergy. The transition from the handwritten manuscript to the mass-produced printed page did not merely change how information was stored; it democratized knowledge, shattered the monopoly of the Church on truth, and laid the groundwork for the modern scientific and intellectual revolutions.\n\nThe story begins in ancient China, where the concept of movable type was first realized. Around the 11th", "seconds": 13.893858432769775, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d01", "prompt_tokens": 42, "ids": [760, 17465, 314, 264, 14367, 9197, 369, 799, 314, 279, 1379, 26811, 321, 6150, 82240, 11036, 383, 8964, 11, 13661, 279, 1534, 12096, 303, 279, 2199, 10458, 314, 264, 14367, 13, 1049, 369, 264, 8476, 17865, 1332, 279, 79384, 11, 40725, 520, 2279, 314, 34338, 2919, 6486, 1560, 310, 279, 11012, 11, 51690, 8177, 314, 56084, 362, 13, 357, 9197, 7346, 506, 279, 10463, 314, 264, 14367, 11, 1332, 424, 27891, 264, 10932, 2407, 314, 2919, 11, 1680, 430, 264, 21128, 466, 449, 17415, 11, 466, 1332, 424, 26565, 3808, 264, 9766, 13983, 13, 1061, 8869, 9842, 369, 4364, 539, 264, 15346, 6206, 303, 4649, 25, 430, 279, 14367, 66828, 1441, 5028, 15783, 279, 7875, 11, 3428, 37564, 261, 466, 11679, 1223, 2407, 314, 2919, 11, 1141, 8390], "text": "The formation of a river delta is one of the most spectacular and complex geological processes on Earth, representing the final chapter in the life cycle of a river. It is a dynamic landscape where the turbulent, erosive power of flowing water gives way to the quiet, constructive forces of sedimentation. A delta forms at the mouth of a river, where it enters a standing body of water, such as a lake or an ocean, or where it flows across a flat plain. This transition zone is defined by a fundamental shift in energy: as the river slows down upon entering the larger, often denser or saltier body of water, its capacity", "seconds": 11.413035154342651, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d02", "prompt_tokens": 43, "ids": [760, 2199, 10458, 314, 264, 6561, 369, 799, 314, 279, 1379, 26281, 321, 54231, 55361, 303, 279, 79699, 11, 264, 11285, 421, 42824, 11391, 310, 30995, 314, 1578, 321, 76511, 279, 1546, 13486, 314, 4766, 430, 567, 1366, 424, 13, 1061, 73766, 45669, 11690, 303, 279, 8981, 11, 6121, 715, 314, 916, 74650, 3433, 11, 1332, 12401, 28552, 314, 6605, 321, 15333, 11, 3750, 430, 78078, 5432, 68, 11, 32524, 47733, 13, 4081, 78078, 5432, 68, 513, 15048, 22687, 314, 33536, 321, 93172, 11, 279, 230448, 88989, 494, 279, 5971, 16419, 11, 9238, 440, 11319, 14287, 314, 42371, 5255, 51411, 303, 3555, 21116, 314, 9467, 13, 9170, 279, 9870, 314, 22525, 11, 1439, 28552, 3060, 310, 17638, 11, 3428, 21433, 539, 10439, 55348, 494, 13643, 37504, 833, 5734], "text": "The life cycle of a star is one of the most profound and intricate narratives in the cosmos, a journey that spans millions to billions of years and dictates the very existence of matter as we know it. This celestial biography begins in the cold, dark void of interstellar space, where vast clouds of gas and dust, known as nebulae, drift silently. These nebulae are primarily composed of hydrogen and helium, the primordial leftovers from the Big Bang, mixed with trace amounts of heavier elements forged in previous generations of stars. Under the influence of gravity, these clouds begin to collapse, often triggered by shockwaves from nearby supernovae", "seconds": 11.232912063598633, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d03", "prompt_tokens": 43, "ids": [760, 11285, 314, 4599, 264, 21664, 14882, 539, 1375, 369, 524, 15756, 264, 7832, 2313, 26, 424, 369, 264, 26281, 20623, 1881, 3611, 7151, 321, 279, 5629, 1814, 13, 1049, 11690, 1248, 1518, 279, 1118, 6365, 314, 43299, 369, 3799, 11, 39527, 303, 264, 5365, 94005, 364, 279, 7009, 421, 668, 9297, 3512, 264, 25347, 12506, 314, 37496, 4519, 279, 5255, 13, 25215, 6278, 90000, 466, 9229, 38866, 82, 11, 864, 513, 3428, 2973, 80584, 303, 78828, 32931, 11, 264, 21664, 14882, 369, 8950, 494, 279, 13245, 11, 25432, 539, 279, 5888, 314, 279, 7131, 11, 321, 2574, 2199, 1472, 279, 26576, 321, 28342, 314, 279, 63887, 13, 1061, 1817, 7225, 264, 4752, 19717, 314, 30553, 10806, 11, 21461, 15579, 11, 321, 449, 40302, 8396, 314, 7339, 23177], "text": "The journey of building a wooden boat by hand is not merely a construction project; it is a profound dialogue between human intent and the natural world. It begins long before the first piece of timber is cut, rooted in a deep reverence for the materials that will eventually become a vessel capable of conquering the elements. Unlike modern fiberglass or steel hulls, which are often mass-produced in sterile factories, a wooden boat is born from the forest, shaped by the hands of the builder, and given life through the sweat and patience of the artisan. This process requires a unique blend of artistic vision, mechanical precision, and an intuitive understanding of wood grain", "seconds": 11.274898529052734, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d04", "prompt_tokens": 45, "ids": [760, 33498, 314, 279, 1118, 1308, 57331, 7902, 7712, 4293, 14231, 12965, 430, 799, 314, 279, 1379, 5944, 18840, 14246, 61165, 303, 3611, 3712, 11, 264, 75098, 52008, 421, 41080, 27811, 279, 3199, 314, 3521, 10222, 321, 70958, 45410, 13, 43977, 303, 220, 16, 23, 20, 23, 11, 411, 2313, 15631, 310, 13759, 279, 12401, 495, 91159, 314, 279, 21678, 20915, 440, 449, 43860, 73917, 12506, 314, 75010, 19132, 16779, 11, 26600, 59993, 279, 1814, 494, 5381, 314, 48345, 854, 310, 17003, 4276, 314, 17822, 13, 561, 10806, 364, 1680, 264, 3511, 557, 524, 491, 26, 2394, 279, 3988, 220, 16, 24, 337, 9018, 11, 16525, 1052, 321, 10806, 5262, 995, 54642, 314, 264, 328, 66, 470, 310, 279, 1814, 1288, 694, 279, 31465, 5281, 314, 279, 21678], "text": "The laying of the first transatlantic telegraph cable stands as one of the most audacious engineering feats in human history, a monumental endeavor that fundamentally altered the course of global communication and geopolitics. Completed in 1858, this project sought to bridge the vast expanse of the Atlantic Ocean with an underwater conduit capable of transmitting electrical signals, thereby shrinking the world from weeks of sailing time to mere minutes of transmission. The vision for such a connection was not new; since the early 19th century, inventors and visionaries had dreamed of a \"cable to the world,\" but the sheer scale of the Atlantic", "seconds": 11.2771737575531, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d05", "prompt_tokens": 44, "ids": [760, 5307, 26847, 1817, 314, 264, 24924, 30976, 58791, 310, 3186, 264, 491, 2046, 369, 799, 314, 279, 1379, 25924, 9989, 314, 46362, 10903, 303, 279, 9572, 24284, 13, 1049, 369, 264, 6150, 11, 7072, 48470, 5488, 421, 17077, 8765, 314, 7529, 11, 54231, 10222, 5757, 11, 321, 45332, 34780, 15977, 11, 660, 29853, 1973, 264, 3074, 8358, 7410, 40727, 10966, 13, 1061, 21079, 7465, 11, 3750, 430, 1953, 31810, 11, 369, 21433, 948, 264, 39585, 8772, 2166, 3349, 364, 1141, 1428, 22081, 11, 47973, 279, 27000, 310, 5106, 440, 264, 12961, 314, 279, 11525, 38152, 310, 5517, 264, 491, 39585, 13, 9358, 279, 58791, 682, 42465, 494, 279, 2235, 63298, 321, 13717, 264, 12955, 10337, 303, 264, 4757, 21736, 466, 4283, 3602, 11, 279, 804, 944, 314], "text": "The decision-making process of a honeybee swarm to select a new home is one of the most sophisticated examples of decentralized intelligence in the animal kingdom. It is a complex, multi-stage operation that involves thousands of individuals, intricate communication systems, and rigorous mathematical evaluation, all occurring without a single central leader issuing commands. This collective behavior, known as swarming, is triggered when a colony becomes too large for its current nest, prompting the queen to leave with a portion of the worker bees to establish a new colony. Once the swarm has detached from the old hive and formed a temporary cluster in a tree fork or similar location, the true work of", "seconds": 11.244654893875122, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d06", "prompt_tokens": 44, "ids": [760, 37119, 17758, 524, 440, 279, 68065, 9694, 314, 19053, 11, 694, 440, 279, 27163, 20569, 11, 8545, 270, 643, 314, 264, 3565, 31923, 579, 22725, 2272, 449, 449, 43743, 11, 264, 4950, 421, 16545, 430, 279, 1118, 16136, 8598, 364, 279, 20479, 6092, 314, 17739, 68507, 13, 12851, 279, 6797, 682, 6999, 1819, 23145, 279, 32946, 11, 279, 3594, 369, 11702, 440, 279, 39029, 314, 7339, 3445, 4587, 321, 38936, 9114, 11, 93028, 310, 279, 32709, 863, 10495, 13959, 421, 9662, 1881, 43299, 48683, 3486, 14533, 13, 4081, 13976, 11, 836, 13876, 288, 4476, 9485, 1676, 42067, 321, 836, 73685, 421, 2320, 440, 29025, 11, 15192, 9781, 2272, 799, 2361, 11, 6611, 14590, 51172, 2210, 1332, 279, 6353, 8337, 324, 13701, 1040, 264, 19261, 13, 1577, 279], "text": "The dawn breaks not with the chirping of birds, but with the rhythmic, heavy thud of a blacksmith's hammer against an anvil, a sound that serves as the first alarm clock for the sleeping town of Oakhaven. Before the sun has fully crested the horizon, the air is thick with the scent of woodsmoke and damp earth, clinging to the cobblestone streets that wind between timber-framed houses. These structures, their walls wattle-and-daub and their roofs thatched with straw, lean slightly against one another, creating narrow alleyways where the morning mist lingers like a ghost. As the", "seconds": 11.242910385131836, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d07", "prompt_tokens": 42, "ids": [760, 33828, 12965, 430, 799, 314, 279, 1379, 24956, 321, 10727, 12282, 3397, 47434, 539, 3611, 14246, 11, 264, 58170, 310, 279, 45305, 17066, 314, 27882, 28079, 321, 3558, 7785, 13, 2332, 1141, 6007, 11, 279, 33828, 369, 264, 3788, 303, 279, 27676, 314, 4649, 321, 279, 32570, 314, 8177, 11, 10377, 264, 35896, 310, 36303, 25704, 440, 264, 18830, 314, 279, 4879, 2483, 539, 264, 14780, 466, 264, 8604, 7083, 13, 1946, 3418, 279, 20665, 314, 264, 33828, 369, 310, 12804, 279, 34036, 7915, 1881, 88129, 28240, 11, 37296, 11, 32338, 76214, 11, 321, 279, 23016, 16126, 314, 1141, 6599, 13, 1049, 369, 264, 5484, 421, 687, 536, 279, 40302, 21551, 421, 42371, 369, 2590, 2577, 11, 4370, 37281, 383, 279, 15694, 314, 31007, 321, 22546, 310], "text": "The bicycle stands as one of the most elegant and efficient machines ever conceived by human engineering, a testament to the seamless integration of classical mechanics and material science. At its core, the bicycle is a study in the conservation of energy and the manipulation of forces, allowing a rider to traverse distances with a fraction of the effort required by a horse or a motor vehicle. To understand the physics of a bicycle is to explore the delicate balance between rotational dynamics, friction, aerodynamics, and the structural integrity of its components. It is a machine that defies the intuitive notion that heavier is always better, instead relying on the principles of leverage and momentum to", "seconds": 11.391676902770996, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d08", "prompt_tokens": 41, "ids": [760, 17454, 314, 264, 52941, 15822, 17865, 1083, 264, 91491, 11, 533, 33582, 32469, 369, 799, 314, 279, 1379, 21100, 321, 50032, 4138, 314, 6775, 11, 264, 58170, 310, 279, 36534, 2279, 314, 9561, 13, 5788, 34343, 513, 279, 5839, 12636, 314, 55090, 383, 8964, 11, 74068, 680, 279, 629, 33582, 628, 88, 2305, 567, 3428, 21270, 440, 1274, 11715, 518, 5524, 11, 91420, 14061, 383, 264, 50260, 2086, 5281, 321, 440, 264, 12103, 21461, 18550, 13, 3095, 264, 90533, 10480, 11, 424, 1503, 524, 15756, 6195, 1040, 2919, 26, 424, 13653, 430, 264, 93493, 11, 6103, 82520, 76148, 78, 6850, 11, 264, 16365, 5484, 11, 321, 264, 25911, 269, 421, 41080, 84567, 279, 1844, 5518, 314, 279, 4128, 23221, 424, 13, 561, 1817, 11690, 1248, 1518, 279], "text": "The transformation of a rugged mountain landscape into a serene, U-shaped valley is one of the most dramatic and enduring works of nature, a testament to the immense power of ice. While rivers are the primary agents of erosion on Earth, carving out the V-shaped canyons we often associate with fluvial activity, glaciers operate on a vastly different scale and with a distinct mechanical philosophy. When a glacier moves, it does not merely flow like water; it acts as a colossal, slow-moving bulldozer, a grinding machine, and a sculptor that fundamentally alters the topography of the land beneath it. The process begins long before the", "seconds": 11.375213623046875, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d09", "prompt_tokens": 43, "ids": [760, 26257, 314, 279, 21461, 8598, 12965, 430, 799, 314, 279, 1379, 26281, 28069, 27700, 303, 3611, 3712, 11, 33767, 264, 48603, 1387, 494, 279, 16845, 77935, 314, 6775, 310, 279, 31768, 11, 9966, 21916, 15579, 314, 3611, 14246, 13, 12851, 279, 11017, 314, 279, 21461, 8598, 11, 854, 557, 264, 15133, 7059, 11, 16384, 539, 279, 15589, 321, 6047, 314, 279, 6797, 11, 279, 33286, 314, 279, 17257, 11, 466, 279, 19074, 314, 9002, 303, 6258, 70, 32748, 13, 4081, 5245, 998, 46484, 3759, 26, 264, 71049, 1834, 8632, 874, 12098, 11, 321, 279, 2984, 314, 50273, 28028, 440, 279, 15127, 13, 561, 8869, 310, 21461, 854, 31324, 1467, 524, 15756, 3300, 264, 491, 1560, 310, 6420, 3979, 26, 424, 41080, 27811, 279, 5759, 314, 7975, 11], "text": "The invention of the mechanical clock stands as one of the most profound technological shifts in human history, marking a decisive break from the organic rhythms of nature to the rigid, quantifiable precision of human engineering. Before the advent of the mechanical clock, time was a fluid concept, measured by the rising and setting of the sun, the phases of the moon, or the burning of sand in hourglasses. These methods were inherently variable; a cloudy day offered no shadow, and the length of daylight shifted with the seasons. The transition to mechanical timekeeping did not merely provide a new way to measure hours; it fundamentally altered the structure of society,", "seconds": 11.39432668685913, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d10", "prompt_tokens": 43, "ids": [760, 12050, 303, 279, 4634, 21678, 1503, 524, 15756, 16821, 26, 424, 88468, 4050, 13, 1690, 82697, 645, 16413, 11, 279, 51624, 314, 279, 5068, 6451, 73339, 8394, 11, 279, 3098, 557, 524, 264, 20438, 314, 854, 694, 264, 1528, 314, 1602, 11, 264, 57040, 49949, 421, 12152, 279, 1546, 13001, 314, 3611, 46578, 2272, 279, 76211, 60933, 314, 279, 17415, 13, 3495, 2320, 44452, 264, 25888, 3438, 680, 33017, 314, 36055, 421, 9047, 310, 599, 978, 41572, 494, 279, 9114, 579, 6007, 321, 12451, 806, 1083, 279, 9117, 11, 279, 324, 55965, 14217, 430, 264, 55218, 77991, 11, 1141, 4022, 5984, 509, 6248, 321, 21599, 1114, 539, 10476, 314, 11679, 22186, 321, 338, 1519, 77291, 27562, 13, 1577, 279, 1118, 8545, 11456, 82, 5820, 310, 36781, 279], "text": "The winter in the North Atlantic does not merely arrive; it besieges. For Elias Thorne, the keeper of the Blackwood Reef Light, the season was not a passage of time but a state of being, a relentless siege that tested the very limits of human endurance against the indifferent fury of the ocean. Perched atop a jagged outcrop of granite that seemed to have been ripped from the earth's core and hurled into the sea, the lighthouse stood as a solitary sentinel, its white paint chipped and scarred by decades of salt spray and gale-force winds. As the first heavy snows began to blanket the", "seconds": 11.351911544799805, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d11", "prompt_tokens": 41, "ids": [34, 9527, 88559, 3875, 799, 314, 279, 1379, 6150, 321, 31883, 58801, 383, 8964, 11, 3428, 13464, 310, 430, 279, 328, 28142, 1278, 35080, 314, 279, 9117, 1, 4016, 310, 836, 36534, 69572, 13, 4213, 11, 23221, 279, 74356, 1287, 314, 7736, 321, 279, 86088, 27657, 2199, 14995, 264, 22551, 1817, 421, 369, 2107, 16323, 6103, 321, 47002, 56696, 13, 561, 6310, 314, 264, 50255, 67673, 369, 524, 279, 1067, 314, 264, 3074, 44483, 4599, 264, 5759, 11, 694, 4598, 264, 64401, 58958, 14859, 1881, 13280, 9605, 321, 85928, 65562, 11, 10042, 888, 22892, 310, 8972, 1010, 314, 279, 7526, 5214, 13976, 383, 279, 11247, 13, 1946, 3418, 1204, 1439, 43860, 9432, 9704, 494, 279, 17415, 6220, 11, 799, 1902, 20321, 279, 54231, 4864, 1881, 279, 50255, 1418], "text": "Coral reefs represent one of the most complex and vibrant ecosystems on Earth, often referred to as the \"rainforests of the sea\" due to their immense biodiversity. However, beneath the dazzling array of colors and the bustling marine life lies a biological process that is both incredibly slow and remarkably resilient. The growth of a coral reef is not the result of a single organism building a structure, but rather a symbiotic partnership between tiny animals and microscopic algae, operating over centuries to construct some of the largest living structures on the planet. To understand how these underwater cities rise from the ocean floor, one must examine the intricate relationship between the coral pol", "seconds": 11.31436562538147, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d12", "prompt_tokens": 44, "ids": [760, 12386, 14909, 77724, 12965, 430, 799, 314, 279, 1379, 50032, 321, 25924, 61165, 314, 13437, 14246, 11, 13661, 264, 53579, 314, 41653, 7785, 11, 41052, 6453, 12199, 11, 321, 33145, 43136, 13, 13065, 777, 1056, 17003, 30155, 14885, 2919, 11, 1439, 13976, 998, 75098, 81632, 421, 59282, 2199, 48323, 1083, 279, 4593, 314, 279, 12386, 19825, 11, 76375, 12401, 15203, 21234, 11, 86808, 12419, 11036, 11, 321, 25471, 279, 17865, 314, 279, 36437, 1814, 364, 6791, 264, 85631, 13, 561, 2790, 314, 1439, 14909, 77724, 82, 557, 524, 15756, 264, 10597, 30815, 694, 264, 15060, 16100, 1785, 421, 23086, 279, 6657, 314, 20665, 440, 279, 35331, 49963, 314, 12386, 7975, 11, 6611, 264, 18989, 421, 9257, 310, 29639, 23438, 321, 53088, 3242, 13, 271, 1597, 279, 6007], "text": "The Roman aqueduct stands as one of the most enduring and sophisticated feats of ancient engineering, representing a convergence of hydraulic science, architectural grandeur, and imperial ambition. Far more than mere pipes carrying water, these structures were monumental arteries that pumped lifeblood into the heart of the Roman Empire, sustaining vast urban populations, powering industrial processes, and defining the landscape of the Mediterranean world for nearly a millennium. The design of these aqueducts was not merely a technical necessity but a carefully calculated system that balanced the laws of physics with the aesthetic ideals of Roman society, creating a legacy that continues to inspire engineers and architects today.\n\nAt the core", "seconds": 11.342992305755615, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d13", "prompt_tokens": 43, "ids": [760, 11285, 3055, 279, 49317, 9254, 557, 2496, 264, 3074, 11, 18677, 1752, 11, 694, 4598, 264, 12401, 11, 30787, 3790, 314, 71157, 13518, 421, 91339, 3658, 279, 81132, 82517, 314, 84073, 667, 11, 40469, 494, 279, 8337, 88, 37647, 314, 279, 41977, 396, 38684, 310, 279, 86088, 19708, 314, 279, 36437, 13, 1946, 36303, 411, 13437, 62144, 557, 310, 67080, 383, 449, 10468, 51458, 314, 67782, 5281, 11, 264, 1228, 314, 3611, 46578, 421, 9111, 18131, 8765, 314, 8491, 321, 34242, 364, 3818, 11, 413, 524, 1578, 13, 1049, 557, 264, 5832, 4364, 524, 539, 279, 4478, 314, 5640, 11, 694, 539, 279, 6103, 11, 43472, 44212, 314, 7112, 11, 11228, 11, 321, 25881, 421, 81728, 1040, 2919, 1472, 279, 771, 306, 57648, 314, 10368, 13229, 13], "text": "The journey along the Silk Road was never a single, continuous path, but rather a vast, shifting network of caravan tracks that stitched together the disparate civilizations of Eurasia, stretching from the misty peaks of the Pamir Mountains to the bustling ports of the Mediterranean. To traverse this ancient artery was to embark on an odyssey of unparalleled scale, a test of human endurance that spanned thousands of miles and lasted for months, if not years. It was a route defined not by the speed of travel, but by the slow, deliberate accumulation of stories, goods, and cultures that flowed like water through the arid veins of Central Asia.", "seconds": 11.413297414779663, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d14", "prompt_tokens": 43, "ids": [760, 17465, 314, 63834, 28053, 369, 799, 314, 279, 1379, 21100, 321, 83353, 11036, 303, 279, 8964, 579, 82240, 3712, 11, 13661, 264, 18677, 7796, 1881, 279, 11247, 579, 20947, 1893, 14362, 321, 1141, 6235, 7520, 38300, 13, 4081, 28053, 635, 524, 4833, 23626, 26, 4598, 11, 781, 513, 279, 1067, 314, 11391, 314, 1578, 314, 24207, 82240, 5524, 11, 1332, 36534, 7035, 321, 8364, 494, 5365, 2785, 279, 68051, 5176, 836, 1560, 310, 279, 7099, 11, 25193, 4599, 4128, 25490, 287, 494, 279, 17415, 6220, 13, 1061, 24057, 369, 1379, 32918, 12784, 303, 328, 10307, 18086, 1, 34103, 2074, 321, 3055, 259, 431, 13609, 11629, 22005, 11, 1332, 279, 8476, 6977, 314, 279, 8964, 579, 43674, 62923, 11121, 279, 4574, 4530, 364, 12552, 6968, 13, 561, 3255], "text": "The formation of volcanic islands is one of the most dramatic and transformative processes in the Earth's geological history, representing a continuous battle between the planet's molten interior and its solidifying crust. These islands do not appear overnight; rather, they are the result of millions of years of persistent geological activity, where immense pressure and heat from deep within the mantle force their way to the surface, gradually building landmasses from the ocean floor. This phenomenon is most notably observed in \"hotspot\" volcanism and along tectonic plate boundaries, where the dynamic movement of the Earth's lithosphere creates the perfect conditions for island birth. The story", "seconds": 11.335034608840942, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} +{"prompt_id": "d15", "prompt_tokens": 42, "ids": [760, 3712, 314, 5392, 3117, 369, 264, 25450, 11285, 1472, 3611, 6537, 86409, 11, 6739, 30815, 11, 321, 279, 14931, 314, 6734, 13, 1049, 5820, 524, 430, 264, 11085, 314, 869, 11, 694, 430, 264, 26802, 6093, 310, 279, 92554, 36561, 314, 64404, 8545, 9041, 18197, 13, 561, 3255, 8211, 303, 13437, 5440, 2261, 279, 39025, 70897, 11, 1332, 40391, 1669, 5402, 21613, 290, 539, 279, 4528, 314, 22561, 321, 14527, 18197, 948, 20331, 1248, 25704, 13, 1946, 58562, 411, 11, 781, 5820, 1608, 54586, 10579, 539, 40391, 466, 54994, 421, 18378, 279, 460, 314, 264, 3050, 3202, 314, 9041, 5028, 15041, 13, 4081, 54586, 11, 3750, 430, 348, 69, 6501, 8091, 11961, 998, 15327, 3988, 7346, 314, 2619, 1003, 661, 8129, 13, 5875, 854, 11, 1439, 843], "text": "The history of paper money is a fascinating journey through human ingenuity, economic necessity, and the evolution of trust. It began not as a currency of value, but as a clever solution to the logistical nightmare of transporting heavy metal coins. The story starts in ancient China during the Tang Dynasty, where merchants found themselves burdened by the weight of copper and silver coins when traveling long distances. To alleviate this, they began using receipts issued by merchants or temples that promised the return of a specific amount of metal upon presentation. These receipts, known as *flying cash*, were essentially early forms of promissory notes. Over time, these private", "seconds": 11.337339878082275, "transformers": "5.16.1", "torch": "2.14.0a0+b2c75dd062.nv26.09", "model": "/home/drakestapleton/models/qwen3.5-9b-c2022362"} diff --git a/q35-9b/results/ref/LLAMA16-REF.jsonl b/q35-9b/results/ref/LLAMA16-REF.jsonl new file mode 100644 index 0000000..e909742 --- /dev/null +++ b/q35-9b/results/ref/LLAMA16-REF.jsonl @@ -0,0 +1,16 @@ +{"t_send": 52976.046851743, "t_first": 52976.384245233, "t_last": 52985.185297374, "chunks": 128, "text": "The invention of the printing press stands as one of the most pivotal moments in human history, fundamentally altering the trajectory of civilization, knowledge dissemination, and cultural evolution. Before its advent, the production of books was a painstaking, labor-intensive process that limited literacy to the elite and the clergy. The transition from the handwritten manuscript to the mass-produced printed page did not merely change how information was stored; it democratized knowledge, shattered the monopoly of the Church on truth, and laid the groundwork for the modern scientific and intellectual revolutions.\n\nThe story begins in ancient China, where the concept of movable type was first realized. Around the 11th", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 0, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "b4a6751bc8d6", "load1_start": 2.87, "load1_end": 3.28, "wall_utc": 1793126086.5717301, "max_tokens": 128, "prompt_id": "d00", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 52985.186264796, "t_first": 52985.366708257, "t_last": 52994.1561391, "chunks": 128, "text": "The formation of a river delta is one of the most spectacular and complex geological processes on Earth, representing the final chapter in the life cycle of a river. It is a dynamic landscape where the turbulent, erosive power of flowing water gives way to the quiet, constructive forces of sedimentation. A delta forms at the mouth of a river, where it enters a standing body of water, such as a lake or an ocean, or where it flows across a flat plain. This transition zone is defined by a fundamental shift in energy: as the river slows down upon entering the larger, often denser body of water, its capacity to carry suspended", "usage": {"completion_tokens": 128, "prompt_tokens": 42, "total_tokens": 170, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 1, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "c01b0d1ad5eb", "load1_start": 3.28, "load1_end": 3.31, "wall_utc": 1793126095.7112153, "max_tokens": 128, "prompt_id": "d01", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 52994.156772347, "t_first": 52994.339946843, "t_last": 53003.10516069, "chunks": 128, "text": "The life cycle of a star is one of the most profound and intricate narratives in the cosmos, a journey that spans millions to billions of years and dictates the very existence of matter as we know it. This celestial biography begins in the cold, dark void of interstellar space, where vast clouds of gas and dust, known as nebulae, drift silently. These nebulae are primarily composed of hydrogen and helium, the primordial leftovers from the Big Bang, mixed with trace amounts of heavier elements forged in previous generations of stars. Under the influence of gravity, these clouds begin to collapse, often triggered by a shockwave from a nearby supern", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 2, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "99986cabe8cf", "load1_start": 3.31, "load1_end": 3.33, "wall_utc": 1793126104.6817312, "max_tokens": 128, "prompt_id": "d02", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53003.105761794, "t_first": 53003.288027984, "t_last": 53012.058875845, "chunks": 128, "text": "The journey of building a wooden boat by hand is not merely a construction project; it is a profound dialogue between human intent and the natural world. It begins long before the first piece of timber is cut, rooted in a deep reverence for the materials that will eventually become a vessel capable of conquering the elements. Unlike modern fiberglass or steel hulls, which are often mass-produced in sterile factories, a wooden boat is born from the forest, shaped by the hands of the builder, and brought to life through a process that demands patience, precision, and an almost spiritual connection to the craft. The builder must first understand the grain of the wood", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 3, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "dbf5373c4ef6", "load1_start": 3.33, "load1_end": 3.43, "wall_utc": 1793126113.6307483, "max_tokens": 128, "prompt_id": "d03", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53012.059508068, "t_first": 53012.243116766, "t_last": 53021.01348864, "chunks": 128, "text": "The history of global communication is punctuated by moments of profound technological leap, yet few events in the mid-19th century carry the weight of drama, failure, and eventual triumph quite like the laying of the first transatlantic telegraph cable. Completed in 1858, this monumental engineering feat did more than simply connect two continents; it fundamentally altered the human perception of time and space, shrinking the world from a place of weeks-long correspondence to one of instantaneous connection. The endeavor was born out of a convergence of scientific curiosity, commercial ambition, and the relentless drive to overcome the vast, hostile barrier of the Atlantic Ocean", "usage": {"completion_tokens": 128, "prompt_tokens": 45, "total_tokens": 173, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 4, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "1a36159e603c", "load1_start": 3.43, "load1_end": 3.6, "wall_utc": 1793126122.5844796, "max_tokens": 128, "prompt_id": "d04", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53021.014155152, "t_first": 53021.198831126, "t_last": 53029.971045643, "chunks": 128, "text": "The decision-making process of a honeybee swarm to select a new home is one of the most sophisticated examples of decentralized intelligence in the animal kingdom. It is a complex, multi-stage operation that involves thousands of individuals, intricate communication systems, and rigorous mathematical evaluation, all occurring without a single central commander issuing orders. This collective behavior, known as swarming, is triggered when a colony becomes too large for its current nest, prompting the queen to leave with a portion of the worker bees to establish a new colony. Once the swarm has detached from the old hive and ascended into the air, the search for a suitable cavity begins, a process", "usage": {"completion_tokens": 128, "prompt_tokens": 44, "total_tokens": 172, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 5, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "9f33e89284dc", "load1_start": 3.6, "load1_end": 3.87, "wall_utc": 1793126131.5390992, "max_tokens": 128, "prompt_id": "d05", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53029.971683291, "t_first": 53030.154231726, "t_last": 53038.918790005, "chunks": 128, "text": "The dawn breaks not with the chirping of birds, but with the rhythmic, heavy thud of a blacksmith's hammer against an anvil, a sound that serves as the first alarm clock for the sleeping town of Oakhaven. Before the sun has fully crested the horizon, the air is thick with the scent of woodsmoke and damp earth, clinging to the cobblestone streets that wind between timber-framed houses. These structures, their walls wattle-and-daub and their roofs thatched with straw, lean slightly against one another, creating narrow alleyways where the morning mist lingers like a ghost. As the", "usage": {"completion_tokens": 128, "prompt_tokens": 44, "total_tokens": 172, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 6, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "92837123e474", "load1_start": 3.87, "load1_end": 4.41, "wall_utc": 1793126140.4966636, "max_tokens": 128, "prompt_id": "d06", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53038.919464069, "t_first": 53039.102896019, "t_last": 53047.851423587, "chunks": 128, "text": "The bicycle stands as one of the most elegant and efficient machines ever conceived by human engineering, a testament to the seamless integration of classical mechanics and material science. At its core, the bicycle is a study in the conservation of energy and the manipulation of forces, allowing a rider to traverse distances with a fraction of the effort required by a horse or a motor vehicle. To understand the physics of a bicycle is to explore the delicate balance between rotational dynamics, friction, aerodynamics, and the structural integrity of its components. It is a machine that defies the intuitive notion that heavier is always stronger, relying instead on leverage, gear ratios, and the", "usage": {"completion_tokens": 128, "prompt_tokens": 42, "total_tokens": 170, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 7, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "fa6c2333faa8", "load1_start": 4.41, "load1_end": 4.7, "wall_utc": 1793126149.4444382, "max_tokens": 128, "prompt_id": "d07", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53047.852073331, "t_first": 53048.034896236, "t_last": 53056.783779429, "chunks": 128, "text": "The transformation of a rugged mountain landscape into a serene, U-shaped valley is one of the most profound geological processes on Earth, driven primarily by the slow, relentless movement of glaciers. While rivers and wind are constant agents of erosion, glaciers possess a unique combination of mass, weight, and friction that allows them to sculpt the earth in ways no other force can. The story of a glacial valley begins not with a roar, but with a quiet accumulation of snow in high-altitude basins or sheltered cirques. Over centuries, this snow compacts into dense ice, eventually forming a glacier that begins its slow descent, acting as a", "usage": {"completion_tokens": 128, "prompt_tokens": 41, "total_tokens": 169, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 8, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "8e6a6fa157a2", "load1_start": 4.7, "load1_end": 4.37, "wall_utc": 1793126158.3770385, "max_tokens": 128, "prompt_id": "d08", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53056.784408133, "t_first": 53056.966040041, "t_last": 53065.705018133, "chunks": 128, "text": "The invention of the mechanical clock stands as one of the most profound milestones in human history, marking a decisive shift from the fluid, natural rhythms of timekeeping to the rigid, quantifiable precision of human engineering. Before the advent of the mechanical clock, humanity relied on the sun, the stars, and the phases of the moon to measure the passage of hours. Water clocks, or clepsydras, had been utilized in ancient Egypt, Greece, and China for centuries, yet they were inherently limited by their dependence on water flow, which varied with temperature and viscosity, and their inability to distinguish between day and night without complex, often unreliable", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 9, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "4908b45be89e", "load1_start": 4.37, "load1_end": 4.08, "wall_utc": 1793126167.3093767, "max_tokens": 128, "prompt_id": "d09", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53065.705690197, "t_first": 53065.887120468, "t_last": 53074.636873932, "chunks": 128, "text": "The winter in the North Atlantic does not merely arrive; it besieges. For Elias Thorne, the keeper of the Blackwood Reef Light, the season was not a passage of time but a state of being, a relentless siege that tested the very limits of human endurance against the indifferent fury of the ocean. Perched atop a jagged pinnacle of granite that seemed to have been ripped from the earth's core and thrust into the churning gray, the lighthouse stood as the last bastion of civilization against the encroaching void. As the first heavy snows began to blanket the surrounding rocks, Elias knew that the true work of", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 10, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "d52118bfe1c2", "load1_start": 4.08, "load1_end": 3.92, "wall_utc": 1793126176.2306652, "max_tokens": 128, "prompt_id": "d10", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53074.637515612, "t_first": 53074.820548084, "t_last": 53083.576514726, "chunks": 128, "text": "Coral reefs represent one of the most complex and vibrant ecosystems on Earth, often referred to as the \"rainforests of the sea\" due to their immense biodiversity. However, beneath the dazzling array of colors and the bustling marine life lies a biological process that is both incredibly slow and remarkably resilient. The growth of a coral reef is not the result of a single organism building a structure, but rather a symbiotic partnership between tiny animals and microscopic algae, operating over centuries to construct some of the largest living structures on the planet. To understand how these underwater cities rise from the ocean floor, one must examine the intricate relationship between the coral pol", "usage": {"completion_tokens": 128, "prompt_tokens": 41, "total_tokens": 169, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 11, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "6bc848317fa8", "load1_start": 3.92, "load1_end": 3.77, "wall_utc": 1793126185.1624932, "max_tokens": 128, "prompt_id": "d11", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53083.577147751, "t_first": 53083.76007524, "t_last": 53092.499607209, "chunks": 128, "text": "The Roman aqueduct stands as one of the most enduring and sophisticated feats of engineering in human history, representing a convergence of hydraulic science, architectural grandeur, and imperial ambition. These monumental structures were not merely pipes carrying water; they were the lifeblood of Roman civilization, enabling the growth of massive cities, the development of public baths, and the sanitation of urban centers. The design of these aqueducts was driven by a singular, non-negotiable principle: gravity. Unlike modern systems that rely on pumps and pressurized networks, Roman engineers understood that water must flow downhill to move. Consequently, the entire design philosophy revolved around", "usage": {"completion_tokens": 128, "prompt_tokens": 44, "total_tokens": 172, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 12, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "3ae8cd87b79e", "load1_start": 3.77, "load1_end": 3.58, "wall_utc": 1793126194.10213, "max_tokens": 128, "prompt_id": "d12", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53092.500294057, "t_first": 53092.685878548, "t_last": 53101.434373111, "chunks": 128, "text": "The journey along the Silk Road was never a single, continuous path, but rather a vast, shifting network of caravan tracks that stitched together the disparate civilizations of Eurasia, stretching from the misty peaks of the Pamir Mountains to the bustling ports of the Mediterranean. To traverse this ancient artery was to embark upon a perilous odyssey that tested the limits of human endurance, courage, and curiosity. It was a route defined not by the speed of travel, but by the slow, grinding accumulation of stories, goods, and cultural syncretism that flowed like a silent river beneath the feet of merchants, monks, and wanderers. The", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 13, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "3104c8fe14bf", "load1_start": 3.58, "load1_end": 4.13, "wall_utc": 1793126203.0252633, "max_tokens": 128, "prompt_id": "d13", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53101.435200743, "t_first": 53101.622296571, "t_last": 53110.38232517, "chunks": 128, "text": "The formation of volcanic islands is one of the most dramatic and transformative processes in the Earth's geological history, representing a continuous battle between the planet's molten interior and its solidifying crust. These islands are not merely random accumulations of rock floating on the ocean; they are the visible crowns of immense subterranean forces that have been reshaping the globe for billions of years. The story of how volcanoes create new land begins deep within the Earth, where intense heat and pressure cause the mantle to become partially molten, creating magma. This magma, being less dense than the surrounding solid rock, naturally seeks to rise toward the surface", "usage": {"completion_tokens": 128, "prompt_tokens": 43, "total_tokens": 171, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 14, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "26d6e0505baf", "load1_start": 4.13, "load1_end": 3.96, "wall_utc": 1793126211.9601836, "max_tokens": 128, "prompt_id": "d14", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} +{"t_send": 53110.382976434, "t_first": 53110.566546508, "t_last": 53119.324416123, "chunks": 128, "text": "The history of paper money is a fascinating journey through human ingenuity, economic necessity, and the evolution of trust. It began not as a currency of value, but as a clever solution to the logistical nightmares of transporting heavy metal coins. The story starts in ancient China during the Tang Dynasty, where merchants found themselves burdened by the weight of copper coins when traveling long distances. To alleviate this, they began using receipts issued by merchants or temples that promised the return of a specific amount of metal currency upon presentation. These receipts, known as *flying cash*, were essentially early forms of promissory notes. Over time, these private receipts", "usage": {"completion_tokens": 128, "prompt_tokens": 42, "total_tokens": 170, "prompt_tokens_details": {"cached_tokens": 0}}, "finish_reason": "length", "error": null, "http_status": 200, "busy_retries": 0, "arm": "LLAMA16", "round": "REF", "metric": "agree", "rep": 15, "warmup": false, "concurrency": 1, "stream_index": 0, "batch_id": "f108ed827e6c", "load1_start": 3.96, "load1_end": 3.97, "wall_utc": 1793126220.9079552, "max_tokens": 128, "prompt_id": "d15", "cell_run": "LLAMA16-REF-agree", "server_cpus": null, "client_cpus": null} diff --git a/q35-9b/results/ref/tie-LLAMA16-OURS8.jsonl b/q35-9b/results/ref/tie-LLAMA16-OURS8.jsonl new file mode 100644 index 0000000..b008576 --- /dev/null +++ b/q35-9b/results/ref/tie-LLAMA16-OURS8.jsonl @@ -0,0 +1,32 @@ +{"arm": "LLAMA16", "prompt_id": "d00", "oracle_len": 128, "arm_len": 128, "first_div": null} +{"arm": "LLAMA16", "prompt_id": "d01", "oracle_len": 128, "arm_len": 128, "first_div": 119, "oracle_tok": 466, "arm_tok": 2407, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.061350703239441, "logprob_arm_tok": -1.061350703239441, "oracle_piece": " or", "arm_piece": " body"} +{"arm": "LLAMA16", "prompt_id": "d02", "oracle_len": 128, "arm_len": 128, "first_div": 121, "oracle_tok": 10439, "arm_tok": 264, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -1.138827919960022, "logprob_arm_tok": -1.013827919960022, "oracle_piece": " shock", "arm_piece": " a"} +{"arm": "LLAMA16", "prompt_id": "d03", "oracle_len": 128, "arm_len": 128, "first_div": 97, "oracle_tok": 2574, "arm_tok": 6895, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -1.9599215984344482, "logprob_arm_tok": -1.8349215984344482, "oracle_piece": " given", "arm_piece": " brought"} +{"arm": "LLAMA16", "prompt_id": "d04", "oracle_len": 128, "arm_len": 128, "first_div": 1, "oracle_tok": 33498, "arm_tok": 3712, "logit_gap": -0.0625, "oracle_top1_top2_gap": 0.0625, "arm_tok_rank": 0, "logprob_oracle_tok": -2.131272077560425, "logprob_arm_tok": -2.068772077560425, "oracle_piece": " laying", "arm_piece": " history"} +{"arm": "LLAMA16", "prompt_id": "d05", "oracle_len": 128, "arm_len": 128, "first_div": 58, "oracle_tok": 7410, "arm_tok": 27088, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.7176401615142822, "logprob_arm_tok": -0.7176401615142822, "oracle_piece": " leader", "arm_piece": " commander"} +{"arm": "LLAMA16", "prompt_id": "d06", "oracle_len": 128, "arm_len": 128, "first_div": null} +{"arm": "LLAMA16", "prompt_id": "d07", "oracle_len": 128, "arm_len": 128, "first_div": 116, "oracle_tok": 2577, "arm_tok": 15766, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -1.1289901733398438, "logprob_arm_tok": -1.2539901733398438, "oracle_piece": " better", "arm_piece": " stronger"} +{"arm": "LLAMA16", "prompt_id": "d08", "oracle_len": 128, "arm_len": 128, "first_div": 19, "oracle_tok": 21100, "arm_tok": 26281, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.8117429614067078, "logprob_arm_tok": -0.8117429614067078, "oracle_piece": " dramatic", "arm_piece": " profound"} +{"arm": "LLAMA16", "prompt_id": "d09", "oracle_len": 128, "arm_len": 128, "first_div": 13, "oracle_tok": 28069, "arm_tok": 65967, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -0.951248049736023, "logprob_arm_tok": -0.826248049736023, "oracle_piece": " technological", "arm_piece": " milestones"} +{"arm": "LLAMA16", "prompt_id": "d10", "oracle_len": 128, "arm_len": 128, "first_div": 68, "oracle_tok": 680, "arm_tok": 95086, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -1.8626643419265747, "logprob_arm_tok": -1.7376643419265747, "oracle_piece": " out", "arm_piece": " pinnacle"} +{"arm": "LLAMA16", "prompt_id": "d11", "oracle_len": 128, "arm_len": 128, "first_div": null} +{"arm": "LLAMA16", "prompt_id": "d12", "oracle_len": 128, "arm_len": 128, "first_div": 15, "oracle_tok": 13437, "arm_tok": 14246, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -0.7990480661392212, "logprob_arm_tok": -0.6740480661392212, "oracle_piece": " ancient", "arm_piece": " engineering"} +{"arm": "LLAMA16", "prompt_id": "d13", "oracle_len": 128, "arm_len": 128, "first_div": 61, "oracle_tok": 383, "arm_tok": 5028, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -0.7586430907249451, "logprob_arm_tok": -0.6336430907249451, "oracle_piece": " on", "arm_piece": " upon"} +{"arm": "LLAMA16", "prompt_id": "d14", "oracle_len": 128, "arm_len": 128, "first_div": 40, "oracle_tok": 635, "arm_tok": 513, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.7335556745529175, "logprob_arm_tok": -0.7335556745529175, "oracle_piece": " do", "arm_piece": " are"} +{"arm": "LLAMA16", "prompt_id": "d15", "oracle_len": 128, "arm_len": 128, "first_div": 40, "oracle_tok": 36561, "arm_tok": 71734, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.1145293712615967, "logprob_arm_tok": -1.1145293712615967, "oracle_piece": " nightmare", "arm_piece": " nightmares"} +{"arm": "OURS8", "prompt_id": "d00", "oracle_len": 128, "arm_len": 128, "first_div": 54, "oracle_tok": 279, "arm_tok": 42837, "logit_gap": 0.375, "oracle_top1_top2_gap": 0.375, "arm_tok_rank": 1, "logprob_oracle_tok": -1.2983678579330444, "logprob_arm_tok": -1.6733678579330444, "oracle_piece": " the", "arm_piece": " confined"} +{"arm": "OURS8", "prompt_id": "d01", "oracle_len": 128, "arm_len": 128, "first_div": 38, "oracle_tok": 79384, "arm_tok": 57040, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.25, "arm_tok_rank": 1, "logprob_oracle_tok": -1.8172335624694824, "logprob_arm_tok": -2.0672335624694824, "oracle_piece": " turbulent", "arm_piece": " relentless"} +{"arm": "OURS8", "prompt_id": "d02", "oracle_len": 128, "arm_len": 128, "first_div": 20, "oracle_tok": 11285, "arm_tok": 44761, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.25, "arm_tok_rank": 1, "logprob_oracle_tok": -1.2309305667877197, "logprob_arm_tok": -1.4809305667877197, "oracle_piece": " journey", "arm_piece": " saga"} +{"arm": "OURS8", "prompt_id": "d03", "oracle_len": 128, "arm_len": 128, "first_div": 87, "oracle_tok": 11, "arm_tok": 13, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.25, "arm_tok_rank": 1, "logprob_oracle_tok": -0.8454850912094116, "logprob_arm_tok": -1.0954850912094116, "oracle_piece": ",", "arm_piece": "."} +{"arm": "OURS8", "prompt_id": "d04", "oracle_len": 128, "arm_len": 128, "first_div": 1, "oracle_tok": 33498, "arm_tok": 3712, "logit_gap": -0.0625, "oracle_top1_top2_gap": 0.0625, "arm_tok_rank": 0, "logprob_oracle_tok": -2.131272077560425, "logprob_arm_tok": -2.068772077560425, "oracle_piece": " laying", "arm_piece": " history"} +{"arm": "OURS8", "prompt_id": "d05", "oracle_len": 128, "arm_len": 128, "first_div": 2, "oracle_tok": 26847, "arm_tok": 310, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.25, "arm_tok_rank": 1, "logprob_oracle_tok": -0.6977843642234802, "logprob_arm_tok": -0.9477843642234802, "oracle_piece": "-making", "arm_piece": " to"} +{"arm": "OURS8", "prompt_id": "d06", "oracle_len": 128, "arm_len": 128, "first_div": 26, "oracle_tok": 2272, "arm_tok": 20587, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -1.0451260805130005, "logprob_arm_tok": -1.1701260805130005, "oracle_piece": " against", "arm_piece": " striking"} +{"arm": "OURS8", "prompt_id": "d07", "oracle_len": 128, "arm_len": 128, "first_div": null} +{"arm": "OURS8", "prompt_id": "d08", "oracle_len": 128, "arm_len": 128, "first_div": 19, "oracle_tok": 21100, "arm_tok": 26281, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.8117429614067078, "logprob_arm_tok": -0.8117429614067078, "oracle_piece": " dramatic", "arm_piece": " profound"} +{"arm": "OURS8", "prompt_id": "d09", "oracle_len": 128, "arm_len": 128, "first_div": 13, "oracle_tok": 28069, "arm_tok": 65967, "logit_gap": -0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 0, "logprob_oracle_tok": -0.951248049736023, "logprob_arm_tok": -0.826248049736023, "oracle_piece": " technological", "arm_piece": " milestones"} +{"arm": "OURS8", "prompt_id": "d10", "oracle_len": 128, "arm_len": 128, "first_div": 62, "oracle_tok": 3495, "arm_tok": 5133, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 2, "logprob_oracle_tok": -1.3677313327789307, "logprob_arm_tok": -1.6177313327789307, "oracle_piece": " Per", "arm_piece": " His"} +{"arm": "OURS8", "prompt_id": "d11", "oracle_len": 128, "arm_len": 128, "first_div": 0, "oracle_tok": 34, "arm_tok": 760, "logit_gap": 0.5, "oracle_top1_top2_gap": 0.5, "arm_tok_rank": 1, "logprob_oracle_tok": -0.4844731390476227, "logprob_arm_tok": -0.9844731092453003, "oracle_piece": "C", "arm_piece": "The"} +{"arm": "OURS8", "prompt_id": "d12", "oracle_len": 128, "arm_len": 128, "first_div": 11, "oracle_tok": 321, "arm_tok": 1228, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -0.9442569613456726, "logprob_arm_tok": -0.9442569613456726, "oracle_piece": " and", "arm_piece": " test"} +{"arm": "OURS8", "prompt_id": "d13", "oracle_len": 128, "arm_len": 128, "first_div": 60, "oracle_tok": 67080, "arm_tok": 2923, "logit_gap": 0.25, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 2, "logprob_oracle_tok": -1.1461113691329956, "logprob_arm_tok": -1.3961113691329956, "oracle_piece": " embark", "arm_piece": " step"} +{"arm": "OURS8", "prompt_id": "d14", "oracle_len": 128, "arm_len": 128, "first_div": 35, "oracle_tok": 7520, "arm_tok": 38300, "logit_gap": 0.125, "oracle_top1_top2_gap": 0.125, "arm_tok_rank": 1, "logprob_oracle_tok": -0.8536148071289062, "logprob_arm_tok": -0.9786148071289062, "oracle_piece": "ifying", "arm_piece": " crust"} +{"arm": "OURS8", "prompt_id": "d15", "oracle_len": 128, "arm_len": 128, "first_div": 23, "oracle_tok": 1049, "arm_tok": 5546, "logit_gap": 0.0, "oracle_top1_top2_gap": 0.0, "arm_tok_rank": 0, "logprob_oracle_tok": -1.239501953125, "logprob_arm_tok": -1.239501953125, "oracle_piece": " It", "arm_piece": " Long"} diff --git a/q35-9b/results/weights-cmp-ssm_a.txt b/q35-9b/results/weights-cmp-ssm_a.txt new file mode 100644 index 0000000..9030747 --- /dev/null +++ b/q35-9b/results/weights-cmp-ssm_a.txt @@ -0,0 +1,25 @@ +blk.0.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.1.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.10.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.12.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.13.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.14.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.16.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.17.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.18.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.2.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.20.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.21.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.22.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.24.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.25.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.26.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.28.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.29.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.30.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.4.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.5.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.6.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.8.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +blk.9.ssm_a max_ulp 0 max_rel 0 A_log dtype torch.float32 +WORST_ULP 0 diff --git a/q35-9b/results/weights-cmp2.txt b/q35-9b/results/weights-cmp2.txt new file mode 100644 index 0000000..a49db5a --- /dev/null +++ b/q35-9b/results/weights-cmp2.txt @@ -0,0 +1,15 @@ +attn_gate.weight BF16 same x24 +attn_k_norm.weight F32 plus1 x8 +attn_norm.weight F32 plus1 x32 +attn_q_norm.weight F32 plus1 x8 +attn_qkv.weight BF16 same x24 +post_attention_norm.weight F32 plus1 x32 +ssm_a F32 NO_MATCH x21 +ssm_a F32 negexp x3 +ssm_alpha.weight BF16 same x24 +ssm_beta.weight BF16 same x24 +ssm_conv1d.weight F32 same x24 +ssm_dt.bias F32 same x24 +ssm_norm.weight F32 same x24 +ssm_out.weight BF16 same x24 +weight F32 plus1 x1 diff --git a/q35-9b/resumption.json b/q35-9b/resumption.json new file mode 100644 index 0000000..381f0d5 --- /dev/null +++ b/q35-9b/resumption.json @@ -0,0 +1,30 @@ +{ + "scope": "Component-local experiment resumption, not a master plan", + "status": "operator_checks_and_client_controls_pass; model_qualification_and_timing_incomplete", + "backend_source": "e0813903ee2fc5f6ac23e6424741b00977d4bef9", + "cudapp_source": "69a2419e5239c97d903fe6c9a2f59718c22d288f", + "cudapp_base": "fc591d685ffce5a38013103aaf193867a870ca7f", + "cudapp_library_sha256": "d45eaac7c22b7780a216930ebe057ddeeff48ca605ceaa7a97e68673a80294ce", + "backend_library_sha256": "c9736aa25fe8238d9267dd1261f078de1dd82ed8b984f1bdae95f8f71baacf1d", + "bfs_lo_mutant_library_sha256": "4ae3c8acce38af95011ba2f18b8b434cdb4be6afb522846a240f244dcd45296e", + "source_status": "Unmerged experimental candidates; source pins are not deployment claims", + "compiler_sha256": "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f", + "native_om_sha256": "901684b2dc7cd148eb6bb2fe74dd43a6bce857ff014308b00ebaa9d18029158d", + "llama_cpp_source": "7aca0d2ea8d92b56911233b822db01f9fbb1ae50", + "observed_operator_checks": { + "MUL_MAT": {"passed":871,"failed":0,"unsupported":1994}, + "RMS_NORM": {"passed":7,"failed":0,"unsupported":54}, + "SWIGLU": {"passed":12,"failed":0,"unsupported":24}, + "bfs_lo_mutant": {"failed_as_expected":101} + }, + "host_kernels": "PASS; deliberately wrong bfs-lo conversion fails its independent host check", + "client_controls": {"passed":10,"failed":0,"node_version":"v24.21.0"}, + "remaining": [ + "Independent source/weight-layout and current model correctness checks", + "Full backend model gate requires an authorized exclusive window; no service stop authorized", + "Complete repeated timing campaign with one instrument and preserved failed attempts", + "Wolfram summaries and source-bound final comparison", + "Audit and complete larger-model P0 comparisons without relaxing their exclusive-memory rule" + ], + "new_timed_runs": false +} diff --git a/q35-9b/resumption.json.correction.json b/q35-9b/resumption.json.correction.json new file mode 100644 index 0000000..725e2da --- /dev/null +++ b/q35-9b/resumption.json.correction.json @@ -0,0 +1,25 @@ +{ + "target": "resumption.json", + "target_sha256": "cfedf8b68703bd3259f29cd5af40b31c4bc3cf3b47ee958a34b6f00572acce9f", + "status": "HISTORICAL_INITIAL_CHECKPOINT_SUPERSEDED_FOR_CURRENT_STATUS", + "corrections": [ + "The shared model may be stopped outside active tests under the current explicit authorization and restored unchanged", + "Named text-tensor layout checks, corrected BF16/Q8 full-server corpora and independent first-divergence observations have been exercised at the pins recorded in subsequent protocol sections", + "Resumed repeated timing is running; whole-model equivalence and a final performance comparison remain unverified" + ], + "evidence": [ + "PROTOCOL.md", + "ORDERED-WEIGHTS.md", + "results/WEIGHTS.md.ordered-verification.json", + "results/REFERENCE-RECEIPT-20261029.json", + "results/ALL-ARMS-TOKEN-AUDIT-20261029.json" + ], + "remaining": [ + "Complete all declared rounds and cells", + "Validate placement breakdown and decode time shares", + "Complete larger-model comparison and actual shared-service restoration qualification", + "Publish full source-bound statistics with limits", + "Qualify native Intel CPU and investigate available GPU" + ], + "publication_limit": "Resumption amendments published after the resumed timing campaign began; do not claim prospective remote registration" +} diff --git a/q35-9b/tools/build-weight-oracles.sh b/q35-9b/tools/build-weight-oracles.sh new file mode 100644 index 0000000..034c068 --- /dev/null +++ b/q35-9b/tools/build-weight-oracles.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# Verification-only. Requires an existing pinned container and Omega kernel object. +set -eu +[ "$#" -eq 2 ] || { echo 'usage: build-weight-oracles.sh NEW_OUT_DIR OMEGA_KERNEL_OBJECT' >&2; exit 2; } +SRC=$(cd "$(dirname "$0")" && pwd) +OUT=$(realpath -m "$1") +OBJECT=$(realpath "$2") +IMAGE=nvcr.io/nvidia/vllm@sha256:557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2 +docker image inspect "$IMAGE" > /dev/null +mkdir "$OUT" # Refuse to replace earlier evidence or binaries. +cc --version > "$OUT/host-compiler.txt" +sha256sum "$OBJECT" "$SRC/weight-numeric-glue.c" "$SRC/torch-cpu-exp.cpp" > "$OUT/sources.sha256" +cc -std=gnu11 -O2 -Wall -Wextra -Werror -o "$OUT/weight-numeric-glue" "$SRC/weight-numeric-glue.c" "$OBJECT" -lm +docker run --rm --pull=never --runtime runc --network none --read-only \ + -e NVIDIA_VISIBLE_DEVICES=void --tmpfs /tmp -v "$SRC:/src:ro" -v "$OUT:/out" \ + --entrypoint /bin/sh "$IMAGE" -c ' + set -eu + T=/usr/local/lib/python3.12/dist-packages/torch + /usr/bin/g++ --version + head -9 "$T/version.py" + /usr/bin/g++ -std=c++20 -O2 -Wall -Wextra -Werror \ + -isystem "$T/include" -isystem "$T/include/torch/csrc/api/include" \ + /src/torch-cpu-exp.cpp -L"$T/lib" -Wl,-rpath,"$T/lib" -ltorch_cpu -lc10 -o /out/torch-cpu-exp + ldd /out/torch-cpu-exp + ' > "$OUT/container-build.txt" 2>&1 +sha256sum "$OUT/weight-numeric-glue" "$OUT/torch-cpu-exp" > "$OUT/binaries.sha256" diff --git a/q35-9b/tools/cmp_ssm_a.py b/q35-9b/tools/cmp_ssm_a.py new file mode 100755 index 0000000..8116bf6 --- /dev/null +++ b/q35-9b/tools/cmp_ssm_a.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +"""Throwaway: max ULP distance between GGUF ssm_a and -exp(A_log) from the HF safetensors, per layer.""" +import glob, sys, re +from safetensors import safe_open +import numpy as np, torch, gguf +HF, GG = sys.argv[1], sys.argv[2] +alog = {} +for f in sorted(glob.glob(HF + "/model.safetensors-*.safetensors")): + with safe_open(f, "pt") as s: + for k in s.keys(): + m = re.search(r"layers\.(\d+)\.linear_attn\.A_log$", k) + if m and "mtp" not in k: + alog[int(m.group(1))] = s.get_tensor(k) +worst = 0 +for t in gguf.GGUFReader(GG).tensors: + m = re.match(r"blk\.(\d+)\.ssm_a$", t.name) + if not m: + continue + g = np.sort(np.array(t.data, dtype=np.float32).ravel()) # converter may reorder value heads + ref = np.sort((-torch.exp(alog[int(m.group(1))].float())).numpy().ravel()) + ulp = np.abs(g.view(np.int32).astype(np.int64) - ref.view(np.int32).astype(np.int64)).max() + rel = np.abs(g - ref).max() / np.abs(ref).max() + worst = max(worst, ulp) + print(t.name, "max_ulp", ulp, "max_rel", "%.3g" % rel, "A_log dtype", alog[int(m.group(1))].dtype) +print("WORST_ULP", worst) diff --git a/q35-9b/tools/cmp_weights.py b/q35-9b/tools/cmp_weights.py new file mode 100755 index 0000000..04dd886 --- /dev/null +++ b/q35-9b/tools/cmp_weights.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python3 +"""Throwaway check (host tool): are llama.cpp's BF16 GGUF tensors byte-identical to the HF safetensors? +Matches tensors by element count + bytes; reports identical, transformed (same count, different bytes), +and unmatched, by name. Run inside the vLLM container (torch, safetensors) with gguf-py installed.""" +import hashlib, json, sys, glob +from safetensors import safe_open +import torch +import gguf + +HF, GG = sys.argv[1], sys.argv[2] +hf = {} +for f in sorted(glob.glob(HF + "/model.safetensors-*.safetensors")): + with safe_open(f, "pt") as s: + for k in s.keys(): + if ".visual." in k or k.startswith("mtp.") or "model.visual" in k: + continue + t = s.get_tensor(k) + hf[k] = t +by_hash = {} +for k, t in hf.items(): + b = t.contiguous().view(torch.uint8).numpy().tobytes() if t.dtype == torch.bfloat16 else None + if b is not None: + by_hash.setdefault(hashlib.sha256(b).hexdigest(), []).append(k) + +r = gguf.GGUFReader(GG) +out = {"identical": [], "not_identical": []} +for t in r.tensors: + h = hashlib.sha256(bytes(t.data.tobytes())).hexdigest() + name = t.name + typ = t.tensor_type.name + if h in by_hash: + out["identical"].append([name, typ, by_hash[h][0]]) + else: + out["not_identical"].append([name, typ, [int(x) for x in t.shape]]) +print(json.dumps({"gguf_tensors": len(r.tensors), "hf_text_tensors": len(hf), + "identical": len(out["identical"]), "not_identical": len(out["not_identical"])})) +kinds = {} +for name, typ, shape in out["not_identical"]: + key = (name.split(".", 2)[-1] if name.startswith("blk.") else name, typ) + kinds[key] = kinds.get(key, 0) + 1 +for (k, typ), n in sorted(kinds.items()): + print("NOT_IDENTICAL", k, typ, "x%d" % n) +json.dump(out, open(sys.argv[3], "w"), indent=0) diff --git a/q35-9b/tools/cmp_weights2.py b/q35-9b/tools/cmp_weights2.py new file mode 100755 index 0000000..3a73dac --- /dev/null +++ b/q35-9b/tools/cmp_weights2.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python3 +"""Throwaway check, part 2: for GGUF tensors that are not byte-identical to an HF tensor, test whether the +values are the same up to (a) a reordering (sorted-value multiset equal after exact bf16->f32 widening), +(b) +1 (zero-centred RMSNorm stored as 1+w), or (c) -exp(A_log). Prints one line per class.""" +import hashlib, json, sys, glob +from safetensors import safe_open +import torch, gguf +import numpy as np + +HF, GG, PREV = sys.argv[1], sys.argv[2], sys.argv[3] +prev = json.load(open(PREV)) +todo = {n for n, _, _ in prev["not_identical"] if not n.startswith("blk.32.") and not n.startswith("nextn")} + +def key(a): + return hashlib.sha256(np.sort(a.astype(np.float32).ravel()).tobytes()).hexdigest() + +hf = {} +for f in sorted(glob.glob(HF + "/model.safetensors-*.safetensors")): + with safe_open(f, "pt") as s: + for k in s.keys(): + if "visual" in k or k.startswith("mtp."): + continue + t = s.get_tensor(k).float().numpy() + for tag, v in (("same", t), ("plus1", t + np.float32(1)), ("negexp", -np.exp(t))): + hf.setdefault(key(v), []).append((k, tag)) + +r = gguf.GGUFReader(GG) +res = {} +for t in r.tensors: + if t.name not in todo: + continue + a = np.array(t.data) + if t.tensor_type.name == "BF16": + a = (a.view(np.uint16).astype(np.uint32) << 16).view(np.float32) + m = hf.get(key(a)) + cls = (t.name.split(".", 2)[-1], t.tensor_type.name, m[0][1] if m else "NO_MATCH") + res[cls] = res.get(cls, 0) + 1 +for (n, ty, how), c in sorted(res.items()): + print(n, ty, how, "x%d" % c) diff --git a/q35-9b/tools/correctness-node-20261029.sh b/q35-9b/tools/correctness-node-20261029.sh new file mode 100644 index 0000000..0d4894a --- /dev/null +++ b/q35-9b/tools/correctness-node-20261029.sh @@ -0,0 +1,61 @@ +#!/usr/bin/env bash +set -euo pipefail +ROOT=/home/drakestapleton/handoffs/stack-comparison-20261029/correctness-full-1 +REPO=/home/drakestapleton/workspace/stack-comparison-20261029 +LLAMA=/home/drakestapleton/h2h/dl/llama-bin/llama-b11913 +CUDART=/home/drakestapleton/h2h/dl/llama-bin/cudart-llama-b11913-bin-ubuntu-cuda-13.4-arm64 +mkdir "$ROOT" +server_pid= +stop_server() { + if [ -n "$server_pid" ]; then + kill -TERM "$server_pid" 2>/dev/null || true + wait "$server_pid" 2>/dev/null || true + server_pid= + fi +} +cleanup() { + stop_server + printf 'CodexStackCompare: full correctness driver ended; all own servers stopped; resident18091 unchanged.\n' >> /home/drakestapleton/handoffs/BOARD.md +} +trap cleanup EXIT +export H2H_SRV_CPUS=5-9,15-19 H2H_CLI_CPUS=0-1 +for arm in OURS16 LLAMA16 LLAMA8; do + printf '%s %s start\n' "$(date -u +%FT%TZ)" "$arm" >> "$ROOT/status.log" + port=18290 + if [ "$arm" = OURS16 ]; then + model=q35-9b-ours-bf16 + ( + cd /home/drakestapleton/work/Ours9B/bin16 + exec env AIEN_GB10_LOCK_HELD=1 taskset -c "$H2H_SRV_CPUS" ./aien-serve-http \ + --engine omega --model-dir /home/drakestapleton/models/qwen3.5-9b-c2022362 \ + --model-id "$model" --max-context 32768 --max-tokens-cap 16384 \ + --thinking off --bind 127.0.0.1 --port "$port" + ) > "$ROOT/$arm-server.log" 2>&1 & + else + if [ "$arm" = LLAMA16 ]; then format=bf16;port=18293;else format=q8_0;port=18292;fi + model=q35-9b-$format + LD_LIBRARY_PATH="$CUDART:$LLAMA" taskset -c "$H2H_SRV_CPUS" "$LLAMA/llama-server" \ + -m "/home/drakestapleton/h2h/gguf/q35-9b-$format.gguf" --host 127.0.0.1 \ + --port "$port" -ngl 999 -fa on -c 32768 -np 1 --jinja \ + > "$ROOT/$arm-server.log" 2>&1 & + fi + server_pid=$! + ready=0 + for attempt in $(seq 1 120); do + if curl --fail --silent --max-time 2 "http://127.0.0.1:$port/v1/models" > "$ROOT/$arm-models.json"; then ready=1;break;fi + kill -0 "$server_pid" 2>/dev/null || { echo "$arm server exited";exit 1; } + sleep 1 + done + [ "$ready" -eq 1 ] || { echo "$arm startup timeout";exit 1; } + ss -ltnH "sport = :$port" > "$ROOT/$arm-listen.txt" + awk '$6 ~ /\.so/ {print $6}' /proc/"$server_pid"/maps | sort -u > "$ROOT/$arm-maps-so.txt" + nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv > "$ROOT/$arm-gpu.csv" + taskset -c "$H2H_CLI_CPUS" node "$REPO/bench/bench-node.mjs" \ + --port "$port" --model "$model" --arm "$arm" --round CORRECTNESS \ + --metric agree --prompts "$REPO/prompts/decode.jsonl" --concurrency 1 \ + --max-tokens 128 --warmup 0 --reps 16 --out "$ROOT/$arm.jsonl" \ + --cell-run correctness-only + stop_server + printf '%s %s complete\n' "$(date -u +%FT%TZ)" "$arm" >> "$ROOT/status.log" +done +printf 'COMPLETE\n' >> "$ROOT/status.log" diff --git a/q35-9b/tools/oracle_hf.py b/q35-9b/tools/oracle_hf.py new file mode 100755 index 0000000..9460675 --- /dev/null +++ b/q35-9b/tools/oracle_hf.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 +"""Throwaway oracle (host tool): greedy BF16 decode of Qwen3.5-9B with Hugging Face transformers, the +model's reference implementation, independent of both llama.cpp and our engine. Same 16 prompts, same +chat template (thinking off), 128 new tokens. Writes one JSON row per prompt with token ids and text.""" +import json, sys, time +import torch, transformers +from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration + +MODEL, PROMPTS, OUT = sys.argv[1], sys.argv[2], sys.argv[3] +tok = AutoTokenizer.from_pretrained(MODEL) +model = Qwen3_5ForConditionalGeneration.from_pretrained(MODEL, dtype=torch.bfloat16).to("cuda").eval() +meta = {"transformers": transformers.__version__, "torch": torch.__version__, "model": MODEL} +with open(OUT, "w") as f: + for line in open(PROMPTS): + p = json.loads(line) + ids = tok.apply_chat_template([{"role": "user", "content": p["text"]}], add_generation_prompt=True, + enable_thinking=False, return_tensors="pt", return_dict=True) + ids = {k: v.to("cuda") for k, v in ids.items()} + t0 = time.time() + with torch.no_grad(): + out = model.generate(**ids, max_new_tokens=128, do_sample=False, temperature=None, top_p=None, top_k=None) + new = out[0, ids["input_ids"].shape[1]:].tolist() + f.write(json.dumps({"prompt_id": p["id"], "prompt_tokens": ids["input_ids"].shape[1], "ids": new, + "text": tok.decode(new, skip_special_tokens=True), "seconds": time.time() - t0, + **meta}) + "\n") + f.flush() + print(p["id"], len(new), repr(tok.decode(new[:24])), flush=True) diff --git a/q35-9b/tools/oracle_run.sh b/q35-9b/tools/oracle_run.sh new file mode 100755 index 0000000..73b39fa --- /dev/null +++ b/q35-9b/tools/oracle_run.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Throwaway: run oracle_hf.py in the pinned vLLM container while holding /tmp/aien-gb10.lock. +set -u +B=/home/drakestapleton/handoffs/BOARD.md +exec 9>/tmp/aien-gb10.lock +flock 9 +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-START HF transformers BF16 oracle (lock held, untimed)" >> $B +docker run --rm --name h2h9b-oracle --runtime nvidia --gpus all --ipc host --cpuset-cpus 5-9,15-19 --entrypoint bash \ + -v /home/drakestapleton/models:/home/drakestapleton/models:ro -v /home/drakestapleton/handoffs:/home/drakestapleton/handoffs \ + nvcr.io/nvidia/vllm:26.09-py3 -c "python3 /home/drakestapleton/handoffs/H2H9B/oracle_hf.py \ + /home/drakestapleton/models/qwen3.5-9b-c2022362 /home/drakestapleton/handoffs/HeadToHead/repo/prompts/decode.jsonl \ + /home/drakestapleton/handoffs/H2H9B/results/ref/HF-ORACLE.jsonl" > /home/drakestapleton/handoffs/H2H9B/results/ref/hf-oracle.log 2>&1 +rc=$? +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-END HF oracle rc=$rc" >> $B +echo "rc=$rc" diff --git a/q35-9b/tools/ordered-weights.mjs b/q35-9b/tools/ordered-weights.mjs new file mode 100644 index 0000000..6ce584d --- /dev/null +++ b/q35-9b/tools/ordered-weights.mjs @@ -0,0 +1,149 @@ +// Verification-only byte/address glue. Numeric transforms call seeded Omega. +// Converter reference: llama.cpp 7aca0d2e conversion/qwen.py, lines 404 and 463-655. +import fs from 'node:fs'; +import {spawnSync} from 'node:child_process'; +import {createHash} from 'node:crypto'; +import {pathToFileURL} from 'node:url'; +import {readAt,ggufCatalog,safetensorsCatalog} from './weight-files.mjs'; +const sha=p=>createHash('sha256').update(fs.readFileSync(p)).digest('hex'); + +export function mapping(name,c) { + if(name==='lm_head.weight')return {name:'output.weight'}; + if(name.startsWith('mtp.')||name.startsWith('model.visual.'))return null; + const prefix='model.language_model.'; + if(!name.startsWith(prefix))throw Error('unknown HF namespace: '+name); + name=name.slice(prefix.length); + if(name==='embed_tokens.weight')return {name:'token_embd.weight'}; + if(name==='norm.weight')return {name:'output_norm.weight',numeric:'plus1'}; + const m=/^layers\.(\d+)\.(.+)$/.exec(name);if(!m||Number(m[1])>=c.num_hidden_layers)throw Error('unknown text tensor'); + const base='blk.'+m[1]+'.',tail=m[2]; + const simple={'mlp.down_proj.weight':'ffn_down.weight','mlp.up_proj.weight':'ffn_up.weight', + 'mlp.gate_proj.weight':'ffn_gate.weight','self_attn.q_proj.weight':'attn_q.weight', + 'self_attn.k_proj.weight':'attn_k.weight','self_attn.v_proj.weight':'attn_v.weight', + 'self_attn.o_proj.weight':'attn_output.weight','linear_attn.norm.weight':'ssm_norm.weight'}; + if(simple[tail])return {name:base+simple[tail]}; + const norms={'input_layernorm.weight':'attn_norm.weight','post_attention_layernorm.weight':'post_attention_norm.weight', + 'self_attn.q_norm.weight':'attn_q_norm.weight','self_attn.k_norm.weight':'attn_k_norm.weight'}; + if(norms[tail])return {name:base+norms[tail],numeric:'plus1'}; + const qk=2*c.linear_num_key_heads*c.linear_key_head_dim; + const linear={ + 'in_proj_qkv.weight':{target:'attn_qkv.weight',axis:0,prefix:qk,hd:c.linear_value_head_dim}, + 'in_proj_z.weight':{target:'attn_gate.weight',axis:0,hd:c.linear_value_head_dim}, + 'in_proj_a.weight':{target:'ssm_alpha.weight',axis:0,hd:1}, + 'in_proj_b.weight':{target:'ssm_beta.weight',axis:0,hd:1}, + 'out_proj.weight':{target:'ssm_out.weight',axis:1,hd:c.linear_value_head_dim}, + 'conv1d.weight':{target:'ssm_conv1d.weight',axis:0,prefix:qk,hd:c.linear_value_head_dim,squeeze:true}, + 'dt_bias':{target:'ssm_dt.bias',axis:0,hd:1}, + 'A_log':{target:'ssm_a',axis:0,hd:1,numeric:'negexp'} + }; + const v=tail.startsWith('linear_attn.')?linear[tail.slice('linear_attn.'.length)]:null; + if(!v)throw Error('unmapped text tensor: '+name); + return {...v,name:base+v.target}; +} +export function reorder(data,shape,bytes,c,plan) { + if(plan.axis===undefined)return Buffer.from(data); + const nk=c.linear_num_key_heads,nv=c.linear_num_value_heads,per=nv/nk,hd=plan.hd,prefix=plan.prefix||0; + if(!Number.isInteger(per)||per<=0||!Number.isInteger(hd)||hd<=0)throw Error('invalid head mapping'); + if(shape[plan.axis]!==prefix+nv*hd)throw Error('head axis does not match tensor'); + const out=Buffer.alloc(data.length); + if(plan.axis===0){ + const stride=shape.slice(1).reduce((a,b)=>a*b,1)*bytes; + data.copy(out,0,0,prefix*stride); + for(let v=0;vx.startsWith('--only='))?.slice(7); + const expHelper=options.find(x=>x.startsWith('--negexp-helper='))?.slice('--negexp-helper='.length); + if(options.some(x=>x!=='--mutant-order'&&!x.startsWith('--only=')&&!x.startsWith('--negexp-helper=')))throw Error('unknown option'); + const configFile=hfDir+'/config.json',c=JSON.parse(fs.readFileSync(configFile)).text_config; + for(const k of ['num_hidden_layers','linear_num_key_heads','linear_num_value_heads','linear_key_head_dim','linear_value_head_dim']) + if(!Number.isSafeInteger(c[k])||c[k]<=0)throw Error('invalid model config'); + const hf=safetensorsCatalog(hfDir),g=ggufCatalog(ggufFile); + try { + const plans=[],covered=new Set(),excludedHF=[]; + for(const t of hf.tensors.values()){ + const p=mapping(t.name,c);if(!p){excludedHF.push(t.name);continue;} + const target=g.tensors.get(p.name);if(!target||covered.has(p.name))throw Error('missing/duplicate named GGUF tensor: '+p.name); + const shape=p.squeeze?t.shape.filter(x=>x!==1):t.shape; + if(JSON.stringify(shape)!==JSON.stringify(target.shape))throw Error('shape mismatch: '+p.name); + covered.add(p.name);plans.push({h:t,g:target,plan:p,shape}); + } + const excludedGGUF=[]; + for(const name of g.tensors.keys())if(!covered.has(name)){ + const m=/^blk\.(\d+)\./.exec(name); + if(name.startsWith('nextn.')||(m&&Number(m[1])===c.num_hidden_layers))excludedGGUF.push(name); + else throw Error('unaccounted GGUF tensor: '+name); + } + const report={kind:'ordered_weight_verification',source:'llama.cpp7aca0d2e conversion/qwen.py', + numeric:expHelper?'seeded Omega plus-one; pinned ATen CPU exp oracle':'seeded Omega bin/sexp units via I/O-only glue', + numericBinarySha256:sha(numeric),expHelper:expHelper?{path:expHelper,sha256:sha(expHelper)}:null, + configSha256:sha(configFile),mutantOrder:mutant,only:only||null, + catalogue:{hf:hf.tensors.size,gguf:g.tensors.size,textPlans:plans.length,excludedHF,excludedGGUF},rows:[],expEvidence:[]}; + const selected=only?plans.filter(p=>p.g.name===only):plans;if(!selected.length)throw Error('empty tensor selection'); + for(const {h,g,plan,shape}of selected){ + let mismatch; + if(plan.axis===undefined&&!plan.numeric&&h.dtype===g.dtype)mismatch=compareDirect(h,g); + else{ + let data=readAt(h.fd,h.offset,h.bytes); + if(h.dtype!==g.dtype){if(h.dtype!=='BF16'||g.dtype!=='F32')throw Error('unhandled numeric format');data=widenBf16(data);} + const input=reorder(data,shape,g.dtype==='BF16'?2:4,c,mutant?{...plan,axis:undefined}:plan); + let expected=input; + if(plan.numeric){ + if(g.dtype!=='F32')throw Error('numeric transform requires F32'); + const helper=plan.numeric==='negexp'&&expHelper?expHelper:numeric; + const result=spawnSync(helper,[plan.numeric],{input,timeout:60000,maxBuffer:1048576}); + if(result.status!==0||result.stdout.length!==input.length)throw Error('numeric transform failed: '+result.status); + expected=result.stdout; + } + const actual=readAt(g.fd,g.offset,g.bytes);mismatch=difference(expected,actual); + if(plan.numeric==='negexp')report.expEvidence.push({tensor:g.name, + inputBits:Array.from({length:input.length/4},(_,i)=>input.readUInt32LE(i*4)), + referenceBackend:expHelper?'pinned ATen CPU':'seeded Omega sexp', + expectedBits:Array.from({length:expected.length/4},(_,i)=>expected.readUInt32LE(i*4)), + actualBits:Array.from({length:actual.length/4},(_,i)=>actual.readUInt32LE(i*4))}); + } + report.rows.push({hf:h.name,gguf:g.name,shape,hfType:h.dtype,ggufType:g.dtype, + permutationAxis:plan.axis??null,numeric:plan.numeric||null,status:mismatch?'MISMATCH':'EXACT',mismatch}); + } + report.status=report.rows.some(r=>r.status!=='EXACT')?'MISMATCH':only?'PARTIAL_SELECTION_EXACT':'ALL_NAMED_TEXT_TENSORS_EXACT'; + fs.writeFileSync(out,JSON.stringify(report,null,2)+'\n',{flag:'wx'}); + console.log(JSON.stringify({status:report.status,checked:report.rows.length, + mismatches:report.rows.filter(r=>r.status!=='EXACT').map(r=>({name:r.gguf,transform:r.numeric,axis:r.permutationAxis,mismatch:r.mismatch}))})); + if(report.status==='MISMATCH')process.exitCode=1; + }finally{hf.close();g.close();} +} +if(process.argv[1]&&import.meta.url===pathToFileURL(process.argv[1]).href) + try{main();}catch(e){console.error(e.message);process.exitCode=1;} diff --git a/q35-9b/tools/ref9b.sh b/q35-9b/tools/ref9b.sh new file mode 100755 index 0000000..03b1963 --- /dev/null +++ b/q35-9b/tools/ref9b.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Throwaway: capture LLAMA16 (BF16 GGUF) greedy reference outputs for the correctness gate. +# Not a timed cell. Holds /tmp/aien-gb10.lock for its few minutes. +set -u +H=/home/drakestapleton/handoffs/H2H9B; REPO=/home/drakestapleton/handoffs/HeadToHead/repo +LLAMA_DIR=/home/drakestapleton/h2h/dl/llama-bin/llama-b11913 +CUDART_DIR=/home/drakestapleton/h2h/dl/cudart-llama-b11913-bin-ubuntu-cuda-13.4-arm64 +mkdir -p $H/results/ref +exec 9>/tmp/aien-gb10.lock; flock 9 +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-START LLAMA16 reference capture (lock held, <10 min)" >> /home/drakestapleton/handoffs/BOARD.md +LD_LIBRARY_PATH=$CUDART_DIR:$LLAMA_DIR taskset -c 5-9,15-19 $LLAMA_DIR/llama-server -m /home/drakestapleton/h2h/gguf/q35-9b-bf16.gguf \ + --host 127.0.0.1 --port 18293 -ngl 999 -fa on -c 32768 -np 1 --jinja < /dev/null > $H/results/ref/server.log 2>&1 & +SPID=$! +for _ in $(seq 1 300); do curl -s -m 2 127.0.0.1:18293/v1/models | grep -q q35 && break; sleep 1; done +taskset -c 0-1 python3 $REPO/bench/bench.py --port 18293 --model q35-9b-bf16 --arm LLAMA16 --round REF --metric agree \ + --prompts $REPO/prompts/decode.jsonl --concurrency 1 --max-tokens 128 --warmup 0 --reps 16 \ + --out $H/results/ref/LLAMA16-REF.jsonl --cell-run LLAMA16-REF-agree 2> $H/results/ref/client.log +echo "client exit $?" +kill $SPID; wait $SPID 2>/dev/null +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-END LLAMA16 reference capture" >> /home/drakestapleton/handoffs/BOARD.md diff --git a/q35-9b/tools/rounds.sh b/q35-9b/tools/rounds.sh new file mode 100755 index 0000000..868230e --- /dev/null +++ b/q35-9b/tools/rounds.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# Throwaway: PROTOCOL.md "Design". 3 rounds; per round every ready arm once, order from random.Random(9). +# usage: rounds.sh ARM [ARM ...] (arms whose env/GGUF is ready; missing arms are NOT_RUN, listed in the log) +set -u +H=/home/drakestapleton/handoffs/H2H9B +mkdir -p $H/results +ORDER=$(python3 -c " +import random, sys +arms = sys.argv[1:]; r = random.Random(9) +for k in (1, 2, 3): + a = list(arms); r.shuffle(a); print('R%d %s' % (k, ' '.join(a)))" "$@") +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) arms: $* ; order:" | tee -a $H/results/rounds.log +echo "$ORDER" | tee -a $H/results/rounds.log +while read -r R arms; do + for A in $arms; do + echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) start $A $R" >> $H/results/rounds.log + $H/run9b.sh $A $R > /dev/null 2>&1 + echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) end $A $R rc=$?" >> $H/results/rounds.log + done +done <<< "$ORDER" +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) ALL ROUNDS DONE" >> $H/results/rounds.log diff --git a/q35-9b/tools/run9b.sh b/q35-9b/tools/run9b.sh new file mode 100755 index 0000000..f537058 --- /dev/null +++ b/q35-9b/tools/run9b.sh @@ -0,0 +1,93 @@ +#!/usr/bin/env bash +# Throwaway measurement driver for PROTOCOL.md (host tool, not product code). +# usage: run9b.sh ARM ROUND ARM in OURS LLAMA LLAMA16 +# Holds /tmp/aien-gb10.lock for the whole session; one server at a time. +set -u +ARM=$1 ROUND=$2 +H=/home/drakestapleton/handoffs/H2H9B +REPO=/home/drakestapleton/handoffs/HeadToHead/repo +LLAMA_DIR=/home/drakestapleton/h2h/dl/llama-bin/llama-b11913 +CUDART_DIR=/home/drakestapleton/h2h/dl/cudart-llama-b11913-bin-ubuntu-cuda-13.4-arm64 +SRV_CPUS=5-9,15-19 CLI_CPUS=0-1 +export H2H_SRV_CPUS=$SRV_CPUS H2H_CLI_CPUS=$CLI_CPUS +LOGD=$H/results/logs/$ARM-$ROUND; OUT=$H/results/raw/$ARM-$ROUND.jsonl +mkdir -p "$LOGD" "$H/results/raw" "$H/results/llama-bench" +ts() { date -u +%Y-%m-%dT%H:%M:%SZ; } +log() { echo "$(ts) $*" | tee -a "$LOGD/session.log"; } +board() { echo "$(ts) Main(H2H-9B): $*" >> /home/drakestapleton/handoffs/BOARD.md; } + +case $ARM in + LLAMA16) PORT=18293; MID=q35-9b-bf16; G=/home/drakestapleton/h2h/gguf/q35-9b-bf16.gguf ;; + LLAMA8) PORT=18292; MID=q35-9b-q8_0; G=/home/drakestapleton/h2h/gguf/q35-9b-q8_0.gguf ;; + OURS16) PORT=18290; source "$H/ours16.env" ;; # sets OURS_DIR, OURS_ENV, OURS_ARGS, MID + OURS8) PORT=18291; source "$H/ours8.env" ;; + LLOMEGA8) PORT=18294; source "$H/llomega8.env" ;; # sets LLOMEGA_DIR, LLOMEGA_ENV, LLOMEGA_ARGS, MID + LLOMEGA16) PORT=18295; source "$H/llomega16.env" ;; + *) echo "bad arm"; exit 2 ;; +esac + +start_server() { # $1 = parallel slots (llama only) + case $ARM in + LLAMA*) LD_LIBRARY_PATH=$CUDART_DIR:$LLAMA_DIR taskset -c $SRV_CPUS "$LLAMA_DIR/llama-server" -m "$G" \ + --host 127.0.0.1 --port $PORT -ngl 999 -fa on -c 32768 -np $1 --jinja \ + < /dev/null >> "$LOGD/server.log" 2>&1 & ;; + OURS*) ( cd "$OURS_DIR" && exec env $OURS_ENV taskset -c $SRV_CPUS ./aien-serve-http $OURS_ARGS \ + --bind 127.0.0.1 --port $PORT ) < /dev/null >> "$LOGD/server.log" 2>&1 & ;; + LLOMEGA*) ( cd "$LLOMEGA_DIR" && exec env $LLOMEGA_ENV taskset -c $SRV_CPUS ./llama-server $LLOMEGA_ARGS \ + --host 127.0.0.1 --port $PORT ) < /dev/null >> "$LOGD/server.log" 2>&1 & ;; + esac + SPID=$! + local t0; t0=$(date +%s.%N) + for _ in $(seq 1 600); do + curl -s -m 2 -o /dev/null -w '%{http_code}' 127.0.0.1:$PORT/v1/models 2>/dev/null | grep -q 200 && { + log "ready np=$1 load_seconds $(echo "$(date +%s.%N) - $t0" | bc)"; return 0; } + kill -0 $SPID 2>/dev/null || { log "server died during load"; return 1; } + sleep 1 + done + log "server not ready in 600 s"; return 1 +} +stop_server() { kill $SPID 2>/dev/null; for _ in $(seq 1 60); do kill -0 $SPID 2>/dev/null || break; sleep 1; done; kill -9 $SPID 2>/dev/null; wait $SPID 2>/dev/null; } + +cell() { # metric concurrency max_tokens promptfile [extra] + local metric=$1 c=$2 mt=$3 pf=$4; shift 4 + local q=0 + for _ in $(seq 1 10); do python3 "$REPO/bench/quiet.py" --window 60 --max-load 6 --exclude-tree $$ >> "$LOGD/quiet.jsonl" && { q=1; break; }; done + [ $q = 1 ] || log "cell $metric LOADED (no quiet window in 10 tries)" + log "cell $metric start" + taskset -c $CLI_CPUS python3 "$REPO/bench/bench.py" --port $PORT --model "$MID" --arm $ARM --round $ROUND --metric "$metric" \ + --prompts "$REPO/prompts/$pf" --concurrency $c --max-tokens $mt --out "$OUT" --cell-run "$ARM-$ROUND-$metric" "$@" \ + 2>> "$LOGD/client.log" + log "cell $metric exit $?" +} + +session() { + board "GPU-START $ARM $ROUND (lock held)" + nvidia-smi --query-compute-apps=pid,name,used_memory --format=csv > "$LOGD/gpu-before.csv" 2>&1 + { nvidia-smi -q -d CLOCK,POWER,PERFORMANCE; cat /proc/loadavg; uname -r; ps -eo pcpu,pid,comm --sort=-pcpu | head -12; } > "$LOGD/machine-before.txt" 2>&1 + vmstat -t 1 > "$LOGD/vmstat.txt" & VMS=$! + if start_server 1; then + awk '$6 ~ /\.so/ {print $6}' /proc/$SPID/maps 2>/dev/null | sort -u > "$LOGD/maps-so.txt" + cell agree 1 128 decode.jsonl --warmup 0 --reps 16 + cell decode-c1 1 256 decode.jsonl --warmup 2 --reps 3 + for p in p512 p2k p8k; do cell prefill-$p 1 1 prefill.jsonl --select $p --warmup 2 --reps 3 --nonce; done + fi + stop_server + case $ARM in LLAMA*) + if start_server 8; then cell decode-c8 8 256 decode.jsonl --warmup 1 --reps 3; fi + stop_server + LD_LIBRARY_PATH=$CUDART_DIR:$LLAMA_DIR "$LLAMA_DIR/llama-server" --version > "$LOGD/version.txt" 2>&1 + LD_LIBRARY_PATH=$CUDART_DIR:$LLAMA_DIR timeout 900 taskset -c $SRV_CPUS "$LLAMA_DIR/llama-bench" -m "$G" \ + -ngl 99 -fa on -p 512,2048,8192 -n 128 -r 5 -o jsonl > "$H/results/llama-bench/$ARM-$ROUND.jsonl" 2> "$LOGD/llama-bench.log" < /dev/null + log "llama-bench exit $?" ;; + esac + kill $VMS 2>/dev/null + nvidia-smi --query-compute-apps=pid,name,used_memory --format=csv > "$LOGD/gpu-after.csv" 2>&1 + board "GPU-END $ARM $ROUND" +} + +exec 9>/tmp/aien-gb10.lock +log "waiting for /tmp/aien-gb10.lock" +flock 9 +log "lock held" +session +log "DONE" diff --git a/q35-9b/tools/test-ordered-weights.mjs b/q35-9b/tools/test-ordered-weights.mjs new file mode 100644 index 0000000..78bf626 --- /dev/null +++ b/q35-9b/tools/test-ordered-weights.mjs @@ -0,0 +1,62 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import fs from 'node:fs'; +import os from 'node:os'; +import path from 'node:path'; +import {reorder,widenBf16,mapping} from './ordered-weights.mjs'; +import {ggufCatalog,safetensorsCatalog} from './weight-files.mjs'; +const c={linear_num_key_heads:2,linear_num_value_heads:6,num_hidden_layers:1,linear_value_head_dim:2,linear_key_head_dim:1}; +const words=xs=>{const b=Buffer.alloc(xs.length*2);xs.forEach((x,i)=>b.writeUInt16LE(x,i*2));return b;}; +const unpack=b=>Array.from({length:b.length/2},(_,i)=>b.readUInt16LE(i*2)); +// Golden addresses from the recorded Wolfram reshape/transpose query, not from this implementation. +const golden=[0,1,6,7,2,3,8,9,4,5,10,11]; +test('row and column permutations match independent Wolfram address fixtures',()=>{ + const data=words(Array.from({length:12},(_,i)=>i)); + assert.deepEqual(unpack(reorder(data,[12],2,c,{axis:0,hd:2})),golden); + const two=words(Array.from({length:24},(_,i)=>i)); + assert.deepEqual(unpack(reorder(two,[2,12],2,c,{axis:1,hd:2})), + [0,1,6,7,2,3,8,9,4,5,10,11,12,13,18,19,14,15,20,21,16,17,22,23]); +}); +test('Q/K prefix stays fixed while only V rows move',()=>{ + const data=words(Array.from({length:16},(_,i)=>i)); + assert.deepEqual(unpack(reorder(data,[16],2,c,{axis:0,hd:2,prefix:4})), + [0,1,2,3,4,5,10,11,6,7,12,13,8,9,14,15]); +}); +test('same-multiset wrong order is detected rather than accepted',()=>{ + const src=words(Array.from({length:12},(_,i)=>i)),good=reorder(src,[12],2,c,{axis:0,hd:2}); + assert.deepEqual(unpack(src).sort((a,b)=>a-b),unpack(good).sort((a,b)=>a-b)); + assert(!src.equals(good)); + assert.throws(()=>reorder(src,[12],2,{...c,linear_num_key_heads:4},{axis:0,hd:2})); + assert.throws(()=>reorder(src,[11],2,c,{axis:0,hd:2})); +}); +test('BF16 widening copies bits and malformed bytes fail',()=>{ + assert.deepEqual([...widenBf16(Buffer.from([0x80,0x3f,0,0x80]))],[0,0,0x80,0x3f,0,0,0,0x80]); + assert.throws(()=>widenBf16(Buffer.from([1]))); +}); +test('names and norm roles are explicit, with no unknown text-tensor fallback',()=>{ + assert.equal(mapping('model.language_model.layers.0.post_attention_layernorm.weight',c).name,'blk.0.post_attention_norm.weight'); + assert.equal(mapping('model.language_model.layers.0.linear_attn.in_proj_qkv.weight',c).prefix,4); + assert.equal(mapping('mtp.fc.weight',c),null); + assert.throws(()=>mapping('model.language_model.layers.0.unknown.weight',c)); +}); +const u32=n=>{const b=Buffer.alloc(4);b.writeUInt32LE(n);return b;}; +const u64=n=>{const b=Buffer.alloc(8);b.writeBigUInt64LE(BigInt(n));return b;}; +const str=s=>Buffer.concat([u64(Buffer.byteLength(s)),Buffer.from(s)]); +test('binary readers accept exact fixtures and refuse truncation or bad types',()=>{ + const root=fs.mkdtempSync(path.join(os.tmpdir(),'ordered-weight-control-')); + try{ + const file=path.join(root,'model.gguf'); + const header=Buffer.concat([Buffer.from('GGUF'),u32(3),u64(1),u64(0),str('fixture'),u32(1),u64(12),u32(30),u64(0)]); + const pad=Buffer.alloc((32-header.length%32)%32); + const bytes=Buffer.concat([header,pad,words(Array.from({length:12},(_,i)=>i))]); + fs.writeFileSync(file,bytes); + const g=ggufCatalog(file);assert.equal(g.tensors.get('fixture').bytes,24);g.close(); + fs.writeFileSync(file,bytes.subarray(0,bytes.length-1));assert.throws(()=>ggufCatalog(file)); + fs.writeFileSync(file,Buffer.from('GGUF'));assert.throws(()=>ggufCatalog(file)); + const safepath=path.join(root,'fixture.safetensors'); + const h=Buffer.from(JSON.stringify({fixture:{dtype:'BF16',shape:[12],data_offsets:[0,24]}})); + fs.writeFileSync(safepath,Buffer.concat([u64(h.length),h,words(Array.from({length:12},(_,i)=>i))])); + const s=safetensorsCatalog(root);assert.equal(s.tensors.size,1);s.close(); + fs.writeFileSync(safepath,Buffer.concat([u64(h.length),h]));assert.throws(()=>safetensorsCatalog(root)); + }finally{fs.rmSync(root,{recursive:true,force:true});} +}); diff --git a/q35-9b/tools/test-token-audit.mjs b/q35-9b/tools/test-token-audit.mjs new file mode 100644 index 0000000..8195c00 --- /dev/null +++ b/q35-9b/tools/test-token-audit.mjs @@ -0,0 +1,22 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import {compareTokens,uniqueRows,findObservation} from './token-audit.mjs'; +test('short prefixes and extra tokens cannot become identical',()=>{ + assert.equal(compareTokens([10,20],[10]).identical,false); + assert.equal(compareTokens([10],[10,20]).first_div,1); + assert.equal(compareTokens([10,20],[10,20]).identical,true); + assert.equal(compareTokens([10,20],[10,21]).token_b,21); +}); +test('a different token or divergence position cannot borrow an old tie',()=>{ + const records=[{prompt_id:'p',first_div:1,oracle_tok:20,arm_tok:21,oracle_len:2,logit_gap:0}]; + assert(findObservation(records,'p',compareTokens([10,20],[10,21]))); + assert.equal(findObservation(records,'p',compareTokens([10,20],[10,22])),null); + assert.equal(findObservation(records,'p',compareTokens([20,10],[21,10])),null); + assert.equal(findObservation(records,'other',compareTokens([10,20],[10,21])),null); + assert.equal(findObservation(records,'p',compareTokens([10,20],[10])),null); +}); +test('invalid IDs and duplicated/missing prompts fail closed',()=>{ + for(const ids of [[-1],[1.5],['1'],null]) assert.throws(()=>compareTokens(ids,[])); + assert.throws(()=>uniqueRows([{prompt_id:'p'},{prompt_id:'p'}])); + assert.throws(()=>uniqueRows([{}])); +}); diff --git a/q35-9b/tools/tie_check.py b/q35-9b/tools/tie_check.py new file mode 100755 index 0000000..16282e0 --- /dev/null +++ b/q35-9b/tools/tie_check.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python3 +"""Throwaway analysis (host tool): explain every greedy divergence against the HF transformers oracle. + +For each arm's agree output and each prompt: retokenize the arm's text, find the first token index k where it +differs from the oracle's greedy ids, then run the oracle model on prompt + oracle_ids[:k] and read the logits +at that position. Report the oracle's logit gap between its own token and the arm's token. A small gap means the +two tokens were a near tie for the reference model too (a precision-level divergence); a large gap means the +arm picked a token the reference model considers clearly worse (a bug signal). +usage: tie_check.py MODEL ORACLE.jsonl OUT.jsonl ARM=raw.jsonl [ARM=raw.jsonl ...] +""" +import json, sys +import torch +from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration + +MODEL, ORACLE, OUT = sys.argv[1:4] +arms = dict(a.split("=", 1) for a in sys.argv[4:]) +tok = AutoTokenizer.from_pretrained(MODEL) +model = Qwen3_5ForConditionalGeneration.from_pretrained(MODEL, dtype=torch.bfloat16).to("cuda").eval() +prompts = {json.loads(l)["id"]: json.loads(l)["text"] + for l in open("/home/drakestapleton/handoffs/HeadToHead/repo/prompts/decode.jsonl")} +oracle = {r["prompt_id"]: r for r in map(json.loads, open(ORACLE))} + +with open(OUT, "w") as f: + for arm, path in arms.items(): + rows = {} + for r in map(json.loads, open(path)): + if r.get("metric", "agree") == "agree" and not r.get("warmup") and not r.get("error"): + rows.setdefault(r["prompt_id"], r["text"]) + for pid, text in sorted(rows.items()): + o = oracle[pid]["ids"] + a = tok(text, add_special_tokens=False)["input_ids"] + k = next((i for i in range(min(len(a), len(o))) if a[i] != o[i]), None) + rec = {"arm": arm, "prompt_id": pid, "oracle_len": len(o), "arm_len": len(a), "first_div": k} + if k is not None: + p = tok.apply_chat_template([{"role": "user", "content": prompts[pid]}], add_generation_prompt=True, + enable_thinking=False, return_tensors="pt", return_dict=True) + ids = torch.cat([p["input_ids"][0], torch.tensor(o[:k], dtype=torch.long)]).unsqueeze(0).to("cuda") + with torch.no_grad(): + lg = model(input_ids=ids).logits[0, -1].float() + lp = torch.log_softmax(lg, -1) + top2 = torch.topk(lg, 2) + rec.update({"oracle_tok": o[k], "arm_tok": a[k], + "logit_gap": float(lg[o[k]] - lg[a[k]]), + "oracle_top1_top2_gap": float(top2.values[0] - top2.values[1]), + "arm_tok_rank": int((lg > lg[a[k]]).sum()), + "logprob_oracle_tok": float(lp[o[k]]), "logprob_arm_tok": float(lp[a[k]]), + "oracle_piece": tok.decode([o[k]]), "arm_piece": tok.decode([a[k]])}) + f.write(json.dumps(rec) + "\n"); f.flush() + print(json.dumps(rec), flush=True) diff --git a/q35-9b/tools/tie_run.sh b/q35-9b/tools/tie_run.sh new file mode 100755 index 0000000..0167224 --- /dev/null +++ b/q35-9b/tools/tie_run.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Throwaway: run tie_check.py in the pinned vLLM container under /tmp/aien-gb10.lock. +# usage: tie_run.sh OUT.jsonl ARM=/abs/raw.jsonl [...] +set -u +B=/home/drakestapleton/handoffs/BOARD.md +OUT=$1; shift +exec 9>/tmp/aien-gb10.lock +flock 9 +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-START HF tie check $* (lock held, untimed)" >> $B +docker run --rm --name h2h9b-tie --runtime nvidia --gpus all --ipc host --cpuset-cpus 5-9,15-19 --entrypoint bash \ + -v /home/drakestapleton/models:/home/drakestapleton/models:ro -v /home/drakestapleton/handoffs:/home/drakestapleton/handoffs \ + nvcr.io/nvidia/vllm:26.09-py3 -c "python3 /home/drakestapleton/handoffs/H2H9B/tie_check.py \ + /home/drakestapleton/models/qwen3.5-9b-c2022362 /home/drakestapleton/handoffs/H2H9B/results/ref/HF-ORACLE.jsonl $OUT $*" \ + > "$OUT.log" 2>&1 +rc=$? +echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-END HF tie check rc=$rc" >> $B +echo "rc=$rc" diff --git a/q35-9b/tools/token-audit.mjs b/q35-9b/tools/token-audit.mjs new file mode 100644 index 0000000..7d2690c --- /dev/null +++ b/q35-9b/tools/token-audit.mjs @@ -0,0 +1,96 @@ +// Verification-only: pinned CPU llama-tokenize against the recorded HF oracle. +// Counts/positions are retained; rates and statistics are calculated in Wolfram. +import fs from 'node:fs'; +import {spawnSync} from 'node:child_process'; +import {createHash} from 'node:crypto'; +import {pathToFileURL} from 'node:url'; +const hash=p=>createHash('sha256').update(fs.readFileSync(p)).digest('hex'); +const jsonl=p=>fs.readFileSync(p,'utf8').split('\n').filter(x=>x.trim()).map(JSON.parse); + +export function compareTokens(a,b) { + for(const ids of [a,b]) + if(!Array.isArray(ids)||ids.some(x=>!Number.isInteger(x)||x<0)) throw new Error('invalid token IDs'); + let prefix=0; + while(prefixr.prompt_id===prompt && r.first_div===comparison.first_div && + r.oracle_tok===comparison.token_a && r.arm_tok===comparison.token_b && + r.oracle_len===comparison.length_a && Number.isFinite(r.logit_gap)) || null; +} +function main() { + const [tokenizer,gguf,out,oraclePath,tiesCSV,...armArgs]=process.argv.slice(2); + if(!tokenizer||!gguf||!out||!oraclePath||!tiesCSV||!armArgs.length) throw new Error('missing arguments'); + if(fs.existsSync(out)) throw new Error('output already exists'); + const prompts=jsonl(new URL('../../prompts/decode.jsonl',import.meta.url)); + const oracle=uniqueRows(jsonl(oraclePath)); + if(prompts.length!==oracle.size || prompts.some(p=>!oracle.has(p.id))) throw new Error('oracle prompt coverage mismatch'); + const log=fs.openSync(out+'.tokenizer.log','wx'); + const tokens=text=>{ + if(typeof text!=='string') throw new Error('missing output text'); + const run=spawnSync(tokenizer,['-m',gguf,'--stdin','--ids','--no-bos','--no-parse-special','--no-escape'], + {input:text,encoding:'utf8',maxBuffer:16777216,timeout:60000}); + fs.writeSync(log,run.stderr||''); + if(run.status!==0) throw new Error('tokenizer failed: '+run.status); + const ids=JSON.parse(run.stdout); + compareTokens(ids,ids); // Validate IDs even when no comparison follows. + return ids; + }; + try { + const report={kind:'token_audit_not_final_model_qualification', + tokenizer:{path:tokenizer,sha256:hash(tokenizer),source:'7aca0d2ea8d92b56911233b822db01f9fbb1ae50',backend:'CPU-only'}, + oracle:{path:oraclePath,sha256:hash(oraclePath)},tieSources:[],oracleRoundtrip:[],arms:{},pairs:{}}; + const observations=[]; + for(const path of tiesCSV.split(',')) { + report.tieSources.push({path,sha256:hash(path)});observations.push(...jsonl(path)); + } + for(const [id,row] of oracle) report.oracleRoundtrip.push({prompt_id:id,...compareTokens(row.ids,tokens(row.text))}); + report.tokenizerValidatedAgainstRecordedHF=report.oracleRoundtrip.every(r=>r.identical); + const allTokens={}; + for(const arg of armArgs) { + const equal=arg.indexOf('=');if(equal<1) throw new Error('invalid arm argument'); + const arm=arg.slice(0,equal),path=arg.slice(equal+1); + if(allTokens[arm]) throw new Error('duplicate arm'); + const input=uniqueRows(jsonl(path)); + if(input.size!==oracle.size || [...oracle.keys()].some(id=>!input.has(id))) throw new Error('arm prompt coverage mismatch'); + allTokens[arm]={}; + report.arms[arm]={path,sha256:hash(path),rows:[]}; + for(const [id,reference] of oracle) { + const row=input.get(id); + if(row.error!==null || row.http_status!==200 || row.warmup || row.metric!=='agree') throw new Error('invalid correctness row'); + const ids=tokens(row.text);allTokens[arm][id]=ids; + const comparison=compareTokens(reference.ids,ids); + const observation=report.tokenizerValidatedAgainstRecordedHF?findObservation(observations,id,comparison):null; + report.arms[arm].rows.push({prompt_id:id,...comparison, + recordedUsage:row.usage?.completion_tokens??null, + priorObservation:observation, + observationStatus:comparison.identical?'IDENTICAL':observation?'EXACT_PRIOR_TUPLE':'NEEDS_ORACLE_OBSERVATION'}); + } + } + const names=Object.keys(allTokens); + for(let a=0;a({prompt_id:id, + ...compareTokens(allTokens[names[a]][id],allTokens[names[b]][id])})); + report.notes=['Recorded prior logit observations are reused only for exact prompt/position/token tuples against the same frozen HF oracle.', + 'Matching prior scores are observations, not proof of all-model numerical equivalence.', + 'Uncovered divergences remain unverified. No speed or model qualification verdict follows from request success alone.']; + fs.writeFileSync(out,JSON.stringify(report,null,2)+'\n',{flag:'wx'}); + console.log(JSON.stringify({tokenizerValidatedAgainstRecordedHF:report.tokenizerValidatedAgainstRecordedHF, + arms:Object.fromEntries(Object.entries(report.arms).map(([a,v])=>[a,v.rows.map(r=>({id:r.prompt_id,status:r.observationStatus,first:r.first_div,gap:r.priorObservation?.logit_gap??null}))]))})); + if(!report.tokenizerValidatedAgainstRecordedHF) process.exitCode=1; + } finally { fs.closeSync(log); } +} +if(process.argv[1] && import.meta.url===pathToFileURL(process.argv[1]).href) + try { main(); } catch(error) {console.error(error.message);process.exitCode=1;} diff --git a/q35-9b/tools/torch-cpu-exp.cpp b/q35-9b/tools/torch-cpu-exp.cpp new file mode 100644 index 0000000..1f5e440 --- /dev/null +++ b/q35-9b/tools/torch-cpu-exp.cpp @@ -0,0 +1,18 @@ +// Independent verification oracle only. Uses the original converter's pinned +// ATen CPU exp, without Python, model code, CUDA computation, or a production dependency. +// The pinned library's dependencies include libcudart; no library-absence claim is made. +#include +#include +#include +int main(int argc,char **argv) { + if(argc!=2||std::strcmp(argv[1],"negexp"))return 2; + static_assert(sizeof(float)==4); + unsigned char raw[65536];const size_t bytes=std::fread(raw,1,sizeof raw,stdin); + if(std::ferror(stdin)||!std::feof(stdin)||!bytes||bytes%4)return 2; + float values[16384];std::memcpy(values,raw,bytes);const size_t n=bytes/4; + try { + auto input=at::from_blob(values,{static_cast(n)},at::TensorOptions().dtype(at::kFloat).device(at::kCPU)); + auto result=at::neg(at::exp(input)).contiguous(); + return std::fwrite(result.const_data_ptr(),sizeof(float),n,stdout)==n?0:4; + }catch(const std::exception &){return 3;} +} diff --git a/q35-9b/tools/torch-cpu-exp.sh b/q35-9b/tools/torch-cpu-exp.sh new file mode 100755 index 0000000..9f279b3 --- /dev/null +++ b/q35-9b/tools/torch-cpu-exp.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Verification oracle only: pinned ATen CPU library, no Python entrypoint or GPU model. +set -eu +ORACLE=${STACK_TORCH_ORACLE_DIR:-/home/drakestapleton/handoffs/stack-comparison-20261029/torch-cpu-oracle} +exec docker run --rm -i --runtime runc --network none --read-only \ + -e NVIDIA_VISIBLE_DEVICES=void -e OMP_NUM_THREADS=1 -e OPENBLAS_NUM_THREADS=1 \ + -v "$ORACLE:/tool:ro" --entrypoint /tool/torch-cpu-exp \ + nvcr.io/nvidia/vllm@sha256:557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2 "$@" diff --git a/q35-9b/tools/weight-files.mjs b/q35-9b/tools/weight-files.mjs new file mode 100644 index 0000000..54dcb06 --- /dev/null +++ b/q35-9b/tools/weight-files.mjs @@ -0,0 +1,78 @@ +// Verification-only, read-only binary catalogues. Layouts from llama.cpp 7aca0d2e +// gguf-py/gguf/{constants,gguf_reader}.py and safetensors' JSON header. +import fs from 'node:fs'; +import path from 'node:path'; +export function readAt(fd,pos,size) { + if(!Number.isSafeInteger(pos)||!Number.isSafeInteger(size)||pos<0||size<0) throw Error('invalid byte range'); + const data=Buffer.alloc(size);let used=0; + while(usedthis.size)throw Error('invalid skip');this.pos+=n;} + bytes(n){ + if(!Number.isSafeInteger(n)||n<0||n>65536||this.pos+n>this.size)throw Error('invalid header size'); + if(this.posthis.base+this.cache.length){this.base=this.pos;this.cache=readAt(this.fd,this.pos,Math.min(1048576,this.size-this.pos));} + const b=this.cache.subarray(this.pos-this.base,this.pos-this.base+n);this.pos+=n;return b; + } + u32(){return this.bytes(4).readUInt32LE();} + u64(){const n=this.bytes(8).readBigUInt64LE();if(n>BigInt(Number.MAX_SAFE_INTEGER))throw Error('oversize integer');return Number(n);} + string(keep=true){const n=this.u64();if(!keep){this.skip(n);return null;}return this.bytes(n).toString('utf8');} + value(type,keep=false){ + const widths={0:1,1:1,2:2,3:2,4:4,5:4,6:4,7:1,10:8,11:8,12:8}; + if(type===8)return this.string(keep); + if(type===9){const sub=this.u32(),n=this.u64();if(widths[sub]){this.skip(n*widths[sub]);return null;} + if(sub!==8)throw Error('unsupported metadata array');for(let i=0;i4||tensors.has(name))throw Error('bad tensor descriptor'); + const dims=Array.from({length:rank},()=>r.u64()),type=r.u32(),relative=r.u64(); + if(dims.some(x=>x<=0)||![0,30].includes(type)||relative%alignment)throw Error('unsupported tensor shape/type/offset'); + const bytes=dims.reduce((a,b)=>a*b,1)*(type===30?2:4); + if(!Number.isSafeInteger(bytes))throw Error('tensor too large'); + tensors.set(name,{name,fd:r.fd,file,shape:dims.reverse(),dtype:type===30?'BF16':'F32',bytes,relative}); + } + const padding=r.pos%alignment;const base=padding?r.pos+alignment-padding:r.pos; + let end=base; + for(const t of [...tensors.values()].sort((a,b)=>a.relative-b.relative)){ + t.offset=base+t.relative;if(t.offsetr.size)throw Error('overlap or truncated tensor');end=t.offset+t.bytes; + } + return {tensors,alignment,dataOffset:base,close:()=>fs.closeSync(r.fd)}; + }catch(e){fs.closeSync(r.fd);throw e;} +} +export function safetensorsCatalog(directory){ + const tensors=new Map(),fds=[]; + try { + for(const file of fs.readdirSync(directory).filter(f=>f.endsWith('.safetensors')).sort()){ + const full=path.join(directory,file),fd=fs.openSync(full,'r');fds.push(fd); + const size=fs.fstatSync(fd).size,nBig=readAt(fd,0,8).readBigUInt64LE(); + if(nBig>16777216n||nBig>BigInt(size-8))throw Error('invalid safetensors header'); + const n=Number(nBig),header=JSON.parse(readAt(fd,8,n).toString('utf8'));let end=8+n; + const entries=[]; + for(const [name,v]of Object.entries(header)){ + if(name==='__metadata__')continue; + if(tensors.has(name)||!['BF16','F32'].includes(v.dtype)||!Array.isArray(v.shape)||v.shape.some(d=>!Number.isSafeInteger(d)||d<=0))throw Error('bad safetensors descriptor'); + if(!Array.isArray(v.data_offsets)||v.data_offsets.length!==2||v.data_offsets.some(d=>!Number.isSafeInteger(d)||d<0))throw Error('bad data offsets'); + const bytes=v.shape.reduce((a,b)=>a*b,1)*(v.dtype==='BF16'?2:4); + const [a,b]=v.data_offsets;if(!Number.isSafeInteger(bytes)||b-a!==bytes||8+n+b>size)throw Error('bad tensor byte length'); + const t={name,fd,file:full,shape:v.shape,dtype:v.dtype,bytes,offset:8+n+a};entries.push(t);tensors.set(name,t); + } + for(const t of entries.sort((a,b)=>a.offset-b.offset)){if(t.offset!==end)throw Error('overlapping or non-contiguous safetensors data');end=t.offset+t.bytes;} + if(end!==size)throw Error('unaccounted safetensors bytes'); + } + if(!tensors.size)throw Error('no safetensors');return {tensors,close:()=>fds.forEach(fd=>fs.closeSync(fd))}; + }catch(e){fds.forEach(fd=>fs.closeSync(fd));throw e;} +} diff --git a/q35-9b/tools/weight-numeric-glue.c b/q35-9b/tools/weight-numeric-glue.c new file mode 100644 index 0000000..06ebcf6 --- /dev/null +++ b/q35-9b/tools/weight-numeric-glue.c @@ -0,0 +1,33 @@ +/* Verification-only I/O glue. Every arithmetic operation calls existing + * seeded-Omega kernels from ggml-omega e0813903. No model or GPU is opened. */ +#include +#include +#include +#if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__ +#error little-endian verification target required +#endif +uint32_t omega_bin_32(uint64_t *,uint64_t,const void *,uint64_t,const void *,uint64_t,void *,uint64_t); +uint32_t omega_bin_1(uint64_t *,uint64_t,const void *,uint64_t,const void *,uint64_t,void *,uint64_t); +uint32_t omega_sexp_32(uint64_t *,uint64_t,void *,uint64_t,uint64_t); +uint32_t omega_sexp_1(uint64_t *,uint64_t,void *,uint64_t,uint64_t); +int main(int argc,char **argv) { + _Static_assert(sizeof(float)==4,"requires float32"); + if(argc!=2 || (strcmp(argv[1],"plus1") && strcmp(argv[1],"negexp")))return 2; + unsigned char raw[65536]; + size_t bytes=fread(raw,1,sizeof raw,stdin); + if(ferror(stdin)||!feof(stdin)||!bytes||bytes%4)return 2; + float data[16384],out[16384],ones[32];memcpy(data,raw,bytes); + for(size_t j=0;j<32;j++)ones[j]=1.0f; + const size_t n=bytes/4;size_t i=0;uint64_t r=0;uint32_t status; + while(i=32?32:1; + if(!strcmp(argv[1],"plus1")) { + status=lanes==32?omega_bin_32(&r,0,data+i,32,ones,32,out+i,32):omega_bin_1(&r,0,data+i,1,ones,1,out+i,1); + } else { + status=lanes==32?omega_sexp_32(&r,0,data+i,32,0):omega_sexp_1(&r,0,data+i,1,0); + for(size_t j=0;j