mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 19:58:35 +00:00
Enable BF16 on metal. (#2380)
This commit is contained in:
@ -1409,6 +1409,7 @@ impl BackendStorage for MetalStorage {
|
||||
let name = match self.dtype {
|
||||
DType::F32 => "sgemm",
|
||||
DType::F16 => "hgemm",
|
||||
DType::BF16 => "bgemm",
|
||||
dtype => {
|
||||
return Err(MetalError::Message(format!("matmul doesn't support {dtype:?}")).into())
|
||||
}
|
||||
|
Reference in New Issue
Block a user