Skip to content

How to save the pruned model? #2

Description

@xavierdawn

After calling model = make_prune_model(model), I saved the model using both torch.save(model.state_dict(), os.path.join(pruned_path, 'pytorch_model.bin')) and model.save_pretrained(pruned_path), but it seems like the saved model is still the original one. Is this my mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions