Skip to content

Commit

Permalink
fix: delete ipex extension import in ppl wikitext evaluation (#11806)
Browse files Browse the repository at this point in the history
Co-authored-by: Jinhe Tang <[email protected]>
  • Loading branch information
cranechu0131 and JinheTang authored Aug 15, 2024
1 parent 016e840 commit 3ac83f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/llm/dev/benchmark/perplexity/run_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@

if args.precision == "fp16": # ipex fp16
from transformers import AutoModelForCausalLM
if "xpu" in args.device:
import intel_extension_for_pytorch as ipex
model = AutoModelForCausalLM.from_pretrained(args.model_path, use_cache=args.use_cache, trust_remote_code=True)
model = model.half()
else: # ipex-llm
Expand Down

0 comments on commit 3ac83f8

Please sign in to comment.