Surging interest in artificial intelligence (AI) and cloud computing has pushed technology stocks sharply higher this year.