[GH-ISSUE #6769] OLLAMA_FLASH_ATTENTION regression on 0.3.10? #4265

Closed
opened 2026-04-12 15:11:58 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @coodoo on GitHub (Sep 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6769

Originally assigned to: @jmorganca on GitHub.

What is the issue?

After upgrading to the latest version 0.3.10, with OLLAMA_FLASH_ATTENTION=1 set in env, seemed the tokens per second were halved, in my experiment, same code used to have tps around 23 and now it's only 11.

Wondering is there any known regression with regard to FLASH_ATTENTION?

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.3.10

Originally created by @coodoo on GitHub (Sep 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6769 Originally assigned to: @jmorganca on GitHub. ### What is the issue? After upgrading to the latest version `0.3.10`, with `OLLAMA_FLASH_ATTENTION=1` set in env, seemed the tokens per second were halved, in my experiment, same code used to have tps around 23 and now it's only 11. Wondering is there any known regression with regard to FLASH_ATTENTION? ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.3.10
GiteaMirror added the bug label 2026-04-12 15:11:58 -05:00
Author
Owner

@jmorganca commented on GitHub (Sep 12, 2024):

@coodoo is this on Apple Silicon? I'm still seeing a ~10% speedup between OLLAMA_FLASH_ATTENTION=1 and OLLAMA_FLASH_ATTENTION=0.

Also, which model are you using?

Sorry you hit this, and thanks for creating an issue!

<!-- gh-comment-id:2345316285 --> @jmorganca commented on GitHub (Sep 12, 2024): @coodoo is this on Apple Silicon? I'm still seeing a ~10% speedup between `OLLAMA_FLASH_ATTENTION=1` and `OLLAMA_FLASH_ATTENTION=0`. Also, which model are you using? Sorry you hit this, and thanks for creating an issue!
Author
Owner

@coodoo commented on GitHub (Sep 12, 2024):

Yup same M1 mac book pro, same model (gemma2-9B), same code, same test data.

I'm currently running more benchmarks to identify the root cause, hopefully something will come out! 🤞

<!-- gh-comment-id:2345321953 --> @coodoo commented on GitHub (Sep 12, 2024): Yup same M1 mac book pro, same model (`gemma2-9B`), same code, same test data. I'm currently running more benchmarks to identify the root cause, hopefully something will come out! 🤞
Author
Owner

@jmorganca commented on GitHub (Jul 23, 2025):

This should be improved but let me know if it's not

<!-- gh-comment-id:3109679707 --> @jmorganca commented on GitHub (Jul 23, 2025): This should be improved but let me know if it's not
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4265