Skip to content

Commit

Permalink
ipex backend enhancements (#272)
Browse files Browse the repository at this point in the history
Signed-off-by: Yao, Matrix <matrix.yao@intel.com>
  • Loading branch information
yao-matrix committed Sep 24, 2024
1 parent ff8375e commit b502dde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ipex_bert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ scenario:

backend:
device: cpu
no_weights: true
no_weights: false
export: true
torch_dtype: bfloat16
model: bert-base-uncased
2 changes: 1 addition & 1 deletion examples/ipex_llama.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ scenario:
backend:
device: cpu
export: true
no_weights: true
no_weights: false
torch_dtype: bfloat16
model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
1 change: 1 addition & 0 deletions optimum_benchmark/backends/ipex/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
TASKS_TO_IPEXMODEL = {
"fill-mask": "optimum.intel.IPEXModelForMaskedLM",
"text-generation": "optimum.intel.IPEXModelForCausalLM",
"feature-extraction": "optimum.intel.IPEXModel",
"text-classification": "optimum.intel.IPEXModelForSequenceClassification",
"token-classification": "optimum.intel.IPEXModelForTokenClassification",
"question-answering": "optimum.intel.IPEXModelForQuestionAnswering",
Expand Down

0 comments on commit b502dde

Please sign in to comment.