Skip to content

Commit

Permalink
Merge pull request #105 from michaelfeil/ci-fixes
Browse files Browse the repository at this point in the history
fix: cli start
  • Loading branch information
michaelfeil authored Feb 19, 2024
2 parents 8bb9d24 + 6858402 commit a0815f9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libs/infinity_emb/infinity_emb/infinity_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
OpenAIModelInfo,
RerankInput,
)
from infinity_emb.inference import (
DeviceTypeHint,
)
from infinity_emb.inference import Device, DeviceTypeHint
from infinity_emb.inference.caching_layer import INFINITY_CACHE_VECTORS
from infinity_emb.log_handler import UVICORN_LOG_LEVELS, logger
from infinity_emb.transformer.utils import InferenceEngineTypeHint
from infinity_emb.transformer.utils import InferenceEngine, InferenceEngineTypeHint


def create_server(
Expand Down Expand Up @@ -244,10 +242,10 @@ def _start_uvicorn(
batch_size=batch_size,
revision=revision,
trust_remote_code=trust_remote_code,
engine=engine, # type: ignore
engine=InferenceEngine[engine.value], # type: ignore
model_warmup=model_warmup,
vector_disk_cache_path=vector_disk_cache_path,
device=device, # type: ignore
device=Device[device.value], # type: ignore
lengths_via_tokenize=lengths_via_tokenize,
)

Expand Down

0 comments on commit a0815f9

Please sign in to comment.