Update serve/builder.py
Browse files- serve/builder.py +2 -2
serve/builder.py
CHANGED
@@ -13,8 +13,8 @@ def load_pretrained_model(model_path, model_base, model_name, model_type, load_8
|
|
13 |
|
14 |
kwargs = {**kwargs}
|
15 |
|
16 |
-
if device != "cuda":
|
17 |
-
|
18 |
|
19 |
if load_8bit:
|
20 |
kwargs['load_in_8bit'] = True
|
|
|
13 |
|
14 |
kwargs = {**kwargs}
|
15 |
|
16 |
+
# if device != "cuda":
|
17 |
+
# kwargs['device_map'] = {"": device}
|
18 |
|
19 |
if load_8bit:
|
20 |
kwargs['load_in_8bit'] = True
|