Better HN
topnewbestaskshowjobs
Log inSign up

keivanalizadeh

11 karma · joined Dec 20, 2023 (2y ago) · 5 submissions

Submissions

comment 2y ago · link · parent

By the time we put our paper on arxiv this paper was not out so we were not aware of, but it is similar in some ways. Both this paper and us are reliant on our previous paper https://arxiv.org/abs/2310.04564 and dejavu https://arxiv.org/abs/2310.17157.

They are targeting limited gpu memory and limit cpu to gpu memory transfer. I don't know how it could be useful on Macs because MacBooks have a unified memory and you don't need to do that transfer necessarily.

comment 2y ago · link · parent

Half the memory was just an example not a sweet spot. With smaller window sizes you can use less memory, but it will come with the cost of loading more from flash.

p.s: The window size in the paper is showing how many token's feed forward layer is in the memory.

comment 2y ago · link · parent

Yes, the goal is at the end to run larger models on the phone as phones have very limited DRAM.

comment 2y ago · link · parent

And how does mmap gonna help with the performance when the bottleneck is flash to DRAM bandwidth?

comment 2y ago · link · parent

One of the initial ideas was of course doing computation inside flash, but we didn't try to go that path for two reasons:

1. It's not as easy to change the controller, even if you do it was not obvious for me if we need for software updates at system level. In current way it is a standalone project.

2. I guess for a LLM scale flash controller chip might not be strong enough for computation. Additional hardware inside flash might be required for that.