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

Method is_rank0

src/fused_mm_sampling/tp_info.py:20–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19 def is_rank0(self) -> bool:
20 return self.rank == 0
21
22 def rank0_print(self, *args, **kwargs) -> None:
23 if self.is_rank0():
24 print(*args, **kwargs)

Callers 4

rank0_printMethod · 0.95
run_cuptiFunction · 0.80
run_own_benchmarkFunction · 0.80

Calls

no outgoing calls

Tested by 2

run_cuptiFunction · 0.64
run_own_benchmarkFunction · 0.64