MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / rank0_print

Method rank0_print

src/fused_mm_sampling/tp_info.py:23–25  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

21
22 def rank0_print(self, *args, **kwargs) -> None:
23 if self.is_rank0():
24 print(*args, **kwargs)
25
26 @classmethod
27 def from_world(cls) -> "TPInfo":
28 return cls(rank=dist.get_rank(), size=dist.get_world_size())

Callers 8

verify_correctness_tp2Function · 0.80
verify_greedy_tp2Function · 0.80
_run_benchmarkFunction · 0.80
_prepare_caseFunction · 0.80
run_cuptiFunction · 0.80
_run_speed_test_implFunction · 0.80

Calls 1

is_rank0Method · 0.95

Tested by 6

verify_correctness_tp2Function · 0.64
verify_greedy_tp2Function · 0.64
_prepare_caseFunction · 0.64
run_cuptiFunction · 0.64
_run_speed_test_implFunction · 0.64