Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kuo (Danswer) committed Feb 8, 2025
1 parent bc2c56d commit fb931ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/model_server/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ async def embed_text(
f"event=embedding_model "
f"texts={len(texts)} "
f"chars={total_chars} "
f"model={provider_type} "
f"model={model_name} "
f"gpu={gpu_type} "
f"elapsed={elapsed:.2f}"
)
Expand Down
2 changes: 1 addition & 1 deletion backend/model_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _move_files_recursively(source: Path, dest: Path, overwrite: bool = False) -
@asynccontextmanager
async def lifespan(app: FastAPI) -> AsyncGenerator:
gpu_type = get_gpu_type()
logger.notice(f"gpu_type={gpu_type}")
logger.notice(f"Torch GPU Detection: gpu_type={gpu_type}")

app.state.gpu_type = gpu_type

Expand Down

0 comments on commit fb931ee

Please sign in to comment.