This commit is contained in:
Zchen
2025-10-12 20:56:08 +08:00
parent 7cc9c41b7f
commit db6108f250

View File

@@ -46,10 +46,9 @@ class BrainToTextDecoder_Trainer:
gradient_accumulation_steps=args.get('gradient_accumulation_steps', 1),
log_with=None, # We'll use our own logging
project_dir=args.get('output_dir', './output'),
even_batches=False, # Required for batch_size=None DataLoaders
)
# Set even_batches to False after initialization - required for batch_size=None DataLoaders
# Note: This may not be settable in all Accelerate versions, but we handle it in DataLoader config
# Trainer fields
self.args = args