Spaces:
Running
on
Zero
Running
on
Zero
Update serve/builder.py
Browse files- serve/builder.py +2 -1
serve/builder.py
CHANGED
@@ -109,5 +109,6 @@ def load_pretrained_model(model_path, model_base, model_name, model_type, load_8
|
|
109 |
|
110 |
if model.generation_config.pad_token_id is None:
|
111 |
model.generation_config.pad_token_id = model.generation_config.eos_token_id
|
112 |
-
|
|
|
113 |
return tokenizer, model, image_processor, context_len
|
|
|
109 |
|
110 |
if model.generation_config.pad_token_id is None:
|
111 |
model.generation_config.pad_token_id = model.generation_config.eos_token_id
|
112 |
+
|
113 |
+
model.to('cuda')
|
114 |
return tokenizer, model, image_processor, context_len
|