Why does Hugging Face's push_to_hub convert saved models to .bin instead of using safetensor mode?
I am attempting to push a saved model inmodel-00001-of-00006.safetensorsmode, but the model gets converted topytorch_model-00001-of-00006.binbefore being saved to the hub.How can I prevent this?Here is what I am simply doing:model.push_to_hub(new_model, use_temp_dir=False)
tokenizer.push_to_hub(new_model, use_temp_dir=False)image915×278 17.1 KB
2023-09-06T10:13:58Z
cc@lysandreand@Wauplin=)
2023-09-06T11:06:37Z
Thanks for the ping. Duplicate from a github issue. See@lysandre’s answer:Why does Hugging Face's push_to_hub convert saved models to .bin instead of using safetensor mode? · Issue #25992 · huggingface/transformers · GitHub