code wiki / (root) / nx_coder_gen_nf.nx

nx_coder_gen_nf.nx

buildroot/runtime/nx_coder_gen_nf.nx

3201 B112 linesdepth 10pulls 21 transitivereach 0 importersview sourcekind tooltopic coder
docsdependenciesstructsconstsfunctions

about

nx_coder_gen_nf.nx -- L3b runner: NO-FLOAT tower greedy generation on the CODER weights. nsv_init(coder path) + nsv_generate (mode 0 = i32 lossless, temp 0 = greedy) on two fixed prompts; writes NEUTRAL lines "GEN p<k> tl=<n> text=[<printable>]" to /tmp/coder_gen_nf.txt (identical format to the f32 runner -> the fidelity gate whole-file byte-compares). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_nofloat_serve_core.nx nx_coder_gen_nf.nx

imports: nx_nofloat_serve_core.nx

imported by: nobody (leaf or entry point)

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

main nsv_init sys_now_ms sys_mmap sys_clock_gettime_mono nsv_log sys_write nf_pool nx_pool_new nx_hw_worker_count nx_hw_cpu_count sys_mmap ↻ sys_munmap sys_mmap ↻ nx_chan_new sys_mmap ↻ _nx_chan_cell sys_thread_create nx_thread_spawn sys_mmap ↻ nx_thread_spawn_fn sys_mmap ↻ sys_mmap ↻ nsv_load_meta sys_mmap ↻ nsv_log ↻ sys_read_file sys_openat_rd sys_lseek 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 ↻

structs

none

consts

7const K_MAGIC_8192: i64 = 8192
8const K_MAGIC_4000: i64 = 4000

functions

10func cg_wb(fd: i64, p: *u8, n: i64) -> i64
22func cg_ws(fd: i64, s: *u8) -> i64
called by 3: cg_wdeccg_promptmain calls 1: cg_wb
29func cg_wdec(fd: i64, v: i64) -> i64
called by 2: cg_promptmain calls 2: cg_wscg_wb
44func cg_wtext(fd: i64, p: *u8, n: i64) -> i64
called by 1: cg_prompt calls 1: cg_wb
61func cg_prompt(fd: i64, k: i64, prompt: *u8, plen: i64) -> i64
89func main() -> i64