The push for bigger AI models, and more chips and data centers to support building them, is driving up costs for technology companies.