Inside Meta’s scramble to catch up on AI