mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Model: Fix draft model loading
Use draft_config to find the path instead of kwargs. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
2
model.py
2
model.py
@@ -95,7 +95,7 @@ class ModelContainer:
|
||||
if self.draft_enabled:
|
||||
|
||||
self.draft_config = ExLlamaV2Config()
|
||||
draft_model_path = pathlib.Path(kwargs.get("draft_model_dir") or "models")
|
||||
draft_model_path = pathlib.Path(draft_config.get("draft_model_dir") or "models")
|
||||
draft_model_path = draft_model_path / draft_model_name
|
||||
|
||||
self.draft_config.model_dir = str(draft_model_path.resolve())
|
||||
|
||||
Reference in New Issue
Block a user