Skip to content

Commit 0a3bc72

Browse files
committed
please 2
1 parent 3da7a68 commit 0a3bc72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli/01_train_teacher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import typer
2+
import os
23
import yaml
34
import logging
5+
from pathlib import Path
46

57
import torch
68
from transformers import DataCollatorWithPadding, IntervalStrategy, TrainingArguments, Trainer
@@ -20,7 +22,7 @@
2022

2123

2224
@app.command()
23-
def main(config_path):
25+
def main(config_path: Path = typer.Argument(..., help="Path to YAML config")):
2426
cfg = yaml.safe_load(config_path.read_text())
2527

2628
# --- SETUP W&B ---

0 commit comments

Comments
 (0)