MCPcopy 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
32TP1 = TPInfo(rank=0, size=1)

Callers 4

verify_correctness_tp2Function · 0.80
verify_greedy_tp2Function · 0.80
make_tpMethod · 0.80

Calls

no outgoing calls

Tested by 3

verify_correctness_tp2Function · 0.64
verify_greedy_tp2Function · 0.64