mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
editing
This commit is contained in:
parent
83ebfe349f
commit
dc82124ce6
1 changed files with 4 additions and 1 deletions
|
|
@ -785,8 +785,11 @@ async def lora_load(request: LoraLoadRequest) -> JSONResponse:
|
|||
async def lora_unload() -> JSONResponse:
|
||||
"""Unload current LoRA adapter."""
|
||||
with bridge_state.lock:
|
||||
prev = bridge_state.active_lora_path
|
||||
prev_path = bridge_state.active_lora_path
|
||||
prev_name = bridge_state.active_lora_name
|
||||
bridge_state.active_lora_path = None
|
||||
bridge_state.active_lora_name = None
|
||||
bridge_state.active_lora_id = 0
|
||||
|
||||
logger.info(f"LoRA adapter unloaded: {prev_path} ({prev_name})")
|
||||
return JSONResponse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue