Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions arctic_training/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@


def main():
from arctic_training.config.trainer import get_config

parser = argparse.ArgumentParser(
prog="arctic_training",
formatter_class=argparse.RawDescriptionHelpFormatter,
Expand All @@ -45,6 +47,9 @@ def main():
if not args.config.exists():
raise FileNotFoundError(f"Config file {args.config} not found.")

# Early catch any config errors
_ = get_config(args.config)

exe_path = shutil.which("arctic_training_run")

env = os.environ.copy()
Expand Down
3 changes: 3 additions & 0 deletions arctic_training/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ def construct_mapping(self, node, deep=False):
raise ValueError(f"Duplicate '{key}' key found in YAML on line {key_node.start_mark.line + 1}.")
mapping.add(key)
return super().construct_mapping(node, deep)

def process_empty_scalar(self, node):
raise ValueError(f"Empty value found in YAML on line {node.line + 1}.")