Skip to content

Commit

Permalink
BUG: 🐛 fix unable launch qwen2-embedding (#2185)
Browse files Browse the repository at this point in the history
Co-authored-by: 胡子俊 <[email protected]>
  • Loading branch information
Zzzz1111 and zzzz199605 authored Aug 29, 2024
1 parent b91aae8 commit de80532
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xinference/model/embedding/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,15 @@ def __init__(
model_path: str,
model_spec: EmbeddingModelSpec,
device: Optional[str] = None,
**kwargs,
):
self._model_uid = model_uid
self._model_path = model_path
self._device = device
self._model = None
self._counter = 0
self._model_spec = model_spec
self._kwargs = kwargs

def load(self):
try:
Expand Down

0 comments on commit de80532

Please sign in to comment.