nx_llm_run_v2_test.nx
buildroot/runtime/nx_llm_run_v2_test.nx
about
nx_llm_run_v2_test.nx -- end-to-end smoke for nx_llm_run_v2.nx.
Builds the FULL Llama-shape GGUF (12 tensors) for n_layers=1 with
all-zero F32 weights, builds a tiny BPE vocab, and runs
nx_llm_generate_one_v2. With all-zero weights the forward yields
uniform logits and the sampler returns a token in [0, vocab_size).
This is the integration proof: every loader + composer brick
shipped this session walks end-to-end from text prompt to emitted
token ID via pure NishiLang.
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_tensor.nxnx_bpe.nxnx_model_spec.nxnx_prng.nxnx_gguf.nxnx_gguf_load.nxnx_llm_run_v2.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 _write_ti(buf: *u8, off: i64, |
| 40 | func _mk_blk_name(suffix: *u8, suffix_len: nx_int, out: *u8) -> nx_int called by 1: main |
| 52 | func main() -> i64 |