[CI] Fix the problem of hf runner too slow (#1202)

This commit is contained in:
Ying Sheng authored and GitHub committed 2024-08-24 18:35:55 -07:00
1 parent b20daf982a
commit e61d13acdf
1 file changed
-2
-2
View File
@@ -86,7 +86,6 @@ class HFRunner:
self.tokenizer = AutoTokenizer.from_pretrained(
model_path,
torch_dtype=torch_dtype,
trust_remote_code=True,
)
self.is_generation_model = is_generation_model
@@ -96,7 +95,6 @@ class HFRunner:
model_path,
torch_dtype=torch_dtype,
low_cpu_mem_usage=True,
trust_remote_code=True,
).cuda()
else:
from sentence_transformers import SentenceTransformer