convert.py: add mapping for safetensors bf16

Fixes #1473
This commit is contained in:
Aarni Koskela 2023-05-26 13:02:05 +03:00
parent ac7876ac20
commit f519e81995

View file

@ -739,6 +739,7 @@ def lazy_load_torch_file(outer_fp: IO[bytes], path: Path) -> ModelPlus:
SAFETENSORS_DATA_TYPES: Dict[str, DataType] = {
'BF16': DT_BF16,
'F16': DT_F16,
'F32': DT_F32,
'I32': DT_I32,