Is your feature request related to a problem? Please describe.
The models which have been smashed with Pruna and pushed to HF Hub, they do not have explicit safetensors support. I think it would be useful to add this support to have secure model loading, prevent execution of malicious code with pickle (.pt) and faster throughput of model output. WDYT?
cc: @minettekaum
Describe the solution you'd like
Integrate Safetensors Support to save Smashed Model with Safetensors.
Additional context
I think that the support for safetensors could be added to the save.py within engine, feel free to let me know otherwise.
Is your feature request related to a problem? Please describe.
The models which have been smashed with Pruna and pushed to HF Hub, they do not have explicit safetensors support. I think it would be useful to add this support to have secure model loading, prevent execution of malicious code with pickle (.pt) and faster throughput of model output. WDYT?
cc: @minettekaum
Describe the solution you'd like
Integrate Safetensors Support to save Smashed Model with Safetensors.
Additional context
I think that the support for safetensors could be added to the save.py within engine, feel free to let me know otherwise.