A Hybrid Early-Exit Algorithm for Large Language Models Based on Space Alignment Decoding (SPADE)