MCPcopy Create free account
hub / github.com/THUDM/GLM / metrics_func

Function metrics_func

tasks/language_model/finetune.py:220–221  ·  view source on GitHub ↗
(model, epoch, output_predictions=False, summary_writer=None)

Source from the content-addressed store, hash-verified

218 args.num_workers, drop_last=False, shuffle=False)
219
220 def metrics_func(model, epoch, output_predictions=False, summary_writer=None):
221 return evaluate_and_print_results(dataloader, model, eval_metric=eval_metric, args=args)
222
223 global global_tokenizer
224 global_tokenizer = tokenizer

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected