MCPcopy 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
3Each GPU holds a shard of the vocabulary weights (V/2 rows each).
4The fused kernel computes local Gumbel-max values, then an all-gather

Callers

nothing calls this directly

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected