nx_gguf_load_block_test.nx
buildroot/runtime/nx_gguf_load_block_test.nx
about
nx_gguf_load_block_test.nx -- smoke for nx_gguf_load_block.nx.
Two test classes:
A) Name-formatting unit checks: format "blk.{N}.{suffix}" with
different layer indices + suffix strings; verify byte-equal
to expected literal.
B) End-to-end integration: build a synthetic GGUF with a single
layer-0 attn_norm tensor (F32 shape [2]); call the loader's
_gbl_load_blk_tensor; verify it finds + loads correctly.
Full 9-tensor end-to-end smoke is deferred to the `nx_llm_run` v2
brick where it composes with the transformer block forward pass.
THIS smoke validates the new code paths (name fmt + per-tensor
helper) under the bits-up canonical-brick discipline.
dependencies 8 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_tensor.nxnx_rope.nxnx_gguf.nxnx_gguf_load.nxnx_gguf_load_block.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
| 26 | func _byte_equal(a: *u8, b: *u8, n: nx_int) -> nx_int called by 1: main |
| 35 | func main() -> i64 |