Skip to content

Commit

Permalink
change cpu to auto_round format
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhuach21 committed Jun 7, 2024
1 parent c431576 commit 7220163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/language-modeling/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def get_library_version(library_name):
compression_dtype=torch.int8, compression_dim=0, use_optimum_format=False,
device="xpu")
if "cpu" in deployment_device:
autoround.save_quantized(output_dir=f'{export_dir}-cpu', format='itrex', inplace=inplace)
autoround.save_quantized(output_dir=f'{export_dir}-cpu', format='auto_round', inplace=inplace)
if "fake" in deployment_device:
model = model.to("cpu")
model.save_pretrained(output_dir)
Expand Down

0 comments on commit 7220163

Please sign in to comment.