fix: delete ipex extension import in ppl wikitext evaluation (#11806)
Co-authored-by: Jinhe Tang <jin.tang1337@gmail.com>
This commit is contained in:
parent
016e840eed
commit
3ac83f8396
1 changed files with 0 additions and 2 deletions
|
|
@ -38,8 +38,6 @@ args = parser.parse_args()
|
||||||
|
|
||||||
if args.precision == "fp16": # ipex fp16
|
if args.precision == "fp16": # ipex fp16
|
||||||
from transformers import AutoModelForCausalLM
|
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 = AutoModelForCausalLM.from_pretrained(args.model_path, use_cache=args.use_cache, trust_remote_code=True)
|
||||||
model = model.half()
|
model = model.half()
|
||||||
else: # ipex-llm
|
else: # ipex-llm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue