Spaces:
Runtime error
Runtime error
Update mplug_docowl/model/builder.py
Browse files
mplug_docowl/model/builder.py
CHANGED
@@ -39,7 +39,8 @@ def load_pretrained_model(model_path, model_base, model_name, load_8bit=False, l
|
|
39 |
bnb_4bit_quant_type='nf4'
|
40 |
)
|
41 |
else:
|
42 |
-
kwargs['torch_dtype'] = torch.float16
|
|
|
43 |
if 'paperowl' or 'docowl' in model_name.lower():
|
44 |
if model_base is not None:
|
45 |
# this may be mm projector only
|
|
|
39 |
bnb_4bit_quant_type='nf4'
|
40 |
)
|
41 |
else:
|
42 |
+
# kwargs['torch_dtype'] = torch.float16
|
43 |
+
kwargs['torch_dtype'] = torch.bfloat16
|
44 |
if 'paperowl' or 'docowl' in model_name.lower():
|
45 |
if model_base is not None:
|
46 |
# this may be mm projector only
|