Skip to content

Commit

Permalink
Update save_load.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xin3he authored Jan 9, 2025
1 parent 1c0fabb commit c6d75da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions neural_compressor/torch/algorithms/weight_only/save_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def save(model, output_dir="./saved_results", format=SaveLoadFormat.DEFAULT, **k
# saving process
save_config_mapping(model.qconfig, qconfig_file_path)

# MethodType 'save' not in state_dict
del model.save
torch.save(model.state_dict(), qmodel_weight_file_path)

logger.info("Save quantized model weight to {}.".format(qmodel_weight_file_path))
Expand Down

0 comments on commit c6d75da

Please sign in to comment.