nx_f32_llm_test.nx
buildroot/runtime/nx_f32_llm_test.nx
about
nx_f32_llm_test.nx -- smoke for nx_f32_llm.nx.
Build a 2-layer model with one-hot embed + zero block weights +
zero lm_head. Verify:
(a) Different token_ids run without segfault
(b) logits is all zero (zero lm_head)
(c) Argmax returns 0 (first token id)
(d) Token-id out-of-range verdict
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_f32.nxnx_f32_kv_cache.nxnx_f32_llama_block.nxnx_f32_llama_stack.nxnx_f32_llm.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
| 18 | func make_zero_layer(hidden_dim: nx_int, q_dim: nx_int, |
| 39 | func main() -> i64 |