瀏覽代碼

refac: cuda error gc

Timothy Jaeryang Baek 2 月之前
父節點
當前提交
35e7e07821
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/open_webui/env.py

+ 1 - 0
backend/open_webui/env.py

@@ -78,6 +78,7 @@ log.info(f"GLOBAL_LOG_LEVEL: {GLOBAL_LOG_LEVEL}")
 
 if "cuda_error" in locals():
     log.exception(cuda_error)
+    del cuda_error
 
 log_sources = [
     "AUDIO",