nx_gen_ditchain.nx
buildroot/runtime/nx_gen_ditchain.nx
about
nx_gen_ditchain.nx -- chain N sovereign DiT blocks, weights read straight from the GGUF.
This is the sovereign DiT forward stack: given the layer-0 input, the timestep embedding and
the rope table, it runs N transformer blocks back to back with NO oracle tensor of any kind in
the loop -- every weight comes from the model file, every adaLN vector is computed, every
activation is the previous block's own output.
Usage: nx_gen_ditchain <model_id> <gguf_path> <n_layers> [n_workers] [reference_name]
The reference defaults to `layers.<n_layers>.blk_in`, i.e. the oracle's input to the block
AFTER the ones we ran -- so a 2-layer run is graded against layers.2.blk_in.
WHAT THIS ANSWERS THAT nx_gen_blockrun DOES NOT
blockrun proves ONE assembled block is correct. Chaining asks whether the error stays bounded
as blocks compose: 36 layers is 36x the opportunity for a small bias to accumulate into a
visibly different image. Per-op fidelity says nothing about that, and neither does one block.
⚠The pass band defaults to 1e-1 because the reference is the ORACLE, which carries its own
activation-quantization error at every matmul of every layer it ran. Grading a MORE accurate
implementation tightly against it would fail correct work. To ask "did OUR chain drift", grade
against an exact reference instead.
license_tier: ORIGINAL
dependencies 13 imports · 0 importers
diagram shows first 10 each side; +3 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_le.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f16.nxnx_f32_exp.nxnx_f32_activations.nxnx_strconv.nxnx_genfix.nxnx_genver.nxnx_genweights.nxnx_genblock.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 38 | func dc_puts(s: *u8) -> i64 { |
| 44 | func main(argc: i64, argv: *i64) -> i64 { |