Last week, Nvidia—whose processors are a key driver of the AI wave—became the world’s first publicly traded company to hit $4 trillion in market value.