In transformers, the torch_dtype argument is deprecated in favor of dtype as in: AutoModel.from_pretrained(..., torch_dtype=torch.float16) changed to AutoModel.from_pretrained(..., dtype=torch.float16).
It gives a annoying message on the terminal always. as
Although it isn't necessary but it would be nice if it can be fixed.
huggingface/transformers#39782 here is a link to the PR in the transformers library