Skip to content

[FEATURE] Add Safetensors Support for Saving Smashed Models #632

@ParagEkbote

Description

@ParagEkbote

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions