mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-24 17:55:50 +08:00
[Misc][MacOS] fix bfloat16 error (#18249)
Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>
This commit is contained in:
parent
87d871470d
commit
d3d91b6f71
@ -36,7 +36,7 @@ class CpuPlatform(Platform):
|
||||
# instead of checking the OS. For instance M2 shall supports bf16
|
||||
# already. But we need to modify `cpu_extension.cmake` to activate
|
||||
# the feature in the build.
|
||||
return [torch.bfloat16, torch.float32]
|
||||
return [torch.float16, torch.float32]
|
||||
# x86/aarch64 CPU has supported both bf16 and fp16 natively.
|
||||
return [torch.bfloat16, torch.float16, torch.float32]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user