Kevin Fink commited on
Commit
d9a6e5a
·
1 Parent(s): e643487
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
94
  model_inputs = tokenizer(
95
  examples['text'],
96
  max_length=max_length, # Set to None for dynamic padding
97
- truncation='max_length',
98
  )
99
 
100
  # Setup the decoder input IDs (shifted right)
 
94
  model_inputs = tokenizer(
95
  examples['text'],
96
  max_length=max_length, # Set to None for dynamic padding
97
+ truncation=True,
98
  )
99
 
100
  # Setup the decoder input IDs (shifted right)