Skip to content

Commit

Permalink
Not ready but idea there
Browse files Browse the repository at this point in the history
  • Loading branch information
SrGonao authored and jettjaniak committed Feb 26, 2024
1 parent d076024 commit f34562b
Show file tree
Hide file tree
Showing 4 changed files with 606 additions and 302 deletions.
15 changes: 15 additions & 0 deletions scripts/train.py
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)
Loading

0 comments on commit f34562b

Please sign in to comment.