Kevin Fink commited on
Commit
e4621e6
·
1 Parent(s): fc7651a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def fine_tune_model(model_name, dataset_name, hub_id, api_key, num_epochs, batch
42
 
43
  # Set training arguments
44
  training_args = TrainingArguments(
45
- output_dir='./results',
46
  eval_strategy="steps", # Change this to steps
47
  save_strategy='steps',
48
  learning_rate=lr*0.00001,
@@ -55,7 +55,7 @@ def fine_tune_model(model_name, dataset_name, hub_id, api_key, num_epochs, batch
55
  load_best_model_at_end=True,
56
  metric_for_best_model="accuracy",
57
  greater_is_better=True,
58
- logging_dir='./logs',
59
  logging_steps=10,
60
  #push_to_hub=True,
61
  hub_model_id=hub_id.strip(),
 
42
 
43
  # Set training arguments
44
  training_args = TrainingArguments(
45
+ output_dir='/data/results',
46
  eval_strategy="steps", # Change this to steps
47
  save_strategy='steps',
48
  learning_rate=lr*0.00001,
 
55
  load_best_model_at_end=True,
56
  metric_for_best_model="accuracy",
57
  greater_is_better=True,
58
+ logging_dir='/data/logs',
59
  logging_steps=10,
60
  #push_to_hub=True,
61
  hub_model_id=hub_id.strip(),