fix loading from pretrained for sharded model with `torch_dtype="auto" (#18061)
fix loading from pretrained for sharded model with `torch_dtype="auto" (#18061)


huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers