Like its hyperscaler peers, the social media juggernaut is sparing no expense to become a leader in artificial intelligence.