torch_dtype is now dtype
In transformers 5 the argument is dtype, and the default is "auto", so a model loads in the dtype it was saved in. torch_dtype still works but warns.
Do thisWrite dtype="auto" or a real dtype, and stop passing torch_dtype.





