-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d076024
commit f34562b
Showing
4 changed files
with
606 additions
and
302 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from delphi.train.training import DDP,TrainingConfig, model_initialization, train_loop | ||
from delphi.train.utils import load_config | ||
from argparse import ArgumentParser | ||
|
||
|
||
def main(): | ||
parser = ArgumentParser() | ||
parser.add_argument("--config", type=str, help="Path to the configuration file.") | ||
parser.add_argument("--log_level", type=str, help="Log level to use.") | ||
args = parser.parse_args() | ||
|
||
config = load_config(args.config) | ||
TrainConf = TrainingConfig(config) | ||
model,model_args = model_initialization(config) | ||
train_loop(model, TrainConf) |
Oops, something went wrong.