5 ms·
That would have very slow inference latency if you had to read the model off disk for every token.
by ekelsen 5y ago
That would have very slow inference latency if you had to read the model off disk for every token.
- 1024core 5y ago540B parameters means ~1TB of floating bytes (assuming BFLOAT16). Quadruple that for other associated stuff, and you'd need a machine with 4TB of RAM.
- endisneigh 5y agoright - and even if you did run happen to have a machine with 4TB of ram - what type of latency would you have on a single machine running this as a service? how many machines would you need for google translate performance? doesn't seem like you can run this as a service, yet.
- Mehdi2277 5y agoThe total memory of the model is less important then the memory needed to compute one batch. I’ve worked with recommendation models used in serving that were 10ish terabytes. The simple trick was most of the memory was embeddings and only small subset of embeddings were needed to do inference for one batch. If you fetch those embeddings as if they were features you can run very large models on normalish compute. You never need to load the entire model to ram at once. Another trick you can use is load only some layers of the model into ram at a time (with prefetching to minimize stalls). Or if you are google enjoy that tpus have a silly amount of ram. Tpu pods have a ton of ram.