MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / bsz_h

Function bsz_h

src/fused_mm_sampling/core.py:856–861  ·  view source on GitHub ↗
(H: int)

Source from the content-addressed store, hash-verified

854 return logits, indices
855
856
857@nvtx.annotate()
858def flashinfer_sampling_from_logits(
859 weights: torch.Tensor, # [V, D]
860 hidden_states: torch.Tensor, # [n_hidden_states, D]
861 num_samples: int,
862 temperature: torch.Tensor, # scalar (0-d)
863 tp: "TPInfo" = TP1,
864 **_kwargs,

Callers 1

test_bsz_hFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_bsz_hFunction · 0.72