mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -206,7 +206,7 @@ def update_reranking_model(
|
|||||||
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||||
self.ckpt = Checkpoint(
|
self.ckpt = Checkpoint(
|
||||||
get_model_path(name, auto_update),
|
get_model_path(name, auto_update),
|
||||||
colbert_config=ColBERTConfig(),
|
colbert_config=ColBERTConfig(model_name=name),
|
||||||
).to(self.device)
|
).to(self.device)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user