Kevin Fink commited on
Commit
146a9de
·
1 Parent(s): c057aa5
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,9 +83,9 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
83
  save_total_limit=3,
84
  )
85
  # Check if a checkpoint exists and load it
86
- if os.path.exists(training_args.output_dir) and os.listdir(training_args.output_dir):
87
- print("Loading model from checkpoint...")
88
- model = AutoModelForSeq2SeqLM.from_pretrained(training_args.output_dir)
89
 
90
  tokenizer = AutoTokenizer.from_pretrained('google/t5-efficient-tiny-nh8')
91
 
 
83
  save_total_limit=3,
84
  )
85
  # Check if a checkpoint exists and load it
86
+ #if os.path.exists(training_args.output_dir) and os.listdir(training_args.output_dir):
87
+ #print("Loading model from checkpoint...")
88
+ #model = AutoModelForSeq2SeqLM.from_pretrained(training_args.output_dir)
89
 
90
  tokenizer = AutoTokenizer.from_pretrained('google/t5-efficient-tiny-nh8')
91