Skip to content

Commit

Permalink
fix inc quantized model loading
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Dec 14, 2023
1 parent bcc388f commit cf7ad67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/intel/neural_compressor/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _from_pretrained(
if q_config is None:
model = model_class.from_pretrained(model_save_dir)
else:
init_contexts = [no_init_weights(_enable=True)]
init_contexts = [no_init_weights(_enable=False)]
with ContextManagers(init_contexts):
model = model_class(config)
try:
Expand Down

0 comments on commit cf7ad67

Please sign in to comment.