Energy-Efficient Hardware Acceleration of Transformer-Based Models