nx_gguf_load_test.nx
buildroot/runtime/nx_gguf_load_test.nx
about
nx_gguf_load_test.nx -- smoke for nx_gguf_load.nx.
Builds a synthetic GGUF blob in memory with two tensors:
tensor[0] "score" : F32 shape [2,2] = {1.0, 2.0, 0.5, -1.0}
tensor[1] "weight" : Q8_0 shape [32] scale=0.5, qs={0,1,2,...,31}
=> values {0, 0.5, 1.0, ..., 15.5}
Verifies:
- parse + name lookup + not-found verdict
- format-helper bytes/values per block + total bytes
- f32 → Q10 unit conversions on canonical bit patterns
- f16 → Q10 unit conversions on canonical bit patterns
- end-to-end load + dequant for F32 and Q8_0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_tensor.nxnx_gguf.nxnx_gguf_load.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
| 22 | func main() -> i64 |