Skip to content

Commit

Permalink
import ipex in create_shard_model.py (#2470)
Browse files Browse the repository at this point in the history
  • Loading branch information
blzheng authored Jan 15, 2024
1 parent d4a23f6 commit 79b0e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/cpu/inference/python/llm/utils/create_shard_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import argparse

from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaTokenizer, T5ForConditionalGeneration
# Here import ipex for Baichuan loading compatibility, for other models we can ignore this import
import intel_extension_for_pytorch

# supported models
MODEL_CLASSES = {
Expand Down

0 comments on commit 79b0e6c

Please sign in to comment.