Skip to content

Commit

Permalink
Add support for BFLOAT16
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Aug 30, 2023
1 parent c75eabf commit 421bbb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/safetensors.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ torch_dtype_from_safe <- function(x) {
"I8" = "int8",
"I16" = "int16",
"I32" = "int32",
"I64" = "int64"
"I64" = "int64",
"BF16" = "bfloat16",
cli::cli_abort("Unsupported dtype {.val {x}}")
)
}

Expand Down

0 comments on commit 421bbb8

Please sign in to comment.