修复batch_size校验错误

This commit is contained in:
Zchen
2025-10-12 16:32:31 +08:00
parent 72fdfd2a6c
commit 404c5012cb

View File

@@ -48,6 +48,9 @@ class BrainToTextDecoder_Trainer:
project_dir=args.get('output_dir', './output'),
)
# Set even_batches to False to handle batch_size=None in DataLoaders
self.accelerator.even_batches = False
# Trainer fields
self.args = args
self.logger = None