Silicon Valley rivals are forming alliances and tech executives are personally intervening amid an intense scramble for resources to fuel the artificial intelligence boom.