TikTok's parent company plans to spend $30 billion on AI models and chips, competing with Meta and Oracle in the global AI arms race.