nx_f32_llm_read_dims_test.nx
buildroot/runtime/nx_f32_llm_read_dims_test.nx
about
nx_f32_llm_read_dims_test.nx -- smoke for nx_f32_llm_read_dims.nx.
Builds a synthetic GGUF with:
general.architecture STR "qwen2"
qwen2.block_count U32 2
qwen2.embedding_length U32 8
qwen2.attention.head_count U32 4
qwen2.attention.head_count_kv U32 2 (GQA: 2 KV heads, 4 Q heads -> group=2)
qwen2.feed_forward_length U32 16
(no head_count_kv variant tested below too)
+ 1 token_embd.weight tensor with dim_0=12 (vocab_size=12)
Verifies all dims are read correctly into NxF32LlamaModel.
dependencies 8 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_gguf.nxnx_gguf_load.nxnx_gguf_meta.nxnx_f32_llm.nxnx_f32_llm_read_dims.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
| 24 | func _write_meta_u32(buf: *u8, p_in: i64, |
| 36 | func _write_meta_string(buf: *u8, p_in: i64, |
| 52 | func main() -> i64 |