File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
pytorch_lightning/plugins/training_type Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ def __init__(
312
312
)
313
313
self ._config_initialized = False
314
314
deepspeed .utils .logging .logger .setLevel (logging_level )
315
+ pl ._logger .setLevel (logging_level )
315
316
316
317
self .remote_device = remote_device
317
318
self .load_full_weights = load_full_weights
@@ -634,12 +635,11 @@ def _auto_select_batch_size(self):
634
635
if hasattr (train_dataloader , "batch_sampler" ):
635
636
batch_size = train_dataloader .batch_sampler .batch_size
636
637
except Exception :
637
- if deepspeed .utils .logging .logger .level < logging .WARN :
638
- rank_zero_warn (
639
- "Tried to Infer the batch size for internal deepspeed logging from the `train_dataloader()`. "
640
- "To ensure DeepSpeed logging remains correct, please manually pass the plugin with the "
641
- "batch size, `Trainer(strategy=DeepSpeedPlugin(logging_batch_size_per_gpu=batch_size))`."
642
- )
638
+ rank_zero_warn (
639
+ "Tried to Infer the batch size for internal deepspeed logging from the `train_dataloader()`. "
640
+ "To ensure DeepSpeed logging remains correct, please manually pass the plugin with the "
641
+ "batch size, `Trainer(strategy=DeepSpeedPlugin(logging_batch_size_per_gpu=batch_size))`."
642
+ )
643
643
return batch_size
644
644
645
645
def _format_precision_config (self ):
You can’t perform that action at this time.
0 commit comments