Theory, Practice, and Future Direction of Large Language Models