code wiki / (root) / nx_zimage_real_op.nx

nx_zimage_real_op.nx

buildroot/runtime/nx_zimage_real_op.nx

3906 B95 linesdepth 8pulls 20 transitivereach 0 importersview sourcekind tooltopic zimage
docsdependenciesstructsconstsfunctions

about

nx_zimage_real_op.nx -- run a REAL Z-Image weight vector through a REAL sovereign op, end-to-end. sd-server -> Nishi migration: closes the last conceptual link before the full-scale assembly -- proves ACTUAL Z-Image weights flow through our GATED f32 organs and produce a CORRECT result. Dequantizes a full embedding ROW (2560 real Q6_K values = the complete embedding of token 0) with our `nx_q6_k_to_f32`, then RMS-normalizes it with our gated `nx_f32_rmsnorm`, and verifies the output is finite with mean(out^2) ~ 1 (the defining RMSNorm invariant). Real weights -> real op -> correct output, all sovereign, no third-party. license_tier: ORIGINAL

dependencies 15 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_le.nx nx_strconv.nx nx_tensor.nx nx_gguf.nx nx_gguf_load.nx nx_gguf_meta.nx nx_placement.nx nx_gguf_load_lazy.nx nx_zimage_real_op.nx

diagram shows first 10 each side; +5 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_strconv.nxnx_tensor.nxnx_gguf.nxnx_gguf_load.nxnx_gguf_meta.nxnx_placement.nxnx_gguf_load_lazy.nxnx_q6_k_to_f32.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f32_rmsnorm.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_openat_rd sys_mmap sys_read sys_close nx_gguf_parse nx_le_read_u32 nx_le_read_u64 nx_le_read_u32 ↻ _gguf_skip_value nx_le_read_u64 ↻ nx_le_read_u32 ↻ _gguf_skip_value ↻ sys_mmap ↻ nx_gguf_find_tensor nx_gguf_tensor_at nx_gguf_name_equals nx_gguf_tensor_at ↻ nx_q6_k_to_f32 _nx_q6_k_block_to_f32 nx_le_read_u16 nx_f16_to_f32 nx_le_read_u8 _q6k_emit nx_i32_to_f32 nx_f32_div nx_f32_classify nx_f32_exp_field nx_f32_mant_field nx_f32_sign nx_f32_mant_field ↻ nx_f32_exp_field ↻ nx_f32_rmsnorm nx_i32_to_f32 ↻ nx_f32_sqrt nx_f32_classify ↻ nx_f32_sign ↻ nx_f32_exp_field ↻ nx_f32_mant_field ↻ _f32_isqrt

structs

none

consts

none

functions

25func main() -> i64