Skip to content

Commit

Permalink
convert.py: add mapping for safetensors bf16 (#1598)
Browse files Browse the repository at this point in the history
Fixes #1473
  • Loading branch information
akx authored Jul 7, 2023
1 parent 481f793 commit 3e08ae9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3e08ae9

Please sign in to comment.