only load state dict when the checkpoint is not None (#16673)
only load state dict when the checkpoint is not None (#16673)


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