accelerate icon indicating copy to clipboard operation
accelerate copied to clipboard

Split_batches argument in Accelerator.__init__ is available, but not used

Open yaraksen opened this issue 1 year ago • 0 comments

System Info

accelerate==1.0.1

Reproduction

Since the latest versions split_batches is taken from DataLoaderConfiguration, but still can be passed as an argument to Accelerator constructor, which leads to unexpected behavior. You can pass Accelerator(split_batches=True), but it will still be False

Expected behavior

There should not be 2 different places where argument can be passed or an exception should be raised

yaraksen avatar Oct 17 '24 15:10 yaraksen