Accelerate CPU based LLM Inference with a Vector Index on the Output Embeddings (up to 28% for llama 3.2 1B)
The input and output embedding layers of transformer-based LLMs are massive. For example, GPT-2's embeddings make up 38.5M out of 124M total parameters.
martinloretz.com