Skip to content

Commit

Permalink
bgem3 devices kwargs syntax error bugfix (#50)
Browse files Browse the repository at this point in the history
Closes #49

Co-authored-by: Sam Sweere <[email protected]>
  • Loading branch information
SamSweere and SamSweere authored Nov 27, 2024
1 parent 24db758 commit 91e34fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions milvus_model/hybrid/bge_m3.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ def __init__(
)

if "devices" in kwargs:
device = devices
kwargs.pop(device)
device = kwargs["devices"]
kwargs.pop("devices")

_model_config = dict(
{
"model_name_or_path": model_name,
"devices": device,
"device": device,
"normalize_embeddings": normalize_embeddings,
"use_fp16": use_fp16,
},
Expand Down

0 comments on commit 91e34fa

Please sign in to comment.