Nvidia's shares rallied around 6% to hit a record high on Tuesday, leaving the AI chipmaker's stock market value about $100 billion away from overtaking Apple in a major reshuffle of Wall Street's biggest players.

Last trading at $1,128, Nvidia's market capitalization reached $2.8 trillion, compared to a market value of $2.9 trillion for Apple, which is Wall Street's second-most valuable company after Microsoft.

Its stock surged as much as 8% to $1,149.39 during the session, an intra-day record high. Apple's stock was down 0.2% in afternoon trading.