From d4a0b377abbd769aa719d92f4e41b75c6a626ed9 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 31 Jan 2023 21:23:16 -0300 Subject: [PATCH] Allow standalone --cpu-memory I think that what I am doing probably makes sense, but I could be wrong. --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 1407b4c7..2b49c572 100644 --- a/server.py +++ b/server.py @@ -77,7 +77,7 @@ def load_model(model_name): t0 = time.time() # Default settings - if not (args.cpu or args.load_in_8bit or args.auto_devices or args.disk or args.gpu_memory is not None): + if not (args.cpu or args.load_in_8bit or args.auto_devices or args.disk or args.gpu_memory is not None or args.cpu_memory is not None): if Path(f"torch-dumps/{model_name}.pt").exists(): print("Loading in .pt format...") model = torch.load(Path(f"torch-dumps/{model_name}.pt"))