ttransformersSource ↗
74 declarations and 41 call references extracted from public source metadata.

Source symbols: src/transformers/trainer_callback.py

Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.

  • Revision: main@9a0fe3f5dd36ffe1888133f09eb03f1eb14b8a6e · 2026-07-20T12:47:48Z
  • Declarations: 74
  • Referenced calls: 41

Declared symbols

  • TrainerState — class at line 35
  • __post_init__ — def at line 116
  • save_to_json — def at line 143; references dumps, asdict, open, write, read, cls, loads, getattr, ceil, setattr, hp_name, hp_params, is_local_process_zero, is_world_process_zero, NotImplementedError, items
  • load_from_json — def at line 150; references open, read, cls, loads, getattr, ceil, setattr, hp_name, hp_params, is_local_process_zero, is_world_process_zero, NotImplementedError, items
  • compute_steps — def at line 156; references getattr, ceil, setattr, hp_name, hp_params, is_local_process_zero, is_world_process_zero, NotImplementedError, cls, items
  • init_training_references — def at line 169; references hp_name, hp_params, is_local_process_zero, is_world_process_zero, NotImplementedError, cls, items, setattr
  • ExportableState — class at line 189; references NotImplementedError, cls, items, setattr
  • state — def at line 222; references NotImplementedError, cls, items, setattr
  • from_state — def at line 226; references cls, items, setattr
  • TrainerControl — class at line 234
  • _new_training — def at line 268
  • _new_epoch — def at line 272
  • _new_step — def at line 276
  • state — def at line 282
  • TrainerCallback — class at line 295
  • on_init_end — def at line 346
  • on_train_begin — def at line 351
  • on_train_end — def at line 356
  • on_epoch_begin — def at line 361
  • on_epoch_end — def at line 366
  • on_step_begin — def at line 371
  • on_pre_optimizer_step — def at line 377
  • on_optimizer_step — def at line 382
  • on_substep_end — def at line 387
  • on_step_end — def at line 392
  • on_evaluate — def at line 398
  • on_predict — def at line 403
  • on_save — def at line 408
  • on_log — def at line 413
  • on_prediction_step — def at line 418
  • on_push_begin — def at line 423
  • CallbackHandler — class at line 429; references add_callback, any, isinstance, warning, callback, append, remove, join, call_event, getattr
  • __init__ — def at line 432; references add_callback, any, isinstance, warning
  • add_callback — def at line 451; references callback, isinstance, warning, append, remove, join, call_event, getattr, tqdm, update, has_length, len, close
  • pop_callback — def at line 462; references isinstance, remove, join, call_event, getattr, tqdm, update, has_length, len, close
  • remove_callback — def at line 474; references isinstance, remove, join, call_event, getattr, tqdm, update, has_length, len, close
  • callback_list — def at line 484; references join, call_event, getattr, tqdm, update, has_length, len, close
  • on_init_end — def at line 487; references call_event, getattr, tqdm, update, has_length, len, close
  • on_train_begin — def at line 490; references call_event, getattr, tqdm, update, has_length, len, close
  • on_train_end — def at line 494; references call_event, getattr, tqdm, update, has_length, len, close
  • on_epoch_begin — def at line 497; references call_event, getattr, tqdm, update, has_length, len, close
  • on_epoch_end — def at line 501; references call_event, getattr, tqdm, update, has_length, len, close
  • on_step_begin — def at line 504; references call_event, getattr, tqdm, update, has_length, len, close
  • on_pre_optimizer_step — def at line 510; references call_event, getattr, tqdm, update, has_length, len, close
  • on_optimizer_step — def at line 513; references call_event, getattr, tqdm, update, has_length, len, close
  • on_substep_end — def at line 516; references call_event, getattr, tqdm, update, has_length, len, close
  • on_step_end — def at line 519; references call_event, getattr, tqdm, update, has_length, len, close
  • on_evaluate — def at line 522; references call_event, getattr, tqdm, update, has_length, len, close
  • on_predict — def at line 526; references call_event, getattr, tqdm, update, has_length, len, close
  • on_save — def at line 529; references call_event, getattr, tqdm, update, has_length, len, close
  • on_log — def at line 533; references call_event, getattr, tqdm, update, has_length, len, close
  • on_prediction_step — def at line 537; references call_event, getattr, tqdm, update, has_length, len, close
  • on_push_begin — def at line 540; references call_event, getattr, tqdm, update, has_length, len, close
  • call_event — def at line 543; references getattr, tqdm, update, has_length, len, close
  • DefaultFlowCallback — class at line 563; references tqdm, update, has_length, len, close
  • on_step_end — def at line 568; references tqdm, update, has_length, len, close
  • on_epoch_end — def at line 608; references tqdm, update, has_length, len, close
  • ProgressCallback — class at line 624; references tqdm, update, has_length, len, close
  • __init__ — def at line 630; references tqdm, update, has_length, len, close
  • on_train_begin — def at line 643; references tqdm, update, has_length, len, close
  • on_step_end — def at line 648; references update, has_length, tqdm, len, close
  • on_prediction_step — def at line 653; references has_length, tqdm, len, update, close
  • on_evaluate — def at line 661; references close
  • on_predict — def at line 667; references close
  • on_log — def at line 673
  • on_train_end — def at line 692; references close, pop, isinstance, items
  • PrinterCallback — class at line 698; references pop, isinstance, items
  • on_log — def at line 703; references pop, isinstance, items
  • EarlyStoppingCallback — class at line 711; references operator, abs, warning, startswith, get, check_metric_value
  • __init__ — def at line 728; references operator, abs, warning, startswith, get, check_metric_value
  • check_metric_value — def at line 734; references operator, abs, warning, startswith, get
  • on_train_begin — def at line 745; references warning, startswith, get, check_metric_value
  • on_evaluate — def at line 758; references startswith, get, warning, check_metric_value
  • state — def at line 775

File-level call references


Source: src/transformers/trainer_callback.py

Generated by smolify with deterministic-repository-import-v2 · 1 source file