Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
remove the unuse code (#1549)
Browse files Browse the repository at this point in the history
Signed-off-by: Wang, Chang <[email protected]>
  • Loading branch information
changwangss authored May 17, 2024
1 parent 008492d commit 24302e5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,7 @@ def default_calib_func(model):
if config.weight_dtype not in ["nf4", "fp4", "int4_fullrange"]:
inc_model = inc_model.export_compressed_model(use_optimum_format=True)
inc_model.eval()
if config.use_ipex:
optimum_format_state_dict = inc_model.state_dict()
q_model = replace_linear(inc_model, None, None, config, device=device)
if config.use_ipex:
setattr(q_model, "optimum_format_state_dict", optimum_format_state_dict)
else:
q_model = replace_linear(
inc_model.model, None, None, config, device=device
Expand Down

0 comments on commit 24302e5

Please sign in to comment.