"Failed to place model onto specified device. This may be because the model is quantized via `bitsandbytes`. If the desired GPU is being used, this message is safe to ignore."
)
else:
self._model=accelerator.prepare_model(
self.model,evaluation_mode=True
)
assertaccelerator.distributed_typein[DistributedType.FSDP,DistributedType.MULTI_GPU],"Unsupported distributed type provided. Only DDP and FSDP are supported."