nx_actor_role_llm_v2_real_test.nx
buildroot/runtime/nx_actor_role_llm_v2_real_test.nx
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
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
structs
| none |
consts
| none |
functions
| 39 | func _write_ti(buf: *u8, off: i64, |
| 56 | func _mk_blk_name(suffix: *u8, suffix_len: nx_int, out: *u8) -> nx_int called by 1: main |
| 64 | func main() -> i64 |