code wiki / (root) / nx_gen_archprobe.nx

nx_gen_archprobe.nx

buildroot/runtime/nx_gen_archprobe.nx

2087 B53 linesdepth 8pulls 20 transitivereach 0 importersview sourcekind tooltopic gen
docsdependenciesstructsconstsfunctions

about

nx_gen_archprobe.nx -- print a DiT's architecture as READ FROM THE MODEL FILE. The hot-swap smoke test: point it at any checkpoint and see whether the engine can describe it without being told anything. If this prints a coherent architecture, the same weights can drive the sovereign DiT; if it refuses, the model needs work before it can be swapped in. Usage: nx_gen_archprobe <model_file> license_tier: ORIGINAL

dependencies 10 imports · 0 importers

nx_syscalls.nx nx_le.nx nx_f32.nx nx_f32_div.nx nx_f32_cvt.nx nx_f16.nx nx_strconv.nx nx_genver.nx nx_genweights.nx nx_genarch.nx nx_gen_archprobe.nx

imports: nx_syscalls.nxnx_le.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f16.nxnx_strconv.nxnx_genver.nxnx_genweights.nxnx_genarch.nx

imported by: nobody (leaf or entry point)

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

main ap_puts sys_write nx_gw_open sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_map_file sys_openat_rd sys_lseek sys_close stl_header_len stl_u64le stl_data_start stl_u64le ↻ 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_genver_emit sys_mmap ↻ nx_strconv_format_i64 sys_write ↻

structs

none

consts

none

functions

21func ap_puts(s: *u8) -> i64
called by 1: main calls 1: sys_write
27func main(argc: i64, argv: *i64) -> i64