Thinking Machines Lab is finalizing a 5 billion dollar funding round led by venture firm Accel. The deal values the artificial intelligence startup at 40 billion dollars, more than tripling its previous valuation despite losing one-third of its founding team.