-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added systemMetricsMonitor callback (#1260)
* added systemMetricsMonitor callback * added unit testing for building system_metrics_monitor * temporarily removing flag check in unit test for system_metrics_monitor build * removed end of line formatting issue * fixed end of line error in __init__.py * fixed extra line in init --------- Co-authored-by: Daniel King <[email protected]> Co-authored-by: Mihir Patel <[email protected]>
- Loading branch information
1 parent
c23be4a
commit 4b1fecb
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2024 MosaicML LLM Foundry authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from composer.callbacks import SystemMetricsMonitor | ||
|
||
from llmfoundry.utils.builders import build_callback | ||
|
||
|
||
def test_system_metrics_monitor_callback_builds(): | ||
callback = build_callback( | ||
'system_metrics_monitor', | ||
kwargs={}, | ||
train_config={'train_loader': {}}, | ||
) | ||
assert isinstance(callback, SystemMetricsMonitor) |