Jack Ma-backed Ant Group Co. used Chinese-made semiconductors to develop techniques for training AI models that would cut costs by 20%, according to people familiar with the matter.