Skip to content

Commit

Permalink
Fix training and model key detection
Browse files Browse the repository at this point in the history
  • Loading branch information
vrigal committed Sep 3, 2024
1 parent 7dc10d0 commit 5c17599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion taskcluster/translations_taskgraph/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_defaults(_) -> dict:
"marian-args": {
"training-backward": {
"disp-freq": "2",
"save-freq": "26",
"save-freq": "25",
"valid-freq": "50",
"after": "50u",
"dim-vocabs": "1000 1000",
Expand Down
4 changes: 2 additions & 2 deletions tracking/translations_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ def flatten(vals):

# Handle Marian model and training YAML configuration files (called as --config or -c)
for path in args.get("config", args["c"]):
if path.endswith("train.yml"):
if path.startswith("configs/training"):
key = "training"
elif path.endswith(".yml"):
elif path.startswith("configs/model"):
key = "model"
else:
continue
Expand Down

0 comments on commit 5c17599

Please sign in to comment.