nx_f32_sampler.nx
buildroot/runtime/nx_f32_sampler.nx
about
dependencies 7 imports · 30 importers
diagram shows first 10 each side; +0 more imports, +20 more importers in the complete lists below.
imports: nx_syscalls.nxnx_tier.nxnx_prng.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f32_exp.nx
imported by: nx_batched_gate.nxnx_batched_tput.nxnx_coder_gen_f32.nxnx_f32_llm_bench_test.nxnx_f32_llm_cohere_test.nxnx_f32_llm_e2e_test.nxnx_f32_llm_live_gen_test.nxnx_f32_llm_run.nxnx_f32_llm_run_test.nxnx_f32_llm_run_v2.nxnx_f32_llm_run_v2_test.nxnx_f32_llm_run_v3.nxnx_f32_llm_run_v3_test.nxnx_f32_llm_serve.nxnx_f32_qwen_capital_gate.nxnx_f32_sampler_test.nxnx_llm_batch_serve.nxnx_llm_france_probe.nxnx_llm_sched.nxnx_llm_sched_gate.nxnx_paged_fwd_gate.nxnx_qwen_native_gate.nxnx_qwen_wsl_timing_gate.nxnx_reason_paged_probe.nxnx_reason_probe.nxnx_reasoning.nxnx_reasoning_gate.nxnx_reasoning_paged.nxnx_specdec.nxnx_specdec_gate.nx
structs
| none |
consts
| 28 | const NX_MAGIC_16384: i64 = 16384 |
| 30 | const NX_FSP_OK: nx_int = 0 |
| 31 | const NX_FSP_ERR_BAD_DIM: nx_int = 1 |
| 32 | const NX_FSP_ERR_NULL: nx_int = 2 |
| 33 | const NX_FSP_N_VERDICTS: nx_int = 3 |
functions
| 35 | func nx_fsp_verdict_is_valid(v: nx_int) -> nx_int called by 1: main |
| 43 | func nx_f32_sampler_argmax(logits: *i64, vocab_size: nx_int) -> nx_int called by 14: bt_measuremainnx_f32_llm_run_pick_frn2_pick_frn3_picknx_f32_sampler_sample_top_k+8 calls 1: nx_f32_lt |
| 62 | func nx_f32_sampler_sample_temp(logits: *i64, vocab_size: nx_int, |
| 109 | func nx_f32_sampler_sample_top_k(logits: *i64, vocab_size: nx_int, |
| 172 | func _fsp_find_top_p_k(logits: *i64, vocab_size: nx_int, called by 1: nx_f32_sampler_sample_top_p calls 7: nx_f32_ltsys_mmapnx_f32_subnx_f32_mulnx_f32_expnx_f32_add+1 |
| 250 | func nx_f32_sampler_apply_repetition_penalty( |
| 281 | func _fsp_find_min_p_k(logits: *i64, vocab_size: nx_int, called by 1: nx_f32_sampler_sample_min_p calls 7: nx_f32_ltsys_mmapnx_f32_subnx_f32_mulnx_f32_expnx_f32_add+1 |
| 316 | func nx_f32_sampler_sample_min_p(logits: *i64, vocab_size: nx_int, |
| 330 | func nx_f32_sampler_sample_top_p(logits: *i64, vocab_size: nx_int, |