Does a 70b LLM require more cpu power to generate tokens vs a 30b one? If they can both…
- User
Does a 70b LLM require more cpu power to generate tokens vs a 30b one? If they can both fit completely into ram without swapping
- Assistant
Yes, a 70-billion parameter language model (LLM) generally requires more CPU power to generate tokens compared to a 30-billion parameter model, even if both models fit completely into RAM without swapping. The main reasons for this are:
-
Model Size: A larger model has more parameters that need to be processed during each inference step. This increases the computational load per token generated, resulting in higher CPU usage.
-
Complexity: More parameters typically mean more complex operations are needed to compute the output, involving more matrix multiplications and other mathematical operations.
-
Memory Bandwidth: Even if both models fit into RAM, accessing and processing the additional data of the larger model consumes more bandwidth and time, adding to the computational burden.
-
Parallelization: While both models could potentially take advantage of parallel processing, the larger model might have more opportunities for optimization but also more overhead in managing and coordinating these operations.
-
- User
Is there a general guideline as to how big of a time increase you get from 9B -> 13B -> 24B -> 30B -> 70B?
- Assistant
The time increase when moving from one model size to another, such as from 9 billion to 13 billion and beyond, depends on several factors including the specific architecture of the models, the hardware used, and the implementation details of the inference process. However, there are some general considerations:
-
Complexity Growth: The time to generate tokens does not increase linearly with the number of parameters due to architectural differences and optimizations that are possible at various scales. The increase is more likely to be sub-linear relative to the number of parameters.
-