Repository navigation
Conversation
|
I trial-merged zig build test-drama-cfg-mix-host test-drama-cfg-host test-drama-host \
test-drama-owner test-drama-prefill-host check-drama-cuda-host \
-Dcpu=apple_m1 -j5 --summary all
python3 -m unittest discover -s tools/zig -p test_drama_guidance_check.py -vFor the overlap with #4144, I kept both registrations and the router control under one contract owner in the scratch merge. The combined tree passed 102 host tests and cross-compiled Igor Lessio - AIFLOW LABS |
|
@plotarmordev, the kernel half of the device check is done on this head ( The end-to-end half (
|
|
@ashhart Thanks. I don't have a voice catalog to point you to: I made the reference voice from Drama 3 itself, so the check needs only the FP8 checkpoint. From the job script ( text="The lighthouse keeper climbed the winding stairs and lit the lamp before the storm."
drama3-generate --model "$fp8" --codec "$fp8/codec.pth" --text "$text" --wav synthetic.wav
drama3-voice --codec "$fp8/codec.pth" --ref-audio synthetic.wav --ref-text "$text" \
--source-kind synthetic --source-note "Drama 3's built-in voice, generated by drama3-generate." \
--out voices/synthetic.json --generate drama3-generate
cd tools/zig && python3 drama_guidance_check.py --bin tensorfold-native --checkpoint "$fp8" \
--voices voices --voice synthetic --out guidanceWhat I have from TOP's GB10 (sm_121, nvcc 13.0) is from the tree that combines this PR with #4144, not from this head alone:
I don't have the PCM hashes. The door keeps only the end of the log, so |
…ion.patch's resolution
|
I merged main (with #4144) into this branch, no rebase: c67d82b. The four conflicts resolve the way @AIFlowML described: |
|
Thanks for preserving the compact-router registrations. This still needs changes before it can land. Please add a deliberately broken The latest push still does not include the requested current-head PCM hashes, pass/problem counts and guided RTF. Finally, update the Metal-only wording in
|
…ion.patch's resolution
|
Pushed 38c5855 (normal merge of main at ecc80b9, then one commit; I don't rebase or force-push this branch, so main is merged in rather than rebased onto). Main merged cleanly: no launcher or media-registry conflicts, and
On macOS arm64, Zig 0.17.0, at this head: Not done yet: I couldn't get a GB10 window for this head, so the CUDA SUMMARY with the control red, the refreshed guidance receipts (PCM hashes, pass/problem counts, guided RTF on FP8 and compact NVFP4 with pinned checkpoint revisions), the CFG-disabled main/head equality and timing, and the Metal PCM comparison are still to come. I'll post them here and update the description's base/head when they are. |
|
Thanks @plotarmordev. The gamma - 1 planted control, the solo-lane assertions and their unit test, the Metal and CUDA docs, and the public recipe and provenance cleanup answer our code asks. What's left is integration and device evidence:
|
|
I merged current main again (821d2ad, normal merge; I don't rebase or force-push this branch). Main merged cleanly, and the compact-router registrations and records are untouched. I then ran this head on a DGX Spark (GB10, sm_121, CUDA 13.0 at Contract ( Guidance, FP8 (
The FP8 Guided speed is whole-reply wall time over serial requests, with each server's first request left out as warm-up. It includes HTTP and the server, so it is not the same measure as the 2.359 in the description:
PCM sha256Still open:
I'll post those here as they come. |
821d2ad to
2578cd9
Compare
|
@plotarmordev, as promised we rebased this onto today's main and pushed it to your branch (head On that head, the device evidence from our last comment is what's left: the GB10
|
|
I ran your rebase ( Guidance (
Guided RTF is audio seconds over whole-reply wall time, serial, with each server's first request left out:
CFG off, main against head, FP8:
The planted control is the second Here's what I haven't posted yet:
Guided PCM sha256, NVFP4 (separate = paired) |
|
I've updated the description for head 1. GB10 job
2. Pinned checkpoints, read from the hub API, never
The compact NVFP4 PCM sha256s from the job's log (separate and paired gave the same bytes for each):
3. Metal on this Mac at main
For each text, the head with CFG at gamma 1 ( |
|
The red pytest check isn't from this PR: main's 41177ae made |
|
I applied python -m pytest -q -p no:cacheprovider --collect-only
python -m pytest -q -p no:cacheprovider tools/zig/test_drama_guidance_check.py tools/test_ci_workflow_conditions.py
zig build test-drama-cfg-host test-drama-cfg-mix-host test-drama-host \
test-gradient-serving check-native-cuda-host -Dcpu=apple_m1 -j4 --summary allOn M5 Max with Zig 0.17.0 the Zig run passed all 24 steps and 88 tests, including the serving pins and the Linux ARM64 CUDA build check. The full hosted pytest run and the existing GB10 receipts are separate from this local integration run. Igor Lessio - AIFLOW LABS |
f9cc095 to
ef5dc0e
Compare
|
The red |
… keeps the last row (cherry picked from commit 5a20f46)
…bone-only fork) (cherry picked from commit d190cbb)
…flags on Linux (cherry picked from commit af2febd)
…); changelog (cherry picked from commit 3f923b8)
…metic tests and contract entry; GB10 check rejects empty PCM and reference-less voices (cherry picked from commit f4cbd22)
…gamma above 1 to change PCM and cached-reference hits (cherry picked from commit 0b38180)
(cherry picked from commit 2dbe964)
(cherry picked from commit 3ff18bc)
(cherry picked from commit e38f881)
(cherry picked from commit e1d03bc)
… rows Gate 1 probes every kernel at small(k.spec, 5, 8), which clamps the mix spec's served rows = 1 up to 5; prepare refused any shape.rows != 1, so the kernel-contract run failed the kernel on 'refused a served shape'. The launch depends only on n ((n+255)/256 blocks), so the row guard is dropped and prepare sizes from shape.n, as Norm.prepare does.
…s, 0 static, unbounded)
… the guidance check, public CUDA provenance
Main's note and the PR's list comment both stay, each on one line.
…Hugging Face commit
ef5dc0e to
0a66e9c
Compare
|
Thank you @plotarmordev. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
On main,
--cfg-gammaand the other guidance flags work only on Metal: the CUDA Drama 3 backend has no guide, so guided serving can't run on a Spark. This adds the semantic CFG guide on CUDA over the shared weights (d3_cfg_mix, a fork of the backbone only), with the same guide lifecycle as Metal, and admission counts the guide's state.1587c8caee631dcc97c8fbb68f4bba353353c4c5, this head's merge-base).atc overlap --json: incomplete. Againstashhart/TensorFoldit hit the open-PR and time limits (complete: false, no PR overlaps reported); the only conflicts it found were with my own local worktrees.Checks on this head
f9cc095d5cefa32f21820e98885de8690188370e, your rebase2578cd905plus one commit that makestools/zig/drama_guidance_check.pytake and record the checkpoint's pinned Hugging Face commit (--revision REPO@COMMIT, a full 40-hex sha, never a branch such asmain).python3 tools/zig/lean_check.py: 167 problems on this head, the same as main.python3 tools/zig/test_drama_guidance_check.py: 9 passed, 0 failed.zig build test test-goldenon the Mac (macOS 27 arm64, Zig 0.17.0): at this head 933/940 steps, 1853/1884 tests passed, 27 skipped, 4 failed, plus thememcpylink guard; at main1587c8cae932/938 steps, 16525/16669 tests passed, 141 skipped, 3 failed, plus the same guard. Three failures are main's own on this Mac:stage netand both DeepSeekvision_configtests. The fourth, DeepSeek'sserve_steps, depends on timing:zig build test-dsv41-metal, which runs it, passed three reruns in a row at this head.top-fbe539d4a46bon TOP's Spark at42d72aac3b249cdeb2ed0c34a9b1844fa4713495, which is2578cd905plus the job's own wrapper and nothing else. The guidance check and the CFG-off comparison below come from its log. The job exits 2 on the wrapper's own last line (it reads$contract, which the wrapper no longer sets because the contract ran in an earlier job), after every check had finished and passed.No GPUandZig format, runs 44948680877 and 44948681035) were queued at 20:53 UTC on 21 Nov and no job has started, so there is no failure to report.f9cc095d5itself, because its one commit over2578cd905changes onlytools/zig/drama_guidance_check.pyand its test, which never reach the binary; Linux and Windows builds, which only CI runs;tools/bench_openai.pyandtools/bench_cache.py, because Drama 3 speech is measured as RTF (below), not tokens.Receipt
--cfg-gammaand--cfg-batchedalready exist on Metal; their defaults are unchanged.bottom-49eafd253777, 12 Nov 2026, my fork's main at132bd1238.tensorfold-nativebuilt with-Dgpu=spark -Dfatbins. Each checkpoint is served withserve CKPT --parallel 2 --voices DIR --default-voice VOICE --cfg-gamma 1.5 --cfg-batched; every request carries"seed": 7and"response_format": "pcm".top-fbe539d4a46b); Metal on the Mac at this head (gamma 1 against plain, and main against head with CFG off, below); Mac host tests at this head.Source:
docs/receipts/drama3-pruned-main/README.mdon my fork's main, withspark/results.jsonand the threespark/server-*.logbeside it.spark/results.json:"pass": true, no problems), whole and streamed replies equalled their repeats and their concurrent lanes, by PCM sha256, for all three checkpoints./api/models/REPO/commits/mainand/tree/COMMIT), nevermain:fishaudio/drama-3@e0a9218aa48888270f06ef1ed9ea67622c0e17d2. TOP's/assets/drama3-pilot/checkpointis that 8-shard release: itsconfig.jsonsha2564b13a31b…0b693and itscodec.pthsha25674fc41c5…052bb2f(jobtop-41f63db6cf5a) match the files at this commit. The weights' LFS sha256s are unchanged throughb2b5ee998034b2975720906c815e7fb0e9f007bd; the 15-shard re-upload of 29 Oct (256faf59…) is a different checkpoint.plotarmordev/drama-3-NVFP4-Pruned@f3de225065142d287ccb5be85f5fe7d4ddb9f6d0. TOP's/assets/drama3-pilot/drama-3-NVFP4-Prunedpassessha256sum -cagainst that commit'sMANIFEST.sha256(jobstop-127ed43127ff,top-41f63db6cf5a).tools/zig/drama_guidance_check.pynow takes this as--revision REPO@COMMITand writes it intoresults.json; jobtop-fbe539d4a46bran before that flag, so itsresults.jsondoes not carry it.tools/zig/drama_guidance_check.py: paired equals separate guides, gamma 1 equals plain, gamma above 1 differs, concurrent lanes equal their solo runs), GB10 jobtop-fbe539d4a46b: FP8"pass": true, "problems": []and compact NVFP4"pass": true, "problems": [], at 1 and 64 prefill rows; per prefill size and checkpoint, each guided server resumed its cached reference 12 times and each plain one twice.Compact NVFP4 PCM sha256s from job
top-fbe539d4a46b(separate and paired guides gave the same bytes for every reply)t0-g1682dfd5069a29853bd98c9a680eb2780fe87b790f6d53e655844cfa7ca745b12t0-g1.56aca9311a3e631e3a7af0e64078403eacaa0e83b4e1dc594c11be9a088079dbet0-g31834678634cf4a2eb7a19a0d1ae6fa89b9c824eb9f9736f148126b46c9bbacdbt1-g19686275299c289f9063230cc30cd3698b481e9fc5daded75d9bcc940c81c2fcat1-g1.56204fb1a7774c0c67fb73dd671b52bca8d3e65d96298adcbab94c7244d59232ft1-g3a31790e4e838778b2aad75db47e155a5217ea871ce86d1c03759449c5fd33c36t2-g15f37fff24534feb54ae369ab0a8b28f5374fe06db7a26b2f8e6d7a79fea7244bt2-g1.50a71244ac8cf6cef126e061f4da85ee686e4b469e9530efae3506ec37709f8d4t2-g35c8a683d9f7484eb4cbbb10af00a34b5f2f7891389671296874eb638e36d0ec3solo-lane-af2f18b6bd3b5ebc92b41cf00c84e106387520e4920f2af1531053f92f3515879solo-lane-bfe6b11f7b820f7fa198418415481696df48cef2ad4c0adae61dea1aea6409a37lane-af2f18b6bd3b5ebc92b41cf00c84e106387520e4920f2af1531053f92f3515879lane-bfe6b11f7b820f7fa198418415481696df48cef2ad4c0adae61dea1aea6409a37t0-g1d83b249fd534dcd30e8f327400bb4be6e51165414a9508d317ae89e9ebf92784t0-g1.5819e402ded8319010cecf1698675c20bda043fbc3d35ff1f6c3717dc885285cbt0-g322ac6744c59dd7ed2daf953eda141e874304bf48045c229e026054f08e806853t1-g1faf8220ba693f76ba47b930f54fa28568abe0cd92ae21800fc5f4b1badda2f42t1-g1.5f1a07b0f33f7cf17dd56fe925b8296adb9d62b2b061f27da6203596eac9d3309t1-g3fd70e071b76597a17dd8a84305dcce8c2c8f58b84bf7057fe0771457b343be2ft2-g1b057aced7e689d7e1635bad91ec0083c60b8b401bb85ce63b7733d13797e51cbt2-g1.50fbbe5b9a0cfb7bfd91313952d041ddfeadbc865dc48ab3ac707c3b8f9ea5a5et2-g3b667c3d1f9c5ab8e0accae8e605f23943f48abed12a364c8029b210d9a59077dsolo-lane-a1ddfef4459ea8bc36b0548531fb71a5960c4a4dee13e77c276f2e7a9d5ecbbc3solo-lane-bf90b6011d26017ecc20f38db72c45f1eecb1d91daed8c3bde43c8e287f3502d9lane-a1ddfef4459ea8bc36b0548531fb71a5960c4a4dee13e77c276f2e7a9d5ecbbc3lane-bf90b6011d26017ecc20f38db72c45f1eecb1d91daed8c3bde43c8e287f3502d91587c8caee631dcc97c8fbb68f4bba353353c4c5against head on the GB10 (same job, FP8):drama3-generate --seed 7frames are byte-identical (sha256a8177713a8d4e8affdea82824d7dfe6653a8a7a974e3e5b5333c3345736848a5, 102 frames, RTF 1.60 against 1.61), and the served PCM is equal for every reply:t0:ef86f3bc0c71dcf8d7d13e3753e3f3b47b41a2bec7d79f0897f4ca879f6a414fon botht1:1d27394b79b580c7b93ce531174c6bb33547b2d6aa55ad3b61cee8e4a83e893don botht2:cff4742d5d92cea4d8b8b7aab5595cf7a6491ae539d6e9033d13418a0711d737on bothlane-a:05b41e70f22042a5373ae09d944163fd902c4576fa29c3260c2d14e886c4dcc8on bothlane-b:67cab08faa48461a09bcc3348fc8871f1f0b6189985a29426ea2f6781641920eon bothzig build native -Dcpu=apple_m1 -Doptimize=ReleaseFastat main1587c8caeand at this head, compact NVFP4 checkpoint (plotarmordev/drama-3-NVFP4-Pruned@f3de225065142d287ccb5be85f5fe7d4ddb9f6d0: the Mac's copy passesshasum -a 256 -cagainst that commit'sMANIFEST.sha256for all 8 shards, the index,config.json,codec.pthand the tokenizer files), a synthetic reference voice of 119 code rows, two texts, under the Mac's model lock:--cfg-gamma 1.5 --cfg-allow-request-gamma --cfg-force-guided, every requestX-Cfg-Gamma: 1; its log readssemantic CFG enabledand it resumed the cached reference); main's plain server.t0:0aff27edc911ffcef7602f4bc90cb476d20f7b2c96af22cb70d0f6da0a281951(389120 bytes) from all three, byte-equal.t1:5e8a906ab0677481db0b6c02a4d72b1efae66b4568f21fc403cb1bc014debdad(389120 bytes) from all three, byte-equal.Kernel contract
d3_cfg_mix(new; it replaces no kernel), registered fromcontract_drama3's set.d3_cfg_mixlaunched with gamma - 1 (the other CFG convention, cond + gamma(cond - uncond)), which must go red at gate 3 (zig/tests/cuda/contract_drama3.zig). The non-finite inputs are a gate, not the control.SUMMARYline and exit status: GB10 at821d2ad62,sh docs/recipes/drama3-cuda/cfg-mix-gb10.sh, exit 0:CONTROL cuda drama3 d3_cfg_mix control: launched with gamma - 1: red at shapes, as planted,(filtered) SUMMARY 1 kernels: 1 pass gates 1-4, 0 fail, 0 known findings; 1 controls: 1 red as planted, 0 missed; 0 limit problems; gates 41 ms, limits 0 ms.top-fbe539d4a46bskipped the contract, its wrapper noting it ran in jobtop-ba4d66a0b414ate5749c944(2578cd905plus a job wrapper and nothing else). That job's log is no longer kept, so I can't quote its summary; the one above is from821d2ad62, which has the same kernel.Checklist
The title and description match the head commit, including the receipt and the stack.
New tests fail before the change, pass after it, and skip cleanly without their dependency. (
d3_cfg_mix's planted gamma - 1 control goes red on the GB10; the host CFG-mix test runs the kernel body through a C shim, so it needs no GPU and has nothing to skip.)Comments and docstrings are one line. No measurements or history in the source.
No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.
Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off. (The guide advances inside its lane's round; Drama 3 has no drafter.)
Drafted output equals
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (No drafter; cached-reference replies and concurrent lanes equal their solo runs, PCM sha256 above.)No precision traded for speed. If the bits change, the description says which sums change and why. (CFG off and gamma 1 are byte-identical to main and to plain; only gamma above 1 changes the logits, by the CFG mix.)
Decode and prompt processing are no slower than main at one stream and the widest admitted; with
--drafter, no slower than without it, greedy and sampled. (CFG off: RTF 1.60 on main against 1.61 here, served wall times within 1% serial and on both concurrent lanes; guided has no main on CUDA to compare with.)How to check
98325615718e9bb45f862a05e0740c182fa0cb13ef5dc0e08a2c0e370c1387070480fab3c6b90dd7Test results:
zig build test test-goldenat2578cd905e45(older head): 1853 passed, 4 failed, 27 skippedzig build test-drama-cfg-mix-host test-drama-cfg-host test-drama-host test-drama-owner test-drama-prefill-hostatab109901f8c9(older head): 0 passed, 0 failed, 0 skippedzig build test-flashnext-scheduling-hostatab109901f8c9(older head): 59 passed, 0 failed, 0 skippedzig build compile-cuda-tests -Dtarget=x86_64-linuxata4f00a4d7256(older head): 1 passed, 0 failed, 0 skippedzig build test-goldenatb60aef3e03f4(older head): 391 passed, 0 failed, 0 skippedzig build test-drama-cfg-mix-host test-drama-cfg-host test-drama-host test-drama-owner test-drama-prefill-host --summary allatf9cc095d5cef(older head): 92 passed, 0 failed, 0 skippedcd tools/zig && python3 test_drama_guidance_check.pyatf2c1c032fd9f(older head): 7 passed, 0 failed, 0 skippedzig build test-drama-host check-drama-cuda-host test-drama-metal-quant-host test-drama-nvfp4-reference-host test-drama-prefill-host --summary allatf44964aa01d7(older head): 63 passed, 0 failed, 0 skippedzig build test-cuda-host --summary allatef5dc0e08a2c: 8830 passed, 0 failed, 50 skippedpython3 -m unittest tools/zig/drama3_limits_gate_test.pyatc67d82bb4508(older head): 8 passed, 0 failed, 0 skippedpython3 tools/zig/test_drama_guidance_check.pyatf9cc095d5cef(older head): 9 passed, 0 failed, 0 skippedzig build compile-cuda-tests -Dtarget=x86_64-linux --summary allat821d2ad62fb9(older head): 1 passed, 0 failed, 0 skippedzig build -Dfixed-cpu test-kernel-contract --summary allatf44964aa01d7(older head): 268 passed, 0 failed, 0 skippedpython3 -m unittest test_drama_guidance_check test_drama_reference_cache_checkat821d2ad62fb9(older head): 13 passed, 0 failed, 0 skippedzig build testat2578cd905e45(older head): 1854 passed, 3 failed, 27 skippedzig build test-drama-cfg-mix-hostat2578cd905e45(older head): 3 passed, 0 failed, 0 skippedpython3 -m unittest discover -s tools/zig -p 'test*guidance*.py'at2578cd905e45(older head): 8 passed, 0 failed, 0 skippedzig build test test-golden --summary allatf9cc095d5cef(older head): 1831 passed, 3 failed, 27 skippedpython -m pytest -q -p no:cacheprovideratf9cc095d5cef(older head): 703 passed, 17 failed, 110 skippedpython -m pytest -q -p no:cacheprovider tools/zig/test_drama_guidance_check.py tools/zig/ -k dramaatf9cc095d5cef(older head): 27 passed, 0 failed, 1 skippedzig build test-lane-explore-host -Dexplore-seed=1592590343 --summary allatef5dc0e08a2c: 36 passed, 0 failed, 0 skipped#4144 and #4153 together: the combined tree, checked on a GB10
I merged both branches over current main, resolving them the way @AIFlowML described in #4144 (comment). I then ran the host tests and one GB10 job on the result.
210e3b0c59e1d2910492fc6e0277a0f887f0591ea57d9c23d40693cd5f10a1fabb1b2d27e52d7661, merged first:62273c2ed28606689b4323f585e08a71e380391bb60aef3e03f466b62d93576f9632016e8ba8d35d, merged over it, giving the combined tree:972dbd4f310c60883bc9f6628125a0809c912cdac4ac3fe4f85cf234486cc78bbae88ec6c7fa2a64, which is the combined tree plus the job scriptdocs/recipes/drama3-cuda/combined-gb10.shand nothing else. It is onplotarmordev/TensorFoldbranchtrial/4144-4153-combinedand is not for merge.The resolution
Four files conflict, as Igor found:
registry_media.zig,drama3/cuda/kernels.zig,tests/cuda/contract_drama3.zigandtests/cuda/contract_tests.zig.d3_router_compactand thend3_cfg_mixkeep the same order in the kernel name table, theFenum andcuda_pending.Setowns the drama3 contract registrations. It gained the compact router and its unmaskedd3_routercontrol, registered between the norm rows and the CFG mix, and Upstream PR: Drama 3 on CUDA loads a compact NVFP4 checkpoint as stored #4144'sGroupis gone.The resolution on its own is
resolution.patch. I checked it on #4153's branch, both with #4144's merge and with #4144 squashed onto main. In each case I rangit merge main(four conflicts), applied it withgit apply resolution.patch, and got a tree identical to972dbd4f.Host tests on the combined tree (macOS arm64, Zig 0.17.0)
zig build test-drama-host check-drama-cuda-host test-drama-metal-quant-host test-drama-nvfp4-reference-host test-drama-prefill-host --summary all: 19/19 steps, 63/63 tests passed.python3 -m unittest -v tools/zig/drama3_limits_gate_test.py: 8 passed.python3 tools/zig/test_drama_guidance_check.py: 7 passed.zig build compile-cuda-tests -Dtarget=x86_64-linux --summary all: 10/10 steps succeeded.GB10 (TOP's Spark, sm_121, nvcc 13.0): job
top-aaf334ae7ce0, exit 1tf-cuda-test kernel-contract 'compact router' 'd3_cfg_mix':d3_router_compactpasses nonfinite, repeat and shapes (6 shapes exact).d3_cfg_mixpasses nonfinite (3 non-finite and 4094 finite outputs match the float64 classes), repeat and shapes (5 shapes, worst 0.433 of the bound).CONTROL cuda drama3 compact router control: d3_router, unmasked: red at shapes, as planted.d3_cfg_mix's pending record:FAIL limits live drama3 d3_cfg_mix: 256 threads launched, the driver allows 1024; 12 registers, 0 + 0 shared bytes (recorded 0, 0). The summary reads(filtered) SUMMARY 2 kernels: 2 pass gates 1-4, 0 fail, 0 known findings; 1 controls: 1 red as planted, 0 missed; 1 limit problems. This is the pending record waiting for its first nvcc receipt. The record to add is 12 registers, 0 static shared bytes, 256 threads.error: FileNotFoundfromdrama3-generate --model /assets/drama3-pilot/models/drama-3-NVFP4-Pruned. It never reached therouted experts heldline. The published checkpoint shipstokenizer.json, so the copy in the pilot folder is missing or incomplete. This is not the merge. The FP8 checkpoint loaded on the same tree:routed experts held 10240 of 10240; routed experts NVFP4 in 0 of 40 layers; compact routers in 0 of 40 layers,RESULT drama3 OK frames=116 … rtf=1.42.tools/zig/drama_guidance_check.pyon the FP8 checkpoint with a synthetic reference voice:"pass": true, "problems": [].d3_cfg_mix's limits record, rerun on the GB10
#4153 now records what that job measured for
d3_cfg_mixincuda_pending: 12 registers, 0 static shared bytes, 256 threads (sm_121, nvcc 13.0). That is commitf2c1c032fd9fb810d7ae4a782059276228789bd9, and nothing else in the kernel or its gates changed.top-6e269b37764catf2c1c032, exit 0:tf-cuda-test kernel-contract 'd3_cfg_mix'passes nonfinite, repeat and shapes as before, and the limits check now readsPASS limits live drama3 d3_cfg_mix: 256 threads launched, the driver allows 1024; 12 registers, 0 + 0 shared bytes (recorded 12, 0). Summary:(filtered) SUMMARY 1 kernels: 1 pass gates 1-4, 0 fail, 0 known findings; 0 controls: 0 red as planted, 0 missed; 0 limit problems; gates 39 ms, limits 0 ms.top-7e8a48a1639dat16272c0d5e8f05138de450db3f239d00ad662a39, exit 0. This isf2c1c032merged over Upstream PR: Drama 3 on CUDA loads a compact NVFP4 checkpoint as stored #4144 (62273c2e, froma57d9c23) withresolution.patch, asc578e8e8, plus the job script. It is ontrial/4144-4153-combinedand is not for merge.kernel-contract 'compact router' 'd3_cfg_mix'passes both kernels' gates, and the unmaskedd3_routercontrol is red at shapes, as planted. Summary:(filtered) SUMMARY 2 kernels: 2 pass gates 1-4, 0 fail, 0 known findings; 1 controls: 1 red as planted, 0 missed; 0 limit problems; gates 43 ms, limits 0 ms.The compact checkpoint, restaged on TOP
plotarmordev/drama-3-NVFP4-Prunedis in TOP's pilot folder at/assets/drama3-pilot/drama-3-NVFP4-Pruned.fetch hf toprefuses it: that command copies a Spark's Hugging Face cache to the Mac. So the job checks the Desk's put itself, withsha256sum -cagainst the publishedMANIFEST.sha256(revisionf3de2250). All 8 shards,model.safetensors.index.jsonandtokenizer.jsonreadOK.top-69fda464a7b5at1acbb3b5d1e89ed284232119104826fbd8110256, exit 1. This is16272c0dplusdocs/recipes/drama3-cuda/combined-gb10.shand nothing else. The16272c0dmerge had kept87ca3a66's tree, which dropped that script. The script now points--modelat the restaged folder, checks the sha256s and requiresrouted experts held 7369 of 10240. It is ontrial/4144-4153-combinedand is not for merge.(filtered) SUMMARY 2 kernels: 2 pass gates 1-4, 0 fail, 0 known findings; 1 controls: 1 red as planted, 0 missed; 0 limit problems; gates 45 ms, limits 0 ms.routed experts held 7369 of 10240; routed experts NVFP4 in 40 of 40 layers; compact routers in 36 of 40 layers. Generation then fails witherror: ReplayMismatch, so there is noRESULTline.--replay 1resets and regenerates greedily, andfamilies/drama3/replay.zigrequires byte-identical output. On the GB10 the compact path gave different bytes on the second pass."pass": true, "problems": [].top-127ed43127ffat922d9020df54307eef3606952eb8e33d0a9af770, exit 1. This is1acbb3b5with the job script changed and nothing else.MANIFEST.sha256against the published file's own hash (f447d4ba…), then runssha256sum -c MANIFEST.sha256underset -e, so any mismatch would have ended the job there. The job went on to build and run, so all 21 lines matched. The door keeps only the log's tail, which drops the printed OK count.--replay 1check, so each reports on its own.(filtered) SUMMARY 2 kernels: 2 pass gates 1-4, 0 fail, 0 known findings; 1 controls: 1 red as planted, 0 missed; 0 limit problems; gates 45 ms, limits 0 ms.routed experts held 7369 of 10240; routed experts NVFP4 in 40 of 40 layers; compact routers in 36 of 40 layers, thenRESULT drama3 OK frames=76 eos=true audio_s=3.53 prompt_rows=31 ref_frames=0 encode_ms=0.0 prefill_ms=849.4 first_audio_ms=965.6 total_ms=3157.0 fps=32.94 rtf=1.53 device_peak_gb=21.72.--replay 1fails again witherror: ReplayMismatch, the same as intop-69fda464a7b5."pass": true, "problems": [].Still open: #4144's compact path loads and generates on the GB10, but it does not replay byte-identically (
ReplayMismatchat--replay 1, twice). That replay is a gate in #4144's owntools/zig/drama3_compact_gb10.sh. #4144 reports that script passing atedbfbff7, before it merged main intoa57d9c23. The next GPU run should be that script ata57d9c23alone, to tell #4144's main merge from #4153's.#4144's whole GB10 check on the combined tree, with codec-chunk PCM reported instead of gated
#4144 at
8aabdc780197cf5544d9911d931d68e2f0480f9f(one-line comment fix over2519ef8fc5b7ac69544a102e77349a439b691bed) keeps every exact check intools/zig/drama3_compact_gb10.shexact: FP8 codes against the pre-feature tree, and the replay's frames, graph replay, poison/reset and PCM chunk 1 against chunk 1. The only stop it accepts is the chunk-4 PCM byte compare inreplay.zig(main's own cuBLAS-shape-dependent CUDA codec; proven on plain maine3fb56cbin jobtop-171f7969b5e0). It then decodes the compact run at codec chunks 1, 4 and 16, requires byte-identical frames, and reports PCM at chunks 4 and 16 against chunk 1 as max abs and RMS in 16-bit steps, for information only.a0c1f48a9427da04a7f2dd7cc9e32956722b1260, which is Upstream PR: Drama 3 semantic guidance (CFG) on CUDA #4153f2c1c032with Upstream PR: Drama 3 on CUDA loads a compact NVFP4 checkpoint as stored #41448aabdc780merged in usingresolution.patch's resolution. Its four resolved files are byte-identical toc578e8e8's. The pre-feature tree is main37fa51d2merged withf2c1c032(treec5d6fe9064bb7050a8f85432c7b6e799e4335d98), rebuilt in the job fromcombined-base.patchas commitd7b15e1711f2880119a7a8bc5856b3ea8106c769.top-b46176ce1b50atc3ced5af251e1754fce7ab044b24445e97f6746cexited 0, but nvcc warnings from the subsequent guidance build pushedRECEIPT.txtout of the door's 200-line log tail. PrintingRECEIPT.txtlast incombined-gb10.shresolved that.top-f47e9ab508b0atd273d1517ada405364743f6a0bd3df0c8915e3b0also exited 0, but its manifest check ransha256sum -c MANIFEST.sha256inside anechosubstitution, so a shard mismatch would not have stopped it.combined-gb10.shnow runs that check as its own command underset -e(checked locally: a tampered file stops the script with exit 1).top-41f63db6cf5aatc523dd1deb830aabd2f867344a40c6507d487b73onplotarmordev/TensorFoldbranchtrial/4144-4153-combined(not for merge;d273d1517plus that script change), exit 0:/assets/drama3-pilot/drama-3-NVFP4-Pruned:MANIFEST.sha256against its published hashf447d4ba…, then every line of it, each underset -e. Both passed: the job went on to build and run.tools/zig/drama_guidance_check.py):{"pass": true, "problems": []},CHECK guidance PASS.RECEIPT.txt(verbatim from jobtop-41f63db6cf5a):8aabdc780(macOS 27 arm64, Zig 0.17.0):python3 -m unittest -v tools/zig/drama3_limits_gate_test.py: 8 passed, 0 failed.zig build test-drama-host check-drama-cuda-host test-drama-metal-quant-host test-drama-nvfp4-reference-host test-drama-prefill-host test-golden --summary all: 24/24 steps succeeded, 54/54 tests passed; server goldens 69/69 and 324/337 (0 unexpected differences).zig build test test-golden: not green, exit 1: 925/931 steps succeeded (4 failed), 1763/1793 tests passed, 27 skipped, 3 failed. The same four steps fail at base70e78d03, and Upstream PR: Drama 3 on CUDA loads a compact NVFP4 checkpoint as stored #4144 changes no Zig file:vision.test.the release's vision_config parses to the defaultsand the same test underfamilies.deepseek_v41.metal.vision: the test expectsUnsupportedVisionfor a head count of 0,check()returnsZeroHeads. Upstream main still has it; the fork's main fixes the test inf5423d498, outside this PR.stage net: an unknown host is refused: this Mac's resolver answersno-such-host.invalidwith198.18.5.202(a proxy's fake-IP range), solistenreachesbindand returnsAddressInUse.tensorfold-nativecheck thatmemcpycomes from libSystem.Review fix: a replay stop at chunk 4 or 16, in a tested gate
#4144 at
2c09de9ddd6df2e6583f0bbebee9e659d6370e42moves the replay stop check intotools/zig/drama3_replay_gate.sh. It passes only when the log ends inerror: ReplayMismatchand the codec lines read1 1 4(the chunk 4 PCM compare failed) or1 1 4 16(chunk 4 matched, chunk 16 failed). A stop at the frames (1), at PCM chunk 1 against 1 (1 1), at the fork lane's chunk 1 PCM (1 1 4 16 1) or on any other error still fails. A fork-lane frame mismatch after chunk 16 prints the same log as a chunk 16 PCM one, becausereplay.zigprints nothing between them, so the gate cannot tell those two apart. Each PCM measurement now runs as its own command underset -e, so a missing or short PCM stops the run instead of leaving an emptyINFOline.python3 -m unittest -v tools/zig/drama3_replay_gate_test.py tools/zig/drama3_limits_gate_test.py: 14 passed (6 replay gate, 8 limits gate).534ba5271b497ebd75c2fbc806e28a8f83097424merges Upstream PR: Drama 3 on CUDA loads a compact NVFP4 checkpoint as stored #41442c09de9ddintoc523dd1de. Then4cc7f9b58603b5921e23b42846621fddea6956c5regeneratescombined-base.patchso that the pre-feature tree also drops the gate and still matches treec5d6fe9064bb7050a8f85432c7b6e799e4335d98. Both are onplotarmordev/TensorFoldbranchtrial/4144-4153-combinedand are not for merge. Jobtop-2e6793417079at534ba5271stopped at that patch, before any build.top-e2c133e77bb3at4cc7f9b58, exit 0:/assets/drama3-pilot/drama-3-NVFP4-Prunedpassed:MANIFEST.sha256: OK, and all 8 shards, the index and the tokenizer files readOK.{"pass": true, "problems": []},CHECK guidance PASS.RECEIPT.txt(verbatim):zig build test test-goldenexits 1. 925/931 steps succeeded (4 failed), and 1763/1793 tests passed, with 27 skipped and 3 failed. These are the same four steps that fail at base70e78d03:vision_configUnsupportedVisionagainstZeroHeadstests, fixed on the fork's main inf5423d498;no-such-host.invalid, fixed inafc998ed7;memcpylibSystem guard, fixed inc3d801235.