mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-29 17:19:36 +02:00
fixes
This commit is contained in:
parent
bc2c56dfb6
commit
fb931ee4de
@ -412,7 +412,7 @@ async def embed_text(
|
|||||||
f"event=embedding_model "
|
f"event=embedding_model "
|
||||||
f"texts={len(texts)} "
|
f"texts={len(texts)} "
|
||||||
f"chars={total_chars} "
|
f"chars={total_chars} "
|
||||||
f"model={provider_type} "
|
f"model={model_name} "
|
||||||
f"gpu={gpu_type} "
|
f"gpu={gpu_type} "
|
||||||
f"elapsed={elapsed:.2f}"
|
f"elapsed={elapsed:.2f}"
|
||||||
)
|
)
|
||||||
|
@ -60,7 +60,7 @@ def _move_files_recursively(source: Path, dest: Path, overwrite: bool = False) -
|
|||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
async def lifespan(app: FastAPI) -> AsyncGenerator:
|
async def lifespan(app: FastAPI) -> AsyncGenerator:
|
||||||
gpu_type = get_gpu_type()
|
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
|
app.state.gpu_type = gpu_type
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user