[CI/Build] Simplify model loading for HfRunner (#5251)
This commit is contained in:
@ -28,7 +28,7 @@ def test_models(
|
||||
model: str,
|
||||
dtype: str,
|
||||
) -> None:
|
||||
hf_model = hf_runner(model, dtype=dtype)
|
||||
hf_model = hf_runner(model, dtype=dtype, is_embedding_model=True)
|
||||
hf_outputs = hf_model.encode(example_prompts)
|
||||
del hf_model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user