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

Method sample

src/fused_mm_sampling/core.py:648–649  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

646
647@lru_cache(maxsize=1)
648def set_torch_allocator_for_tma_descriptors_cached():
649 """From https://triton-lang.org/main/python-api/generated/triton.language.make_tensor_descriptor.html"""
650 # TMA descriptors require a global memory allocation
651 triton.set_allocator(alloc_on_cuda)
652

Callers 8

verify_greedy_tp2Function · 0.45
fnFunction · 0.45
fnFunction · 0.45
nvbench_kernelFunction · 0.45
launcherFunction · 0.45
test_top_k_top_pFunction · 0.45

Calls

no outgoing calls

Tested by 7

verify_greedy_tp2Function · 0.36
fnFunction · 0.36
nvbench_kernelFunction · 0.36
launcherFunction · 0.36
test_top_k_top_pFunction · 0.36