qnguyen3 commited on
Commit
0e0dccc
1 Parent(s): fe32625

Update serve/builder.py

Browse files
Files changed (1) hide show
  1. 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