rcook commited on
Commit
b561141
·
verified ·
1 Parent(s): 8c5bbad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def summarize():
64
 
65
 
66
 
67
- training_args = Seq2SeqTrainingArguments(
68
  output_dir="./results",
69
  logging_dir="./logs", # Save logs here
70
  eval_strategy="steps",
@@ -84,6 +84,16 @@ def summarize():
84
  save_strategy="epoch", # Reduce checkpointing overhead
85
  save_steps=500,
86
  gradient_accumulation_steps=4 # Effective larger batch size
 
 
 
 
 
 
 
 
 
 
87
  )
88
  trainer = Seq2SeqTrainer(
89
  model=model,
 
64
 
65
 
66
 
67
+ """ training_args = Seq2SeqTrainingArguments(
68
  output_dir="./results",
69
  logging_dir="./logs", # Save logs here
70
  eval_strategy="steps",
 
84
  save_strategy="epoch", # Reduce checkpointing overhead
85
  save_steps=500,
86
  gradient_accumulation_steps=4 # Effective larger batch size
87
+ )"""
88
+
89
+ training_args = TrainingArguments(
90
+ output_dir="./tmp_test", # Temporary output directory
91
+ max_steps=2, # Run only 2 steps
92
+ per_device_train_batch_size=1, # Smallest batch size
93
+ per_device_eval_batch_size=1, # Smallest batch size
94
+ evaluation_strategy="no", # No evaluation for speed
95
+ save_strategy="no", # No checkpoint saving
96
+ logging_strategy="no", # No logging
97
  )
98
  trainer = Seq2SeqTrainer(
99
  model=model,