From 5390fc87c85b7200529f0a745e770e3e67930eef Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 19 Jan 2023 12:11:44 -0300 Subject: [PATCH] add auto-devices when disk is used --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 163e1e01..f4d8db5e 100644 --- a/server.py +++ b/server.py @@ -63,7 +63,7 @@ def load_model(model_name): t0 = time.time() # Default settings - if not (args.cpu or args.auto_devices or args.load_in_8bit or args.max_gpu_memory is not None): + if not (args.cpu or args.load_in_8bit or args.auto_devices or args.disk or args.max_gpu_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"))