llama.cpp
646bcb0e - metal : accumulate the bf16 flash attention O in bfloat

Commit
1 day ago
metal : accumulate the bf16 flash attention O in bfloat The bf16 prefill kernel kept the O accumulator in half while Q/K/V are bfloat, which mixed the accumulator type with the operands. Accumulate in bfloat and rescale the O matrix in float, since Metal does not allow bfloat4 *= float. Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
Author
Parents
Loading