menouar commited on
Commit
bc9310c
·
1 Parent(s): b32410e

Adding model.config.use_cache = False to prevent warning

Browse files
Files changed (1) hide show
  1. utils/notebook_generator.py +2 -0
utils/notebook_generator.py CHANGED
@@ -319,6 +319,8 @@ loop and train the model for `{epoch_str}`. The model will be automatically save
319
 
320
  code = f"""
321
 
 
 
322
  # start training
323
  trainer.train()
324
 
 
319
 
320
  code = f"""
321
 
322
+ model.config.use_cache = False
323
+
324
  # start training
325
  trainer.train()
326