mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Entrypoint: Load loras after model
Prevents an error if the model isn't loaded on startup. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
10
main.py
10
main.py
@@ -513,11 +513,11 @@ def entrypoint():
|
||||
else:
|
||||
loading_bar.next()
|
||||
|
||||
# Load loras
|
||||
lora_config = get_lora_config()
|
||||
if "loras" in lora_config:
|
||||
lora_dir = pathlib.Path(unwrap(lora_config.get("lora_dir"), "loras"))
|
||||
MODEL_CONTAINER.load_loras(lora_dir.resolve(), **lora_config)
|
||||
# Load loras after loading the model
|
||||
lora_config = get_lora_config()
|
||||
if "loras" in lora_config:
|
||||
lora_dir = pathlib.Path(unwrap(lora_config.get("lora_dir"), "loras"))
|
||||
MODEL_CONTAINER.load_loras(lora_dir.resolve(), **lora_config)
|
||||
|
||||
uvicorn.run(
|
||||
app,
|
||||
|
||||
Reference in New Issue
Block a user