Merge branch 'main' into bugfix/use-cu117-wheel

This commit is contained in:
Eugene Brodsky 2023-02-03 23:13:22 -05:00 committed by GitHub
commit fcd9b813e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -355,7 +355,10 @@ class InvokeAiInstance:
ext = "bat" if OS == "Windows" else "sh"
for script in ["invoke", "update"]:
#scripts = ['invoke', 'update']
scripts = ['invoke']
for script in scripts:
src = Path(__file__).parent / "templates" / f"{script}.{ext}.in"
dest = self.runtime / f"{script}.{ext}"
shutil.copy(src, dest)

View File

@ -847,7 +847,7 @@ class Generate:
# the model cache does the loading and offloading
cache = self.model_manager
if not cache.valid_model(model_name):
raise KeyError('** "{model_name}" is not a known model name. Cannot change.')
raise KeyError(f'** "{model_name}" is not a known model name. Cannot change.')
cache.print_vram_usage()