From 38d1db602ea22a2af2bd499a709eed19df58bd3c Mon Sep 17 00:00:00 2001 From: JackZ-db Date: Thu, 6 Jun 2024 14:44:25 -0700 Subject: [PATCH] added systemMetricsMonitor callback --- llmfoundry/callbacks/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llmfoundry/callbacks/__init__.py b/llmfoundry/callbacks/__init__.py index 4712de5d5e..66255d636c 100644 --- a/llmfoundry/callbacks/__init__.py +++ b/llmfoundry/callbacks/__init__.py @@ -11,6 +11,7 @@ OptimizerMonitor, RuntimeEstimator, SpeedMonitor, + SystemMetricsMonitor, ) from llmfoundry.callbacks.async_eval_callback import AsyncEval @@ -35,6 +36,7 @@ from llmfoundry.callbacks.scheduled_gc_callback import ScheduledGarbageCollector from llmfoundry.registry import callbacks, callbacks_with_config +callbacks.register('system_metrics_monitor', func=SystemMetricsMonitor) callbacks.register('lr_monitor', func=LRMonitor) callbacks.register('memory_monitor', func=MemoryMonitor) callbacks.register('memory_snapshot', func=MemorySnapshot) @@ -71,4 +73,4 @@ 'AsyncEval', 'CurriculumLearning', 'LossPerpVsContextLengthLogger', -] +] \ No newline at end of file