Fix fp6k phi3 ppl core dump (#11204)
This commit is contained in:
parent
f02f097002
commit
711fa0199e
1 changed files with 1 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ else: # ipex-llm
|
||||||
use_cache=args.use_cache, trust_remote_code=True)
|
use_cache=args.use_cache, trust_remote_code=True)
|
||||||
model = model.half()
|
model = model.half()
|
||||||
model = model.to(args.device)
|
model = model.to(args.device)
|
||||||
|
model = model.eval()
|
||||||
|
|
||||||
with open(args.data_path, "rb") as f:
|
with open(args.data_path, "rb") as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue