fix perf test(#11295)
This commit is contained in:
parent
220151e2a1
commit
986af21896
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ def run_transformer_int4_gpu(repo_id,
|
||||||
if fp16:
|
if fp16:
|
||||||
torch_dtype = torch.float16
|
torch_dtype = torch.float16
|
||||||
else:
|
else:
|
||||||
torch_dtype = 'auto'
|
torch_dtype = torch.float32
|
||||||
st = time.perf_counter()
|
st = time.perf_counter()
|
||||||
origin_repo_id = repo_id.replace("-4bit", "")
|
origin_repo_id = repo_id.replace("-4bit", "")
|
||||||
if origin_repo_id in CHATGLM_IDS:
|
if origin_repo_id in CHATGLM_IDS:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue