diff --git a/bench/correctness/check-batch.sh b/bench/correctness/check-batch.sh index 5966bfd..18402c9 100755 --- a/bench/correctness/check-batch.sh +++ b/bench/correctness/check-batch.sh @@ -2,15 +2,19 @@ # Plan section 4 run order step 6: strata-poly --check-batch 4 on the short set, both Qwen3.6 files. Each short # prompt gives 4 prompts (the prompt minus its first 0..3 tokens), answered alone and then together; exit 1 on a # differing token. -cd ~/us2-results/correctness || exit 1 -M=/mnt/ds4/unbiased-strata/qwen36 +# Paths (the defaults are the homelab VM's; set them for another machine): US2_MODELS, the directory holding +# qwen36/.gguf (required); US2_BUILD, the UnbiasedStrata tree with build/bin (default: this script's +# repository); US2_RESULTS, where results go (default ~/us2-results/correctness). +B=${US2_BUILD:-$(cd "$(dirname "$0")/../.." && pwd)}/build/bin +M=${US2_MODELS:?set US2_MODELS to the directory holding qwen36/}/qwen36 +mkdir -p "${US2_RESULTS:-$HOME/us2-results/correctness}" && cd "${US2_RESULTS:-$HOME/us2-results/correctness}" || exit 1 for tag in qwen36-q3km:Qwen3.6-35B-A3B-UD-Q3_K_M.gguf qwen36-iq4xs:Qwen3.6-35B-A3B-UD-IQ4_XS.gguf; do name=${tag%%:*}; file=${tag#*:}; out=checkbatch/$name; mkdir -p $out for p in inputs/short/p*.prompt.ids; do seq=$(basename $p .prompt.ids) - cmd="STRATA_FREEZE_EXPERTS=1 /home/rk/us2-build/build/bin/strata-poly --model $M/$file --max-context 8192 --tail-skip 0 --no-draft --lookup 0 --window 1 --tokens \$(cat $p) --batch 4 --check-batch 4 --max-new 64" + cmd="STRATA_FREEZE_EXPERTS=1 $B/strata-poly --model $M/$file --max-context 8192 --tail-skip 0 --no-draft --lookup 0 --window 1 --tokens \$(cat $p) --batch 4 --check-batch 4 --max-new 64" echo "$cmd # > $out/$seq.log" >> $out/command.sh - STRATA_FREEZE_EXPERTS=1 /home/rk/us2-build/build/bin/strata-poly --model $M/$file --max-context 8192 --tail-skip 0 --no-draft --lookup 0 --window 1 --tokens $(cat $p) --batch 4 --check-batch 4 --max-new 64 > $out/$seq.log 2>&1 + STRATA_FREEZE_EXPERTS=1 $B/strata-poly --model $M/$file --max-context 8192 --tail-skip 0 --no-draft --lookup 0 --window 1 --tokens $(cat $p) --batch 4 --check-batch 4 --max-new 64 > $out/$seq.log 2>&1 rc=$? echo "$name $seq: exit $rc; $(grep "^check-batch" $out/$seq.log | tr "\n" ";")" done diff --git a/bench/correctness/make-inputs.py b/bench/correctness/make-inputs.py index 071ad0e..61f659c 100644 --- a/bench/correctness/make-inputs.py +++ b/bench/correctness/make-inputs.py @@ -4,9 +4,18 @@ the real-text set, .answer.ids. Tokenizer: llama-tokenize from the reference bui tokenizer gives the same ids: checked on prompt 1, 2026-10-18). Chat prompts use Qwen's ChatML; thinking off = empty block, as tools/qwen35/parity_prompts.ids.""" import json, os, pathlib, subprocess, sys -ROOT = pathlib.Path.home() / 'us2-results/correctness' +# Paths (the defaults are the homelab VM's; set them for another machine): US2_MODELS, the directory holding +# qwen36/.gguf (required); US2_BUILD, the UnbiasedStrata tree with build/bin (default: this script's +# repository); US2_RESULTS, where results go (default ~/us2-results/correctness). +def _models(): + m = os.environ.get('US2_MODELS') + if not m: + sys.exit('set US2_MODELS to the directory holding qwen36/') + return pathlib.Path(m) +BUILD = pathlib.Path(os.environ.get('US2_BUILD') or pathlib.Path(__file__).resolve().parents[2]) +ROOT = pathlib.Path(os.environ.get('US2_RESULTS') or pathlib.Path.home() / 'us2-results/correctness') TOK = pathlib.Path.home() / 'llamacpp-ref/build/bin/llama-tokenize' -MODEL = '/mnt/ds4/unbiased-strata/qwen36/Qwen3.6-35B-A3B-UD-Q3_K_M.gguf' +MODEL = str(_models() / 'qwen36/Qwen3.6-35B-A3B-UD-Q3_K_M.gguf') SRC = ROOT / 'inputs-src'; OUT = ROOT / 'inputs' def tokenize(text): @@ -29,7 +38,7 @@ def write(setname, seq, prompt, answer=None, n_answer=None): print(setname, seq, meta) # short chat: upstream's 10 prompts, 128 answer tokens -ref_ids = [list(map(int, l.split(','))) for l in open(pathlib.Path.home() / 'us2-build/tools/qwen35/parity_prompts.ids') if l.strip()] +ref_ids = [list(map(int, l.split(','))) for l in open(BUILD / 'tools/qwen35/parity_prompts.ids') if l.strip()] for i, q in enumerate(json.load(open(SRC / 'short.json'))): ids = tokenize(chat(q, False)) assert ids == ref_ids[i], (i, ids, ref_ids[i]) # the retokenized prompt must equal upstream's file diff --git a/bench/correctness/parity-run.sh b/bench/correctness/parity-run.sh index 3fa8725..81aa8ac 100755 --- a/bench/correctness/parity-run.sh +++ b/bench/correctness/parity-run.sh @@ -3,8 +3,11 @@ # through ctest (one directory per test under parity/, with stdout+stderr and the exit code); the hand-run poly_* # programs after. Reconfigures first so iq_parity registers now that numpy is present. set -u -cd ~/us2-build || exit 1 -R=~/us2-results/correctness/parity; mkdir -p $R +# Paths (the defaults are the homelab VM's; set them for another machine): US2_MODELS, the directory holding +# qwen36/.gguf (required); US2_BUILD, the UnbiasedStrata tree with build/bin (default: this script's +# repository); US2_RESULTS, where results go (default ~/us2-results/correctness). +cd "${US2_BUILD:-$(cd "$(dirname "$0")/../.." && pwd)}" || exit 1 +R=${US2_RESULTS:-$HOME/us2-results/correctness}/parity; mkdir -p $R make configure CMAKE_EXTRA=-DSTRATA_BUILD_TESTS=ON CUDA_ARCHS=86 > $R/reconfigure.log 2>&1 cmake --build build -j 8 --target iq_parity >> $R/reconfigure.log 2>&1; echo "iq_parity build exit $?" >> $R/reconfigure.log ctest --test-dir build -N > $R/ctest-list.txt 2>&1 @@ -18,9 +21,10 @@ for t in $A; do echo "$t: exit $(cat $d/exit.txt) $(grep -oE "[0-9]+% tests passed|Passed|Failed|Not Run|Timeout" $d/ctest.txt | head -2 | tr '\n' ' ')" done # hand-run programs (section 2.2 "hand") -Q3=/mnt/ds4/unbiased-strata/qwen36/Qwen3.6-35B-A3B-UD-Q3_K_M.gguf; IQ4=/mnt/ds4/unbiased-strata/qwen36/Qwen3.6-35B-A3B-UD-IQ4_XS.gguf +M=${US2_MODELS:?set US2_MODELS to the directory holding qwen36/}/qwen36 +Q3=$M/Qwen3.6-35B-A3B-UD-Q3_K_M.gguf; IQ4=$M/Qwen3.6-35B-A3B-UD-IQ4_XS.gguf run() { n=$1; shift; d=$R/$n; mkdir -p $d; echo "$*" > $d/command.sh; timeout 3600 "$@" > $d/stdout.txt 2> $d/stderr.txt; echo $? > $d/exit.txt; echo "$n: exit $(cat $d/exit.txt), $(wc -l < $d/stdout.txt) stdout lines"; } -B=~/us2-build/build/bin +B=$PWD/build/bin run poly_route_test $B/poly_route_test run poly_norm_q8_test $B/poly_norm_q8_test run poly_gemm_small_test $B/poly_gemm_small_test diff --git a/bench/correctness/strata-run.py b/bench/correctness/strata-run.py index d86abbf..3845ff4 100644 --- a/bench/correctness/strata-run.py +++ b/bench/correctness/strata-run.py @@ -26,11 +26,20 @@ them on the card no decode miss happens and pin = pin2 = pint4 = pincpu = pingpu computed on the GPU (T0 against pin: a fetched expert equals a cached one) Writes strata//.pos.tsv, .scored.tsv (rows aligned to the answer), .engine.log, .done.txt, command.sh.""" import os, pathlib, subprocess, sys, time -sys.path.insert(0, str(pathlib.Path.home() / 'us2-build/tools/qwen35')) +# Paths (the defaults are the homelab VM's; set them for another machine): US2_MODELS, the directory holding +# qwen36/.gguf (required); US2_BUILD, the UnbiasedStrata tree with build/bin (default: this script's +# repository); US2_RESULTS, where results go (default ~/us2-results/correctness). +def _models(): + m = os.environ.get('US2_MODELS') + if not m: + sys.exit('set US2_MODELS to the directory holding qwen36/') + return pathlib.Path(m) +BUILD = pathlib.Path(os.environ.get('US2_BUILD') or pathlib.Path(__file__).resolve().parents[2]) +ROOT = pathlib.Path(os.environ.get('US2_RESULTS') or pathlib.Path.home() / 'us2-results/correctness') +sys.path.insert(0, str(BUILD / 'tools/qwen35')) from q36_harness import Eng -ROOT = pathlib.Path.home() / 'us2-results/correctness' -EXE = str(pathlib.Path.home() / 'us2-build/build/bin/strata') -M = '/mnt/ds4/unbiased-strata' +EXE = str(BUILD / 'build/bin/strata') +M = str(_models()) BASE = ['--pack', f'{M}/pack-iq3-xxs', '--native', f'{M}/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf', '--ple-gguf', f'{M}/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf', '--expert-profile', f'{M}/pack-iq3-xxs/expert-profile.bin', '--resident-experts', '--prefill', 'auto', diff --git a/docs/MODEL-FILES.md b/docs/MODEL-FILES.md index 3c2f920..897c007 100644 --- a/docs/MODEL-FILES.md +++ b/docs/MODEL-FILES.md @@ -12,13 +12,13 @@ with correct text, streaming, a tool call and reasoning, through `frontend/tests | --- | --- | --- | --- | --- | --- | --- | --- | | `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf` + `-00002-of-00002.gguf`, with `pack-iq3-xxs/` and `mtp/` made by upstream's `tools/iq_pack.py` and `tools/mtp_rt.py` | Niko1221 Strata GSQ-RCO release; pack and MTP built 2026-10-05 (`artifacts.sha256` on the pod) | 47,039,860,096 + 28,800,138,432 | shards unhashed; pack `dense.bin` `d2af3d83…`, mtp `dense.bin` `c724dc0b…` (full hashes in `bench/unbiased/*/engine-info.txt`) | `strata` | RTX 3090 pod, A6000 VM | works (2026-10-17: A6000 `bench/unbiased/2026-10-17-a6000-flash-next-iq3xxs-step6/`, RTX 3090 pod `…-3090pod-flash-next-iq3xxs-step6/`; the greedy answers of the two boxes are identical, and identical to upstream PolyStrata v0.1.45-poly.1 on the same files on the pod: `…-3090pod-…/upstream-compare/`; pi completed the multi-step coding task against it on the pod, `…-3090pod-flash-next-iq3xxs-step7-pi/`, and the request-shape checks pass, `…-step7-shapes/`; step 9 upstream-vs-fork measurement on the pod, `…-3090pod-step9/`: fork faster on every workload) | **passed with findings** (2026-10-18, A6000 VM, `strata` against llama.cpp `3cf03257` on 16 sequences, 3,279 teacher-forced steps; the reference is a partial offload, 28 of 48 layers on the card, and its CPU run): T2 passes on every set in every arm (fp16, 4-token windows, int8 KV, streamed KV, 512-token prompt chunks, every expert on the card, the CPU expert tier), 0.67 to 0.94x the reference's own spread; top-1 agreement at the floor's level; T1 fails at 0 to 4 of about 2,880 margin positions per arm, six distinct near-tie positions, none in every arm (USTRAT-5); the engine's bits depend on the free VRAM at start through the CPU-computed share of expert misses (USTRAT-4); with the placement held, repeats, window sizes, KV streaming and the CPU tier are bitwise reproducible | | `Qwen3.6-35B-A3B-UD-Q3_K_M.gguf` (MTP draft block in the file) | `unsloth/Qwen3.6-35B-A3B-MTP-GGUF` @ `5bc3e238` | 17,104,402,720 | `8966dd0cd8c543c4228490a2a8b0e0814fc4f1e6a8e199ceed4de6754ae7b8e1` | `strata-poly` | pod, A6000 VM | works (2026-10-17, RTX 3090 pod: `bench/unbiased/2026-10-17-3090pod-qwen36-ud-q3km-mtp-step6/`; 211 to 227 tok/s decode on short prompts, 88% of drafts accepted); A6000 `…-a6000-qwen36-ud-q3km-mtp-step6/`, 214 to 235 tok/s); the measured configuration of PLAN.md section 6; step 9 upstream-vs-fork on the pod, `…-3090pod-step9/`: decode within noise, 16K prefill 2.3 % slower, to explain | **passed with findings** (2026-10-18, A6000 VM, `strata-poly` against llama.cpp `3cf03257` CUDA on 16 sequences, 2,976 teacher-forced steps): T2 (mean KL to llama.cpp's GPU run within 1.5x llama.cpp's own CPU-vs-GPU spread) passes on every set and every arm, 0.81 to 1.18x base; top-1 agreement at the floor's level; T1 (argmax at every position with a 0.5-nat margin) fails at 4 of 2,700 positions, 3 of them where llama.cpp's CPU run also disagrees with its GPU run, 1 engine-only (`puzzle` step 144, USTRAT-3); upstream's `poly_expert_parity` exceeds its own bound on one expert (USTRAT-1); drafting is not bitwise inert above 4-token windows but passes T2 (USTRAT-2); `--check-batch 4` passes on the short set | -| `Qwen3.6-35B-A3B-UD-IQ4_XS.gguf` (MTP draft block in the file; `/Volumes/models/qwen3.6/MTP/…-IQ4_XS-MTP.gguf` locally is a 1,067-byte LFS pointer, not the file) | `unsloth/Qwen3.6-35B-A3B-MTP-GGUF` @ `5bc3e238` | 18,209,036,576 | `df27a780435b7b45c2597536112ea3cb091f8544c3d0c3318d9f4258b31f7adf` | `strata-poly` | pod, A6000 VM | works (2026-10-17: A6000 `bench/unbiased/2026-10-17-a6000-qwen36-ud-iq4xs-mtp-step6/`, 207 to 215 tok/s decode on short prompts; RTX 3090 pod `…-3090pod-qwen36-ud-iq4xs-mtp-step6/`, 205 to 245 tok/s; pi completed a multi-step coding task against it on the A6000, `…-step7-pi/`); chosen as the local-use quant | **passed** (2026-10-18, A6000 VM, as the row above: 16 sequences, 2,972 steps): T2 passes on every set and arm, 0.59 to 1.35x; T1 fails at 2 of 2,672 positions in the base arm (`d4k` 249 inside a degenerate repetition loop where llama.cpp's own two runs are 0.3 to 1.3 nats apart, `r16k` 440 a near tie), 3 with drafting on; `--check-batch 4` passes on the short set | +| `Qwen3.6-35B-A3B-UD-IQ4_XS.gguf` (MTP draft block in the file; the `…-IQ4_XS-MTP.gguf` next to it in the repository is a 1,067-byte LFS pointer, not the file) | `unsloth/Qwen3.6-35B-A3B-MTP-GGUF` @ `5bc3e238` | 18,209,036,576 | `df27a780435b7b45c2597536112ea3cb091f8544c3d0c3318d9f4258b31f7adf` | `strata-poly` | pod, A6000 VM | works (2026-10-17: A6000 `bench/unbiased/2026-10-17-a6000-qwen36-ud-iq4xs-mtp-step6/`, 207 to 215 tok/s decode on short prompts; RTX 3090 pod `…-3090pod-qwen36-ud-iq4xs-mtp-step6/`, 205 to 245 tok/s; pi completed a multi-step coding task against it on the A6000, `…-step7-pi/`); chosen as the local-use quant | **passed** (2026-10-18, A6000 VM, as the row above: 16 sequences, 2,972 steps): T2 passes on every set and arm, 0.59 to 1.35x; T1 fails at 2 of 2,672 positions in the base arm (`d4k` 249 inside a degenerate repetition loop where llama.cpp's own two runs are 0.3 to 1.3 nats apart, `r16k` 440 a near tie), 3 with drafting on; `--check-batch 4` passes on the short set | | `Qwen3.6-35B-A3B-UD-IQ4_XS.gguf` (no draft block) | `unsloth/Qwen3.6-35B-A3B-GGUF` | 17,730,509,792 | `649d7508507b84638732c4f52c24c8b15843c6dca2f3ff793ae07c14a67ebbb3` | `strata-poly` | pod | on disk, untried: without the draft block the engine runs without speculation | not run | | `Qwen3.6-35B-A3B-UD-Q3_K_M.gguf` (no draft block) | `unsloth/Qwen3.6-35B-A3B-GGUF` | 16,600,710,112 | `1b715841683f960bd9a49f008181bd910ee169b78d4cf465b6fde7f4d929ff99` | `strata-poly` | pod | on disk, untried; downloaded by mistake for the row above, kept to compare | not run | | `DeepSeek-V4-Flash-0731-UD-IQ2_XXS-00001-of-00003.gguf` + `-00002-` + `-00003-of-00003.gguf` | `unsloth/DeepSeek-V4-Flash-0731-GGUF` @ `fbbb5b93` | 5,257,664 + 49,890,588,800 + 40,964,890,464 | `c58c9d62eac7b62e9578b52613f425e48313d7212ab8d1d76caed8ea8de26595`, `65a113df6d4469f16db6882b6919e153c464c3c78c833f5e1b41a33803cdbd52`, `a69102ddfaf4a84426e11fdb66716654f4260dc3a1de3ade9fd50e006b8691d3` | `strata-poly` | 2x B200 pod (one card, 91 GB of VRAM used at a 32K context) | works (2026-10-19, first start through the fork, `tools/pod/bringup.sh 100 big` files; docs/DEEPSEEK.md's run config as engine args, `--conversation-cache-mib 8192`): ready 32 s after start; 78 tok/s decode on short prompts, 94 tok/s prompt reading on a 22-token prompt, reasoning split into `reasoning_content` with thinking on; with `chat_template_kwargs.thinking=false` the content begins with a stray `` (to look at); PLAN.md step 13 (2026-10-19, `bench/unbiased/2026-10-19-step13-acceptance/`): pi completes all four work items and Minesweeper at temperature 1.0 once tool-call arguments are accepted in any order (USTRAT-7); API checks pass, 72 tok/s decode, 1,954 tok/s prompt reading on one card | step 12 on the 2x RTX PRO 6000 pod (2026-10-19, `bench/unbiased/correctness/` section 8, reference llama.cpp 3cf03257 GPU, floor its CPU run): T2 pass on every set, base/draft 0.69 to 1.00x the floor, prompt chunks of 512 0.89 to 1.06x; T1 3 flips at margin positions where both reference runs agree (USTRAT-10); draft arm bitwise the base arm on 15 of 16 sequences (d4k from step 112, USTRAT-2); llama.cpp master's own CPU run differs from the pinned reference as much as the engine does (USTRAT-11) | | `GLM-5.3-Flash-GSQ-RCO-3.0bit-q4kattn.gguf` (no draft block in the file, checked in its header 2026-10-19: the block is cut from Unsloth's UD-IQ2_XXS files with `tools/glm_draft_fetch.py`, 2,787,998,016 bytes, SHA-256 `91a04445…6e3218`, and given to the engine as `--draft-model`; the pod runs of 2026-10-19 ran without it) | `neuralll/GLM-5.3-Flash-GSQ-RCO-3.0bit-Q4Kattn-GGUF` @ `7feedfeb` | 113,585,695,168 | `5f03b74ffe7513479795ca60a0fd8c40cbb3101769672b2c91b3df01138d9f6d` | `strata-poly` | 2x B200 pod (one card, 113 GB of VRAM used at a 32K context) | works after a fix (2026-10-19): the front end's vocabulary load refused the file's architecture name `glm5-next`, which llama.cpp does not know (USTRAT-6); the load is retried with the name overridden (vocabulary only), after which the server starts, the template renders (`[gMASK]<|system|>Reasoning Effort: …`) and answers; 74 tok/s decode on a short prompt (5 of 11 drafts accepted), reasoning split with thinking on; PLAN.md step 13: pi completes all four work items and Minesweeper at temperature 1.0 at `reasoning_effort` low (the template treats anything but low/high as max, and at max it thinks to the token cap) once arguments are accepted in any order; API checks pass, 74 tok/s decode, 1,341 tok/s prompt reading on one card | step 12 on the 2x RTX PRO 6000 pod (2026-10-19, `bench/unbiased/correctness/` section 8, reference llama.cpp master 99db719b because the pinned tree does not know `glm5-next`): T2 pass on every set, 0.89 to 1.13x the floor; T1 5 flips where both reference runs agree plus 2 at reference-spread positions (USTRAT-10); the draft arm is not bitwise the base arm on any sequence because its 0.4 GiB moves 52 experts to the CPU (USTRAT-9) | -| `GLM-5.3-Flash-REAP50-Q3_K_M.gguf` (draft block in the file; 144 of 288 experts a layer kept by REAP pruning, 46 layers) | `patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF` @ `f0535a9c` | 78,776,759,712 | `5a865918aea87a362ff8ae419581a0447929bfd68534a44d1125b394c272762d` | `strata-poly` | RTX A6000 VM (48 GB VRAM, 52 GB RAM, 12 vCPU Ryzen 1700, file on NVMe), 2026-10-20 | serves at a 64K context with 3,367 of 6,192 experts in VRAM (37.4 GiB), 40 s load from NVMe (331 s from the HDD pool); warm decode 15 to 23 tok/s on 220-token answers with about 1.1 GB of expert reads per answer from the NVMe, 2,846-token prompt read at 234 tok/s; the file on the HDD pool gave 7 to 9 tok/s (page-cache thrash, see notes). **Not usable as an agent as served (2026-10-20):** in pi (1,771-token agent prompt, tools, reasoning low, temperature 0.6 / top_k 20 / top_p 0.95) the first answer degenerated into repetition: `5.5.5.5…`, fragments of its own context ("iTerm2 window creation failed", "AGENTS.md says", "item 9 should be item 1") looped for 1,373 tokens until cancelled, with 705 of 764 guesses accepted. Short single-turn prompts (54 tokens, 220-token coding answers) were coherent. Not separated yet between the pruned model and the engine's lookup guessing (`--no-draft --lookup 0` replay of the same request is the first test; USTRAT-13). Serve: `tools/vm/serve-glm-a6000.sh reap50` | -| `mmproj-F16.gguf` (Qwen3.6 vision projector, `qwen3vl_merger`, projection width 2048; on the VM at `/mnt/ds4/unbiased-strata/qwen36/`, on the pod at `/opt/us2-models/qwen36-mtp/`) | `unsloth/Qwen3.6-35B-A3B-MTP-GGUF` | 899,283,584 | `71f3cbc1f7cc0f30d09d41cfa924c0060827ebc33bf15ace7e86661e856f0160` | front end (`--mmproj`; the encoder runs in `unbiased-strata`, the engine takes the rows over `GENI`) | A6000 VM, pod | works (2026-10-18, A6000 VM with UD-IQ4_XS: `bench/unbiased/2026-10-18-a6000-qwen36-iq4xs-images-step8/`; six facts read off a 1920x1080 screenshot at the 300-row default, 15 s to encode on the VM's Ryzen 7 1700; CPU encoder only, see README "Known limits") | not in scope (the encoder is llama.cpp's own code in the front end) | +| `GLM-5.3-Flash-REAP50-Q3_K_M.gguf` (draft block in the file; 144 of 288 experts a layer kept by REAP pruning, 46 layers) | `patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF` @ `f0535a9c` | 78,776,759,712 | `5a865918aea87a362ff8ae419581a0447929bfd68534a44d1125b394c272762d` | `strata-poly` | RTX A6000 VM (48 GB VRAM, 52 GB RAM, 12 vCPU Ryzen 1700, file on NVMe), 2026-10-20 | serves at a 64K context with 3,367 of 6,192 experts in VRAM (37.4 GiB), 40 s load from NVMe (331 s from the HDD pool); warm decode 15 to 23 tok/s on 220-token answers with about 1.1 GB of expert reads per answer from the NVMe, 2,846-token prompt read at 234 tok/s; the file on the HDD pool gave 7 to 9 tok/s (page-cache thrash, see notes). **Not usable as an agent as served (2026-10-20):** in pi (1,771-token agent prompt, tools, reasoning low, temperature 0.6 / top_k 20 / top_p 0.95) the first answer degenerated into repetition: `5.5.5.5…`, fragments of its own context ("iTerm2 window creation failed", "AGENTS.md says", "item 9 should be item 1") looped for 1,373 tokens until cancelled, with 705 of 764 guesses accepted. Short single-turn prompts (54 tokens, 220-token coding answers) were coherent. Not separated yet between the pruned model and the engine's lookup guessing (`--no-draft --lookup 0` replay of the same request is the first test; USTRAT-13). Serve: `unbiased-strata --engine strata-poly -m -- --model --max-context 65536 --expert-profile ` | +| `mmproj-F16.gguf` (Qwen3.6 vision projector, `qwen3vl_merger`, projection width 2048) | `unsloth/Qwen3.6-35B-A3B-MTP-GGUF` | 899,283,584 | `71f3cbc1f7cc0f30d09d41cfa924c0060827ebc33bf15ace7e86661e856f0160` | front end (`--mmproj`; the encoder runs in `unbiased-strata`, the engine takes the rows over `GENI`) | A6000 VM, pod | works (2026-10-18, A6000 VM with UD-IQ4_XS: `bench/unbiased/2026-10-18-a6000-qwen36-iq4xs-images-step8/`; six facts read off a 1920x1080 screenshot at the 300-row default, 15 s to encode on the VM's Ryzen 7 1700; CPU encoder only, see README "Known limits") | not in scope (the encoder is llama.cpp's own code in the front end) | Rules: a file is added here when it is first downloaded for this fork, with its hash from the Hugging Face LFS object id or from `sha256sum` on the box; its status changes only with a measured result (a row in `README.md` "Measured" with its run directory in history). Models diff --git a/tools/vm/serve-glm-a6000.sh b/tools/vm/serve-glm-a6000.sh deleted file mode 100755 index 9778c86..0000000 --- a/tools/vm/serve-glm-a6000.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# GLM 5.3 Flash on the A6000 VM through the UnbiasedStrata 2 fork (fresh tree ~/us2-fresh/UnbiasedStrata). -# serve-glm-a6000.sh reap50 REAP50-Q3_K_M (patrickbdevaney), 79 GB: experts fit VRAM + RAM on this box -# serve-glm-a6000.sh 3.0bit GSQ-RCO 3.0bit (neuralll), 114 GB: experts beyond VRAM + page cache read from disk -# Engine flags as docs/GLM.md's installer example (--max-context, --expert-profile seeded from the fork's data/). -# reasoning_effort low as the server default: the template treats anything but low/high as max (README, Known limits). -case "${1:-reap50}" in - # reap50: NVMe copy removed 2026-10-20 to make room for 3.0bit; GLM_REAP50=/mnt/ds4/glm/ after copying it back - reap50) DRAFT=""; M=${GLM_REAP50:-/mnt/models/glm/GLM-5.3-Flash-REAP50-Q3_K_M.gguf}; SEED=expert-profile-glm-reap50.txt; ALIAS=glm-5.3-flash-reap50-q3_k_m-a6000;; - 3.0bit) M=/mnt/ds4/glm/GLM-5.3-Flash-GSQ-RCO-3.0bit-q4kattn.gguf; SEED=expert-profile-glm.txt; ALIAS=glm-5.3-flash-3.0bit-a6000 - DRAFT="--draft-model /mnt/ds4/glm/glm-5.3-flash-draft-unsloth-621d456e.gguf";; # the file has no draft block: tools/glm_draft_fetch.py block - *) echo "reap50|3.0bit"; exit 2;; -esac -B=~/us2-fresh/UnbiasedStrata/build/bin -P=~/us2-glm/${1:-reap50}.profile -mkdir -p ~/us2-glm -[ -s "$P" ] || cp ~/us2-fresh/UnbiasedStrata/data/$SEED "$P" -[ -f "$M" ] || { echo "missing $M"; exit 1; } -export CUDA_MODULE_LOADING=EAGER -ulimit -l unlimited 2>/dev/null -echo "$(date -u +%FT%TZ) start ${1:-reap50} ctx ${GLM_CTX:-65536} port 18093" >> ~/us2-glm/starts.log -exec $B/unbiased-strata --engine $B/strata-poly -m "$M" --host 127.0.0.1 --port 18093 --alias $ALIAS \ - --sse-ping-interval 10 --chat-template-kwargs '{"reasoning_effort":"low"}' \ - -- --model "$M" --max-context ${GLM_CTX:-65536} --expert-profile "$P" $DRAFT diff --git a/tools/vm/serve-qfn-a6000.sh b/tools/vm/serve-qfn-a6000.sh deleted file mode 100755 index e6bbe7d..0000000 --- a/tools/vm/serve-qfn-a6000.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS on the A6000 VM (VM 220) through the UnbiasedStrata 2 fork, fresh tree build. -# Engine flags as the step-6 record on this card (bench/unbiased/… a6000 flash-next step6): upstream's 2026-10-17 -# config for the model plus the 48 GB choices (--resident-experts, --ple-io mmap, --kv int8, --kv-resident 32768). -# Pictures: the front end takes --mmproj (the model's BF16 projector, encoded on the CPU) and the engine --vision. -# The front end comes from the CUDA-free build directory (make frontend), so a front-end fix needs no engine rebuild. -D=/mnt/ds4/unbiased-strata -T=~/us2-fresh/UnbiasedStrata -B=$T/build/bin -F=$T/build-frontend/bin/unbiased-strata; [ -x "$F" ] || F=$B/unbiased-strata -S1=$D/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf -S2=$D/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf -MMPROJ=$D/mmproj-Qwen3.8-Flash-Next-BF16.gguf -for f in $S1 $S2 $D/pack-iq3-xxs/dense.bin $D/mtp/experts.bin $MMPROJ; do [ -f "$f" ] || { echo "missing $f"; exit 1; }; done -export CUDA_MODULE_LOADING=EAGER -mkdir -p ~/us2-qfn; echo "$(date -u +%FT%TZ) start qfn ctx ${QFN_CTX:-65536} port 18090 frontend $F" >> ~/us2-qfn/starts.log -exec $F --engine $B/strata -m $S1 --host 127.0.0.1 --port 18090 --alias qwen3.8-flash-next-iq3_xxs-a6000 --sse-ping-interval 10 \ - --mmproj $MMPROJ --threads ${QFN_THREADS:-6} \ - -- --vision --pack $D/pack-iq3-xxs --native $S1 --ple-gguf $S2 --expert-profile $D/pack-iq3-xxs/expert-profile.bin \ - --resident-experts --prefill auto --spec 4 --spec-min-p 0.5 --mtp $D/mtp \ - --max-context ${QFN_CTX:-65536} --kv int8 --ple-io mmap --kv-resident 32768