c7d3da7922a35fac7540ac822ac58d67a711967c
Applied counting_iterator.cu + alias_temporaries pattern: cache bin_counts tensor across _get_bin_counts_and_mask calls. CCCL counting_iterator generates [0,N) without materializing storage. Our equivalent: reuse bin_counts buffer instead of torch.zeros() each sampling call. For Qwen3.6 (vocab=152064, batch=8 decode), this saves 9.7MB of CUDA malloc per decode step. Also reads from: device_radix_sort.cuh (DoubleBuffer reuse pattern), dispatch_reduce.cuh (alias_temporaries pre-allocation). CCCL files: thrust/examples/counting_iterator.cu, cub/device/device_radix_sort.cuh
project_6
Description
Languages
C++
41.8%
Cuda
31.6%
Python
22.2%
C
2.1%
CMake
1.1%
Other
1.1%