Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlashSampling/FlashSampling
/ tensor_parallel.py
File
tensor_parallel.py
examples/tensor_parallel.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"Tensor-parallel sampling across 2 GPUs.
2
3
Each GPU holds a shard of the vocabulary weights (V/2 rows each).
4
The fused kernel computes local Gumbel-max values, then an all-gather
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected