CUDA: enable Gemma FA for HIP/Pascal (#9581)
This commit is contained in:
parent
ecd5d6b65b
commit
a5b57b08ce
3 changed files with 12 additions and 12 deletions
|
@ -314,7 +314,7 @@ void ggml_cuda_flash_attn_ext(ggml_backend_cuda_context & ctx, ggml_tensor * dst
|
|||
}
|
||||
|
||||
if (!fast_fp16_available(cc)) {
|
||||
if (Q->ne[1] <= 8) {
|
||||
if (Q->ne[1] <= 8 || Q->ne[0] == 256) {
|
||||
ggml_cuda_flash_attn_ext_vec_f32(ctx, dst);
|
||||
} else {
|
||||
ggml_cuda_flash_attn_ext_tile_f32(ctx, dst);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue