MCPcopy
hub / github.com/huggingface/transformers / is_local_process_zero

Method is_local_process_zero

src/transformers/trainer.py:4413–4418  ·  view source on GitHub ↗

Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several machines) main process.

(self)

Source from the content-addressed store, hash-verified

4411 # ---- Utilities ----
4412
4413 def is_local_process_zero(self) -> bool:
4414 """
4415 Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several
4416 machines) main process.
4417 """
4418 return self.args.local_process_index == 0
4419
4420 def is_world_process_zero(self) -> bool:
4421 """

Callers 2

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected