4 ms·
Would you mind sharing the calculation memory that reaches at 28 minutes (!) per token?
by rmbyrro 3y ago
Would you mind sharing the calculation memory that reaches at 28 minutes (!) per token?
- ben_w 3y agoIf your model is 170bn 4-bit parameters, you have 85 Gbytes that has to be loaded into the CPU or GPU; if those parameters are on the other side of a 400 Mbps port, that takes 85 Gbyte / 400 Mbps = 1700 seconds = 28 minutes and 20 seconds. If you don't have sufficient real RAM or VRAM, the entire model has to be re-loaded for each step of the process. Assuming no looping (looping makes it longer) and no compartmentalisation in the network structure (if you can make it so an entire fragment might be not-activated, you have the possibility of skipping loading that section; I've not heard of any architecture that does this, it would be analogous to dark silicon or to humans not using every brain cell at the same time (outside of seizures)).