Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 223447f

Browse files
committedJan 30, 2024
fix
1 parent 20df723 commit 223447f

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed
 

‎optimum/intel/ipex/inference.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,13 @@
3636
IPEXOPTForCausalLM,
3737
IPEXGPTBigCodeForCausalLM,
3838
IPEXModelForQuestionAnswering,
39+
_MODEL_TYPE_TO_AUTOMODELS,
3940
)
4041

4142

4243
from .utils import _HEAD_TO_AUTOMODELS
4344

4445

45-
_MODEL_TYPE_TO_AUTOMODELS = {
46-
"bloom": IPEXBloomForCausalLM,
47-
"mpt": IPEXMPTForCausalLM,
48-
"opt": IPEXOPTForCausalLM,
49-
"big_code": IPEXGPTBigCodeForCausalLM,
50-
}
51-
52-
5346
logger = logging.getLogger(__name__)
5447

5548
IPEX_NOT_AVAILABLE_ERROR_MSG = (

‎optimum/intel/ipex/modeling_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,5 +600,5 @@ def prepare_inputs_for_generation(self, input_ids, past_key_values=None, **kwarg
600600
"bloom": IPEXBloomForCausalLM,
601601
"mpt": IPEXMPTForCausalLM,
602602
"opt": IPEXOPTForCausalLM,
603-
"big-code": IPEXGPTBigCodeForCausalLM,
603+
"gpt-bigcode": IPEXGPTBigCodeForCausalLM,
604604
}

‎tests/ipex/test_modeling.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_pipeline(self, model_arch):
199199
class IPEXModelForCausalLMTest(unittest.TestCase):
200200
SUPPORTED_ARCHITECTURES = (
201201
"bart",
202-
# "gpt_bigcode",
202+
"gpt_bigcode",
203203
"blenderbot",
204204
"blenderbot-small",
205205
"bloom",

0 commit comments

Comments
 (0)
Please sign in to comment.