Spaces:
Running
on
Zero
Running
on
Zero
Update serve/builder.py
Browse files- serve/builder.py +1 -1
serve/builder.py
CHANGED
@@ -11,7 +11,7 @@ def load_pretrained_model(model_path, model_base, model_name, model_type, load_8
|
|
11 |
if model_type not in {'qwen1.5-1.8b', 'qwen1.5-0.5b'}:
|
12 |
raise ValueError(f"Unknown Model Type {model_type}")
|
13 |
|
14 |
-
kwargs = {
|
15 |
|
16 |
if device != "cuda":
|
17 |
kwargs['device_map'] = {"": device}
|
|
|
11 |
if model_type not in {'qwen1.5-1.8b', 'qwen1.5-0.5b'}:
|
12 |
raise ValueError(f"Unknown Model Type {model_type}")
|
13 |
|
14 |
+
kwargs = {**kwargs}
|
15 |
|
16 |
if device != "cuda":
|
17 |
kwargs['device_map'] = {"": device}
|