Open samet-akcay opened 2 months ago
Hey guys, this is presumably one of the most important missing features in Anomalib. Do you have any ideas when v1.2 with multi-GPU training will be released?
Hi @haimat, I agree with you, but to enable multi-gpu, we had to go through a number of refactors here and there. You could check the PRs done to feature/design-simplifications
branch.
What is left to enable multi-gpu is metric refactor and visualization refactor, which we are currently working on.
That sounds great, thanks for the update. Do you have an estimation on when you might be ready with this whole change?
@samet-akcay Hello, do you have any ideas when this might be released?
@haimat, we figured this requires quite some changes within AnomalyModule
. Required changes unfortunately breaks the backwards compatibility, which is the reason why we decided to release this as part of v2.0. We are currently working on it on feature/design-simplifications
branch, which will be released as v2.0.0
@samet-akcay Thanks for the update. Do you have an estimation, when you plan to release version 2.0?
we aim to release it by the end of this quarter
Implement Multi-GPU Support in Anomalib
Depends on:
Background
Anomalib currently uses PyTorch Lightning under the hood, which provides built-in support for multi-GPU training. However, Anomalib itself does not yet expose this functionality to users. Implementing multi-GPU support would significantly enhance the library's capabilities, allowing for faster training on larger datasets and more complex models.
Proposed Feature
Enable multi-GPU support in Anomalib, allowing users to easily utilize multiple GPUs for training without changing their existing code structure significantly.
Example Usage
Users should be able to enable multi-GPU training by simply specifying the number of devices in the
Engine
configuration:This configuration should automatically distribute the training across two GPUs.
Implementation Goals
Implementation Steps
Engine
class to properly handle multi-GPU configurationsPotential Challenges
Discussion Points
Next Steps
Additional Considerations
We welcome input from the community on this feature. Please share your thoughts, concerns, or suggestions regarding the implementation of multi-GPU support in Anomalib.