[GH-ISSUE #15012] flash streaming #56158

Open
opened 2026-04-29 10:19:52 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @sbe-arg on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15012

if anyone is keen on experimenting with mlx-flash and flash-moe to bring something like this to ollama

https://www.reddit.com/r/LocalLLaMA/comments/1s0mqto/has_anyone_tried_this_flashmoe_running_a_397b/

Originally created by @sbe-arg on GitHub (Mar 22, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15012 if anyone is keen on experimenting with mlx-flash and flash-moe to bring something like this to ollama https://www.reddit.com/r/LocalLLaMA/comments/1s0mqto/has_anyone_tried_this_flashmoe_running_a_397b/
GiteaMirror added the feature request label 2026-04-29 10:19:52 -05:00
Author
Owner

@AndrewFarley commented on GitHub (Mar 23, 2026):

10/10 would love if someone could bring this to Ollama. Please yeah, would allow for massive model usage. I've tested this myself, and it seems to work, can run a 400B model on a 32GB mac laptop with 5-6 tok/sec. While that isn't insane performance, it's basically "free" to run a massive model on an affordable piece of hardware without requiring an huge cost to build an massive multi-GPU rig. I'd love if someone can make this possible via Ollama, so we can make MoE models more accessible on the mac. So, while it's "slow" by some consideration, the speed is irrelevant when compared to the size of the models possible and the cost (and security benefits) of being able to run massive models offline/locally.

If you read/review the example repo: https://github.com/danveloper/flash-moe there's a little bit of post-processing you need to do to make it work from the downloaded models from huggingface to make this work. But, I assume that process can be done in some post-download/pre-runtime job in Ollama to prep for running this via this Flash MoE method. If anyone tries to make this work, I'd be happy to try this out. I'm subscribed to this issue, ping me. I have a handful of different Macs at my disposal, from M1's up to M4's of various RAM sizes from 32-128GB and would happily beta test.

<!-- gh-comment-id:4113430004 --> @AndrewFarley commented on GitHub (Mar 23, 2026): 10/10 would love if someone could bring this to Ollama. Please yeah, would allow for massive model usage. I've tested this myself, and it seems to work, can run a 400B model on a 32GB mac laptop with 5-6 tok/sec. While that isn't insane performance, it's basically "free" to run a massive model on an affordable piece of hardware without requiring an huge cost to build an massive multi-GPU rig. I'd love if someone can make this possible via Ollama, so we can make MoE models more accessible on the mac. So, while it's "slow" by some consideration, the speed is irrelevant when compared to the size of the models possible and the cost (and security benefits) of being able to run massive models offline/locally. If you read/review the example repo: https://github.com/danveloper/flash-moe there's a little bit of post-processing you need to do to make it work from the downloaded models from huggingface to make this work. But, I assume that process can be done in some post-download/pre-runtime job in Ollama to prep for running this via this Flash MoE method. If anyone tries to make this work, I'd be happy to try this out. I'm subscribed to this issue, ping me. I have a handful of different Macs at my disposal, from M1's up to M4's of various RAM sizes from 32-128GB and would happily beta test.
Author
Owner

@pragun-ananda commented on GitHub (Mar 24, 2026):

This is super cool, I'll try working on it!

<!-- gh-comment-id:4115721708 --> @pragun-ananda commented on GitHub (Mar 24, 2026): This is super cool, I'll try working on it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56158