nx_gguf_load.nx
buildroot/runtime/nx_gguf_load.nx
about
dependencies 6 imports · 136 importers
diagram shows first 10 each side; +0 more imports, +126 more importers in the complete lists below.
imports: nx_syscalls.nxnx_tier.nxnx_loop.nxnx_le.nxnx_tensor.nxnx_gguf.nx
imported by: nx_actor_role_llm_v2_real_test.nxnx_batched_gate.nxnx_batched_tput.nxnx_chat_warmcache.nxnx_coder_gen_f32.nxnx_coder_swap_gate.nxnx_companion_chat.nxnx_companion_voice.nxnx_dequant_bench.nxnx_dequant_bench_test.nxnx_dequant_iter.nxnx_dequant_iter_bench_test.nxnx_dequant_iter_test.nxnx_embed_bench.nxnx_f32_bpe_load.nxnx_f32_bpe_load_test.nxnx_f32_embed_gate.nxnx_f32_lazy_weight_test.nxnx_f32_llama_layer_lazy_load.nxnx_f32_llm_bench_test.nxnx_f32_llm_chat_test.nxnx_f32_llm_cohere_test.nxnx_f32_llm_diag_test.nxnx_f32_llm_dim_dump_test.nxnx_f32_llm_embed_diag_test.nxnx_f32_llm_live_dims_test.nxnx_f32_llm_live_gen_test.nxnx_f32_llm_live_load_only_test.nxnx_f32_llm_live_load_test.nxnx_f32_llm_probe.nxnx_f32_llm_read_dims.nxnx_f32_llm_read_dims_test.nxnx_f32_llm_serve.nxnx_f32_llm_special_tokens_test.nxnx_f32_q4k_matmul.nxnx_f32_q4k_matmul_test.nxnx_f32_qwen_capital_gate.nxnx_gguf_dequant_kat_gate.nxnx_gguf_fixture_tiny.nxnx_gguf_load_block.nxnx_gguf_load_block_test.nxnx_gguf_load_f32.nxnx_gguf_load_f32_test.nxnx_gguf_load_lazy.nxnx_gguf_load_lazy_test.nxnx_gguf_load_model.nxnx_gguf_load_model_test.nxnx_gguf_load_q4k_test.nxnx_gguf_load_test.nxnx_gguf_meta.nxnx_gguf_typecensus.nxnx_gpu_export.nxnx_gpu_serve_gate.nxnx_live_fire_gguf.nxnx_live_fire_gguf_test.nxnx_llm_argmax_probe.nxnx_llm_batch_serve.nxnx_llm_capcheck.nxnx_llm_diff_probe.nxnx_llm_forward_profile.nxnx_llm_france_probe.nxnx_llm_layerlens_probe.nxnx_llm_loopb_gate.nxnx_llm_ppl_bench_gate.nxnx_llm_run_v2.nxnx_llm_run_v2_test.nxnx_llm_sched_gate.nxnx_lowrank_kv_real.nxnx_lowrank_weight_spectrum.nxnx_nofloat_arch_config_gate.nxnx_nofloat_arch_moe_gate.nxnx_nofloat_llm.nxnx_nofloat_moe_real_gate.nxnx_nofloat_olmoe_forward_gate.nxnx_nofloat_olmoe_gate.nxnx_nofloat_q6k_gate.nxnx_nofloat_qwen_bias_probe.nxnx_nofloat_qwen_diag_gate.nxnx_nofloat_qwen_dqprobe_gate.nxnx_nofloat_qwen_fastgen_gate.nxnx_nofloat_qwen_fastgen_i32_gate.nxnx_nofloat_qwen_fastgen_i8_gate.nxnx_nofloat_qwen_fidelity_gate.nxnx_nofloat_qwen_forward_gate.nxnx_nofloat_qwen_gen_gate.nxnx_nofloat_qwen_kvgen_gate.nxnx_nofloat_qwen_rope_h2h_gate.nxnx_nofloat_qwen_stack_gate.nxnx_nofloat_qwen_text_gate.nxnx_nofloat_qwen_tok_gate.nxnx_nofloat_qwen_wload_gate.nxnx_nofloat_serve_core.nxnx_olmoe_recon2_gate.nxnx_paged_fwd_gate.nxnx_placement.nxnx_q4k_dot_simd.nxnx_q4k_fused_fidelity_gate.nxnx_q4k_gemm_mt.nxnx_q4k_ggml_kat.nxnx_q4k_linear.nx +36 more (shown cap 100 declared)
structs
| none |
consts
| 51 | const NX_MAGIC_8388607: i64 = 8388607 |
| 52 | const NX_MAGIC_8192: i64 = 8192 |
| 53 | const NX_MAGIC_1024: i64 = 1024 |
| 54 | const NX_MAGIC_2047: i64 = 2047 |
| 55 | const NX_MAGIC_16384: i64 = 16384 |
| 56 | const NX_MAGIC_32767: i64 = 32767 |
| 57 | const NX_MAGIC_32752: i64 = 32752 |
| 61 | const NX_GL_OK: nx_int = 0 |
| 62 | const NX_GL_ERR_NOT_FOUND: nx_int = 1 |
| 63 | const NX_GL_ERR_BAD_TYPE: nx_int = 2 |
| 64 | const NX_GL_ERR_BAD_SHAPE: nx_int = 3 |
| 65 | const NX_GL_ERR_OOB: nx_int = 4 |
| 66 | const NX_GL_ERR_OOM: nx_int = 5 |
| 67 | const NX_GL_ERR_OVERFLOW: nx_int = 6 |
| 68 | const NX_GL_N_VERDICTS: nx_int = 7 |
| 90 | const NX_GL_Q8_0_VPB: nx_int = 32 |
| 91 | const NX_GL_Q8_0_BPB: nx_int = 34 |
| 92 | const NX_GL_Q4_0_VPB: nx_int = 32 |
| 93 | const NX_GL_Q4_0_BPB: nx_int = 18 |
| 94 | const NX_GL_Q4_K_VPB: nx_int = 256 |
| 95 | const NX_GL_Q4_K_BPB: nx_int = 144 |
| 98 | const NX_GL_Q10: nx_int = 1024 |
| 109 | const NX_GL_Q14: nx_int = 16384 |
| 114 | const NX_GL_Q10_INF_SAT: i64 = 0x1000000000000000 |
| 412 | const NX_GL_Q24: i64 = 16777216 // 2^24 |
functions
| 70 | func nx_gl_verdict_is_valid(v: nx_int) -> nx_int called by 1: main |
| 122 | func nx_gguf_name_equals(ti: *NxGgufTensorInfo, called by 1: nx_gguf_find_tensor |
| 144 | func nx_gguf_find_tensor(hdr: *NxGgufHeader, |
| 161 | func nx_gguf_ggml_values_per_block(ggml_type: i64) -> nx_int |
| 170 | func nx_gguf_ggml_bytes_per_block(ggml_type: i64) -> nx_int |
| 183 | func nx_gguf_tensor_n_values(ti: *NxGgufTensorInfo) -> i64 |
| 194 | func nx_gguf_tensor_data_bytes(ti: *NxGgufTensorInfo) -> i64 called by 2: mainmain calls 3: nx_gguf_tensor_n_valuesnx_gguf_ggml_values_per_blocknx_gguf_ggml_bytes_per_block |
| 230 | func _gguf_f32_to_q10(raw: i64) -> i64 |
| 277 | func _gguf_f32_to_q14(raw: i64) -> i64 called by 1: main |
| 317 | func _gguf_f16_to_q10(raw: i64) -> i64 |
| 366 | func _gguf_f16_to_q14(raw: i64) -> i64 |
| 414 | func _gguf_f16_to_q24(raw: i64) -> i64 |
| 439 | func nx_gguf_dequant_f32(buf: *u8, base_off: i64, n_values: i64, |
| 456 | func nx_gguf_dequant_f16(buf: *u8, base_off: i64, n_values: i64, |
| 483 | func nx_gguf_dequant_q8_0(buf: *u8, base_off: i64, n_values: i64, called by 2: nx_gguf_load_tensor_pt_materialize calls 3: nx_le_read_u16_gguf_f16_to_q10nx_le_read_u8 |
| 566 | func nx_gguf_dequant_q4_k(buf: *u8, base_off: i64, n_values: i64, |
| 668 | func nx_gguf_dequant_q4_k_q14(buf: *u8, base_off: i64, n_values: i64, |
| 688 | func nx_gguf_load_tensor(buf: *u8, hdr: *NxGgufHeader, |