Skip to content

Commit

Permalink
add v1 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed May 26, 2024
1 parent f8a3682 commit ab6125d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/infinity_emb/infinity_emb/infinity_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ def v1(
batch_size=[batch_size],
revision=[revision], # type: ignore
trust_remote_code=[trust_remote_code],
engine=engine,
dtype=dtype,
pooling_method=pooling_method,
device=device,
engine=[engine],
dtype=[dtype],
pooling_method=[pooling_method],
device=[device],
model_warmup=[model_warmup],
vector_disk_cache=[vector_disk_cache],
lengths_via_tokenize=[lengths_via_tokenize],
Expand Down

0 comments on commit ab6125d

Please sign in to comment.