[Bugfix][Harmless] Fix float16 dtype for model_is_embedding (#7566)

This commit is contained in:
Michael Goin 2024-08-15 21:26:19 -04:00 committed by GitHub
parent 21313e09e3
commit 9c8e2d1161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ def model_is_embedding(model_name: str, trust_remote_code: bool) -> bool:
tokenizer_mode="auto",
trust_remote_code=trust_remote_code,
seed=0,
dtype="float16").embedding_mode
dtype="auto").embedding_mode
@asynccontextmanager