forked from foundation-model-stack/fms-hf-tuning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code format using black and minor nit
Signed-off-by: Dushyant Behl <[email protected]>
- Loading branch information
1 parent
c93329f
commit 1fd64ba
Showing
7 changed files
with
71 additions
and
48 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
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# Standard | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class AimConfig: | ||
# Name of the experiment | ||
experiment: str = None | ||
# 'repo' can point to a locally accessible directory (e.g., '~/.aim') or a remote repository hosted on a server. | ||
# When 'remote_server_ip' or 'remote_server_port' is set, it designates a remote aim repo. | ||
# 'aim_repo' can point to a locally accessible directory (e.g., '~/.aim') or a remote repository hosted on a server. | ||
# When 'aim_remote_server_ip' or 'aim_remote_server_port' is set, it designates a remote aim repo. | ||
# Otherwise, 'repo' specifies the directory, with a default of None representing '.aim'. | ||
aim_repo: str = None | ||
# See https://aimstack.readthedocs.io/en/latest/using/remote_tracking.html for documentation on Aim remote server tracking. | ||
aim_repo: str = ".aim" | ||
aim_remote_server_ip: str = None | ||
aim_remote_server_port: int = None | ||
# Location of where run_hash is exported, if unspecified this is output to | ||
# Location of where run_hash is exported, if unspecified this is output to | ||
# training_args.output_dir/.aim_run_hash if the output_dir is set else not exported. | ||
aim_run_hash_export_path: str = None |
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from .tracker import Tracker | ||
# Local | ||
from .aimstack_tracker import AimStackTracker | ||
from .tracker import Tracker | ||
|
||
REGISTERED_TRACKERS = {"aim": AimStackTracker} | ||
|
||
REGISTERED_TRACKERS = { | ||
"aim" : AimStackTracker | ||
} | ||
|
||
def get_tracker(tracker_name, tracker_config): | ||
if tracker_name in REGISTERED_TRACKERS: | ||
T = REGISTERED_TRACKERS[tracker_name] | ||
return T(tracker_config) | ||
else: | ||
return Tracker() | ||
return Tracker() |