Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/FlashSampling/FlashSampling
/ from_world
Method
from_world
src/fused_mm_sampling/tp_info.py:28–29 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
26
27
@classmethod
28
def
from_world(cls) ->
"TPInfo"
:
29
return
cls(rank=dist.get_rank(), size=dist.get_world_size())
30
31
32
TP1 = TPInfo(rank=0, size=1)
Callers
4
verify_correctness_tp2
Function · 0.80
verify_sampling_distribution_tp2
Function · 0.80
verify_greedy_tp2
Function · 0.80
make_tp
Method · 0.80
Calls
no outgoing calls
Tested by
3
verify_correctness_tp2
Function · 0.64
verify_sampling_distribution_tp2
Function · 0.64
verify_greedy_tp2
Function · 0.64