1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add some low vram modes: --lowvram and --novram

This commit is contained in:
comfyanonymous
2023-02-08 11:37:10 -05:00
parent a84cd0d1ad
commit 534736b924
4 changed files with 58 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ if __name__ == "__main__":
print("\t--dont-upcast-attention\t\tDisable upcasting of attention \n\t\t\t\t\tcan boost speed but increase the chances of black images.\n")
print("\t--use-split-cross-attention\tUse the split cross attention optimization instead of the sub-quadratic one.\n\t\t\t\t\tIgnored when xformers is used.")
print()
print("\t--lowvram\t\t\tSplit the unet in parts to use less vram.")
print("\t--novram\t\t\tWhen lowvram isn't enough.")
print()
exit()
if '--dont-upcast-attention' in sys.argv: