Modal Labs, a startup specializing in AI inference infrastructure, is in the process of raising a new round at a valuation of about $2.5 billion, according to four people with knowledge of the deal.