ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inference