Unveiling The Magic Behind GPT Models