Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/FlashSampling/FlashSampling
/ prepare
Method
prepare
src/fused_mm_sampling/core.py:645–646 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
643
644
class
Sampler(Protocol):
645
def
prepare(self) ->
"Sampler"
:
646
raise
NotImplementedError()
647
648
def
sample(self, **kwargs) -> torch.Tensor:
649
raise
NotImplementedError()
Callers
8
assert_sampling_distribution
Function · 0.45
verify_greedy_tp2
Function · 0.45
_run_benchmark
Function · 0.45
_prepare_case
Function · 0.45
nvbench_kernel
Function · 0.45
test_jl_sampling_aproximate_correctness
Function · 0.45
test_top_k_top_p
Function · 0.45
test_top_k_top_p_large_vocab
Function · 0.45
Calls
no outgoing calls
Tested by
7
assert_sampling_distribution
Function · 0.36
verify_greedy_tp2
Function · 0.36
_prepare_case
Function · 0.36
nvbench_kernel
Function · 0.36
test_jl_sampling_aproximate_correctness
Function · 0.36
test_top_k_top_p
Function · 0.36
test_top_k_top_p_large_vocab
Function · 0.36