fix perf test(#11295)

This commit is contained in:
Ruonan Wang 2024-06-13 10:35:48 +08:00 committed by GitHub
parent 220151e2a1
commit 986af21896
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -452,7 +452,7 @@ def run_transformer_int4_gpu(repo_id,
if fp16:
torch_dtype = torch.float16
else:
torch_dtype = 'auto'
torch_dtype = torch.float32
st = time.perf_counter()
origin_repo_id = repo_id.replace("-4bit", "")
if origin_repo_id in CHATGLM_IDS: