Ali Farhadi, who returned to Ai2 as CEO in 2023, announced his decision to leave the research nonprofit Thursday.