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

Class Sampler

src/fused_mm_sampling/core.py:644–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642 # collisions caused by combining sample and tile IDs with arbitrary
643 # decimal multipliers.
644 return -tl.log(-tl.log(tl.rand(seed + sample_idx, noise_offsets)))
645
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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected