Accelerator examples cannot run
📚 Documentation
In the accelerator documentation, the documentation tells you to use a custom accelerator like:
trainer = Trainer(accelerator=DDPAccelerator())
Unfortunately, this is not actually possible -- all of the accelerators (AFAICT) require a trainer argument, and actually trying to execute this code raises:
TypeError: __init__() missing 1 required positional argument: 'trainer'
Because of this, I'm not actually sure how to use a custom accelerator because there seems to be a circular dependency: the accelerators require the trainer as input, the trainer itself needs an accelerator.