qnguyen3 commited on
Commit
b407b6d
1 Parent(s): 701b790

Update serve/builder.py

Browse files
Files changed (1) hide show
  1. 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
- kwargs['device_map'] = {"": device}
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