Skip to content

Commit

Permalink
fix inc quantized model loading (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Dec 14, 2023
1 parent bcc388f commit 478ad69
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 478ad69

Please sign in to comment.