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

Method state

src/transformers/trainer_callback.py:282–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

280 self.should_log = False
281
282 def state(self) -> dict:
283 return {
284 "args": {
285 "should_training_stop": self.should_training_stop,
286 "should_epoch_stop": self.should_epoch_stop,
287 "should_save": self.should_save,
288 "should_evaluate": self.should_evaluate,
289 "should_log": self.should_log,
290 },
291 "attributes": {},
292 }
293
294
295class TrainerCallback:

Callers 4

test_state_exportMethod · 0.95
__post_init__Method · 0.45
_save_checkpointMethod · 0.45
_tune_save_checkpointMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_state_exportMethod · 0.76