https://reddit.com/link/17rzqfm/video/fqtexzq5fhzb1/player
Heard Apple’s working on an on-device Siri with LLMs, but these models are memory-intensive, especially for iPhone’s limited RAM. This isn’t just an Apple issue; big tech companies who want to run ML models on device, like samsung, google, meta will face same problem.
What if models could run directly from storage instead of RAM?
Samsung is onto something with their MRAM tech – it’s non-volatile, power-efficient, and can handle some Logic, AI processing. Imagine your phone running models from storage!
Not an ML expert, but this tech evolution is intriguing. is there other attempt like this?
Sure, it’s just going to generate 5 tokens per week
It will never be this bad, at most, it would be 2min / t
What if models could run directly from storage instead of RAM?
You can already do that. That’s what mmap does. It uses a file on storage as if it were RAM. It’s not speedy. Since even the fastest SSD is slow compared to RAM.
Thanks didn’t know that
Did they confirm the LLM is on device memory? That wouldn’t make much sense to me at all. Siri already takes an input and sends it to the cloud to return a response. Why wouldn’t they use the same concept and just connect LLM to the cloud to process the response then send to the phonev
I ran a 13b Q_4 on a Raspberry Pi4 8Gb with Llama.cpp with no special settings, it just automatically cashed from disk… Was mega slow and got worse with more tokens, but did it. Don’t know if it was Llama.cpp or Raspberry Pi OS that automatically cached.
You can cmake Llama.cpp on many platforms.
RAM is storage, just faster to access and write to.
Do you want it to bake cookies, too?
Spoiler alert MRAM is just RAM but more expensive. You would be better off just buying more RAM.
Ram is just faster storage.
None of that is relevant to LLMS.