The inside story of how AI got good enough to dominate Silicon Valley