nroggendorff commited on
Commit
f9b4329
1 Parent(s): f3687e0

Update train.py

Browse files
Files changed (1) hide show
  1. train.py +5 -2
train.py CHANGED
@@ -242,7 +242,10 @@ def main(push_to_hub=True, is_inst_finetune=False):
242
 
243
  print("Training Model..")
244
  train_model(model, tokenizer, dataset, push_to_hub, is_inst_finetune)
 
245
 
246
  if __name__ == "__main__":
247
- main(PUSH_TO_HUB, INSTRUCT_FINETUNE_BOOL)
248
- space.pause()
 
 
 
242
 
243
  print("Training Model..")
244
  train_model(model, tokenizer, dataset, push_to_hub, is_inst_finetune)
245
+ raise Exception
246
 
247
  if __name__ == "__main__":
248
+ try:
249
+ main(PUSH_TO_HUB, INSTRUCT_FINETUNE_BOOL)
250
+ except:
251
+ space.pause()