code wiki / (root) / nx_coder_gen_f32.nx

nx_coder_gen_f32.nx

buildroot/runtime/nx_coder_gen_f32.nx

5257 B144 linesdepth 14pulls 63 transitivereach 0 importersview sourcekind tooltopic coder
docsdependenciesstructsconstsfunctions

about

nx_coder_gen_f32.nx -- L3b runner: F32 REFERENCE tower greedy generation on the CODER weights. Mirrors nx_f32_llm_live_gen_test's proven flow (dims -> weights v4 -> BPE -> greedy run_v3) on /home/elderwesto/nx_stage/nx_coder_model.gguf, two fixed prompts, 8 tokens each; writes the SAME neutral line format as the no-float runner to /tmp/coder_gen_f32.txt for byte-compare. license_tier: ORIGINAL expect_exit: 0

dependencies 21 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_bpe.nx nx_gguf.nx nx_gguf_load.nx nx_gguf_meta.nx nx_f32.nx nx_f32_kv_cache.nx nx_f32_lazy_weight.nx nx_f32_llama_block.nx nx_coder_gen_f32.nx

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

imports: nx_syscalls.nxnx_tier.nxnx_bpe.nxnx_gguf.nxnx_gguf_load.nxnx_gguf_meta.nxnx_f32.nxnx_f32_kv_cache.nxnx_f32_lazy_weight.nxnx_f32_llama_block.nxnx_f32_llama_block_v4.nxnx_f32_llama_stack_v4.nxnx_f32_llama_layer_lazy_load.nxnx_f32_llm.nxnx_f32_llm_v4.nxnx_f32_llm_read_dims.nxnx_f32_bpe_load.nxnx_f32_llm_special_tokens.nxnx_f32_sampler.nxnx_f32_llm_run_v2.nxnx_f32_llm_run_v3.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit 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_f32_llama_model_alloc sys_mmap ↻ nx_f32_llm_read_dims_from_ sys_mmap ↻ nx_gguf_meta_find nx_le_read_u64 ↻ nx_le_read_u32 ↻ _gmeta_bytes_equal nx_gguf_skip_value _gguf_skip_value ↻ nx_gguf_meta_read_string_l nx_le_read_u64 ↻ nx_gguf_meta_read_string_p _fld_read_arch_u32 sys_mmap ↻ _fld_concat_key nx_gguf_meta_find ↻ nx_gguf_meta_read_u32 nx_le_read_u32 ↻ _fld_read_vocab_size_from_ sys_mmap ↻ nx_gguf_find_tensor

structs

none

consts

27const K_MAGIC_8192: i64 = 8192
28const K_MAGIC_4000: i64 = 4000
29const K_MAGIC_67108864: i64 = 67108864
30const K_MAGIC_262144: i64 = 262144
31const K_MAGIC_524288: i64 = 524288

functions

33func cf_wb(fd: i64, p: *u8, n: i64) -> i64
called by 3: cf_wscf_wdeccf_wtext calls 1: sys_write
45func cf_ws(fd: i64, s: *u8) -> i64
called by 2: cf_wdecmain calls 1: cf_wb
52func cf_wdec(fd: i64, v: i64) -> i64
called by 1: main calls 3: sys_mmapcf_wscf_wb
66func cf_wtext(fd: i64, p: *u8, n: i64) -> i64
called by 1: main calls 2: sys_mmapcf_wb
83func main() -> i64