code wiki / (root) / nx_actor_role_llm_v2_real_test.nx

nx_actor_role_llm_v2_real_test.nx

buildroot/runtime/nx_actor_role_llm_v2_real_test.nx

11195 B262 linesdepth 11pulls 37 transitivereach 0 importersview sourcekind gate/prooftopic actor
docsdependenciesstructsconstsfunctions

about

nx_actor_role_llm_v2_real_test.nx -- REAL end-to-end smoke driving the v2 LLM actor through actual transformer forward. Where nx_actor_role_llm_v2_test.nx is wiring-only, THIS smoke builds a real 12-tensor synthetic Llama GGUF (n_layers=1, hidden=2, head=2, vocab=4, ffn=4, all-zero F32 weights), a real BPE vocab, and drives the v2 actor adapter through INIT -> RUN -> EMIT. RUN actually invokes nx_llm_generate_one_v2 which executes: tokenize prompt -> nx_embedding_lookup -> RoPE + RMSNorm + multi-head attention + SwiGLU FFN + output norm + output proj + temperature + top_k + nx_sample_categorical -> token id Per the operator constraint: "real testing of real world capabilities bits up". No constructor-rejection-only paper proof; this exercises the entire other-agent runner stack through the actor system. Composes [[feedback-real-playtest-loop-not-just-logs]] + [[feedback-four-pillar-code-hygiene-untracked-imports]] (additive fix landed; preventative scanner shipped; this is the demonstration of the now-safe end-to-end path).

dependencies 13 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_le.nx nx_tensor.nx nx_bpe.nx nx_model_spec.nx nx_prng.nx nx_gguf.nx nx_gguf_load.nx nx_llm_run_v2.nx nx_actor_role_llm_v2_real_test

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

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.nxnx_actor.nxnx_message.nxnx_actor_role_llm_v2.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 nx_le_write_u64 nx_le_write_u32 _mk_blk_name _write_ti nx_le_write_u64 ↻ nx_le_write_u32 ↻ 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_model_spec_new sys_mmap ↻ nx_model_spec_validate nx_norm_is_valid nx_act_is_valid nx_pos_is_valid nx_ffn_is_valid nx_bpe_vocab_new sys_mmap ↻ nx_intern_new nx_intern_next_pow2 nx_hash_new nx_bpe_add_token nx_intern_get nx_hash_fnv1a_bytes nx_hash_get nx_hash_probe nx_hash_fnv1a_i64 nx_intern_bytes_eq nx_hash_put nx_hash_probe ↻ nx_prng_init nx_lv_actor_new

structs

none

consts

none

functions

39func _write_ti(buf: *u8, off: i64,
called by 1: main calls 2: nx_le_write_u64nx_le_write_u32
56func _mk_blk_name(suffix: *u8, suffix_len: nx_int, out: *u8) -> nx_int
called by 1: main
64func main() -> i64