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

Method should_log

src/transformers/training_args.py:1970–1980  ·  view source on GitHub ↗

Whether or not the current process should produce log.

(self)

Source from the content-addressed store, hash-verified

1968
1969 @property
1970 def should_log(self):
1971 """
1972 Whether or not the current process should produce log.
1973 """
1974 if self.log_on_each_node:
1975 return self.local_process_index == 0
1976 else:
1977 if is_sagemaker_mp_enabled():
1978 return smp.rank() == 0
1979 else:
1980 return self.process_index == 0
1981
1982 @property
1983 def should_save(self):

Callers

nothing calls this directly

Calls 1

is_sagemaker_mp_enabledFunction · 0.85

Tested by

no test coverage detected