Nvidia has ​invested $2 billion in Marvell Technology as part of efforts ​to make it easier for customers to use the custom artificial intelligence chips that the smaller company designs with Nvidia’s networking gear and central processors.