def configure_optimizers(self) -> torch.optim.Optimizer:
        """Configure the optimizer.

        Returns:
            torch.optim.Optimizer: AdamW optimizer configured with:
                - Learning rate: ``1e-3``
                - Weight decay: ``5e-4``
                - AMSGrad: ``True``
        """
        return torch.optim.AdamW(
            params=self.model.parameters(),
            lr=1e-3,
            weight_decay=5e-4,
            amsgrad=True,
        )
Configure the optimizer.

        Returns:
            torch.optim.Optimizer: AdamW optimizer configured with:
                - Learning rate: ``1e-3``
                - Weight decay: ``5e-4``
                - AMSGrad: ``True``
        
src/anomalib/models/image/cfa/lightning_model.py