Meta has splashed out on star hires and infrastructure as it tries to make up ground in the artificial intelligence race