nx_llm_capcheck.nx
buildroot/runtime/nx_llm_capcheck.nx
about
nx_llm_capcheck.nx -- SOVEREIGN DEEP CAPABILITY CHECKER for the no-float Qwen2.5-0.5B (our own "Unsloth-style"
harness: measure SPEED + ACCURACY together, reproducibly, on the REAL model -- no TSV, no strawman).
For a suite of known-answer prompts it runs the full sovereign pipeline (BPE encode -> 24-layer integer forward
-> final norm -> 151936-vocab LM head -> argmax -> BPE decode) and measures, via the sys_now_ms clock, isolated:
* forward_ms -- the 24-layer integer stack (incl. on-the-fly weight dequant; no weight cache yet)
* lmhead_ms -- the one full-vocab output projection
* load_ms -- one-time model parse (amortized in real use)
and CAPABILITY: does the decoded prediction contain the expected answer? -> accuracy X/N.
HONEST: a measurement harness PASSES when it MEASURES correctly; the accuracy number is the finding, not gated --
it surfaces the known faithfulness gap (component-verified matmul/RoPE, full-stack H2H still open) so we can fix it.
No hw writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_tier.nxnx_le.nxnx_tensor.nxnx_gguf.nxnx_gguf_load.nxnx_gguf_meta.nxnx_nofloat_llm.nxnx_nofloat_tok.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 23 | func cc_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 28 | func cc_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 29 | func cc_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 32 | func cc_contains(hay: *u8, hlen: i64, ndl: *u8, nlen: i64) -> i64 called by 1: main |
| 44 | func main() -> i64 |