feat: inline lora optimisations (#2967)

* feat: add performance loras to the end of the loras array

* fix: resolve circular dependency for unit tests

* feat: allow multiple matches for each token, optimize and extract method cleanup_prompt

* fix: update unit tests

* feat: ignore custom wildcards
This commit is contained in:
Manuel Schmid
2024-05-20 17:31:51 +02:00
committed by GitHub
parent c995511705
commit 65a8b25129
6 changed files with 93 additions and 37 deletions
+6
View File
@@ -1,5 +1,11 @@
import os
def makedirs_with_log(path):
try:
os.makedirs(path, exist_ok=True)
except OSError as error:
print(f'Directory {path} could not be created, reason: {error}')
def get_files_from_folder(folder_path, extensions=None, name_filter=None):
if not os.path.isdir(folder_path):