code wiki / (root) / nx_zimage_adaln_verify.nx

nx_zimage_adaln_verify.nx

buildroot/runtime/nx_zimage_adaln_verify.nx

3849 B98 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind orphan librarytopic zimage
docsdependenciesstructsconstsfunctions

about

nx_zimage_adaln_verify.nx -- SOVEREIGN Z-Image block piece #1: adaLN modulation, verified vs the oracle. z_image.hpp JointTransformerBlock: m = adaLN_modulation.0(t_emb) [Linear 256->15360]; chunk 4 -> {scale_msa, gate_msa, scale_mlp, gate_mlp}. Reads the oracle's dumped ada_w (15360x256 f32), t_emb (256), and golden sm/gm/sl/gl; computes the linear sovereignly (f32); verifies all 15360 outputs to tol. Reads reference dumps (oracle-only); the ORGAN is pure Nishi (nx_f32_*, raw syscalls, static ELF). license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_le.nx nx_f32.nx nx_f32_div.nx nx_f32_cvt.nx nx_strconv.nx nx_zimage_adaln_verify.nx

imports: nx_syscalls.nxnx_le.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_strconv.nx

imported by: nobody (leaf or entry point)

structs

none

consts

14const K_MAGIC_15360: i64 = 15360
15const K_MAGIC_3840: i64 = 3840
16const K_MAGIC_7680: i64 = 7680
17const K_MAGIC_11520: i64 = 11520

functions

20func zav_load(name: *u8, nl: i64, n_floats: i64) -> *u8
47func main() -> i64