convert.py: add mapping for safetensors bf16 (#1598)

Fixes #1473
This commit is contained in:
Aarni Koskela 2023-07-07 16:12:49 +03:00 committed by GitHub
parent 481f793acc
commit 3e08ae99ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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