]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
convert.py: add mapping for safetensors bf16 (#1598)
authorAarni Koskela <redacted>
Fri, 7 Jul 2023 13:12:49 +0000 (16:12 +0300)
committerGitHub <redacted>
Fri, 7 Jul 2023 13:12:49 +0000 (09:12 -0400)
Fixes #1473

convert.py

index 66509b99c8f3e20ae8be38e9fb7cac2f401088ce..7a2705e5c506f20df34ea919a7e56b3b3fe98a63 100644 (file)
@@ -828,6 +828,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,