Skip to content

Commit

Permalink
only keep 1 config
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqing-feng committed Oct 31, 2024
1 parent 2b7484c commit 6380cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/intel/ipex/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ def _from_pretrained(
}

task = cls.export_feature
config.torch_dtype = torch_dtype
model = TasksManager.get_model_from_task(
task,
model_id,
Expand All @@ -240,6 +239,7 @@ def _from_pretrained(
_commit_hash=commit_hash,
**model_kwargs,
)
config = model.config
return cls(model, config=config, export=True, **kwargs)

def _save_pretrained(self, save_directory: Union[str, Path]):
Expand Down

0 comments on commit 6380cfc

Please sign in to comment.