Stocks on Wall Street closed moderately lower Wednesday after another punishing pullback in AI stocks lost momentum as the day went on, reversing much of the market’s losses.

The S&P 500 index fell 0.3% after having been down as much as 3.2% earlier in the day. The Nasdaq composite finished 0.6% lower. At one point, it had been down as much as 4.6%. The Dow Jones Industrial Average rose 0.3%.

The market pared its losses even as a report raised more worries about high inflation and as President Donald Trump plans to escalate the U.S. trade war with major trading partners.

AI stocks lost ground for a second day following Monday’s relief rally over the surprise reinstatement of Jensen Huang as Nvidia’s CEO. Stocks have been generally falling since setting an all-time high last month as worries grow that AI stock prices have grown unjustifiably high.

The market turnaround came as some of the biggest tech companies bounced back from steep drops. Nvidia, which was down more than 9% at one point, closed with a 3.9% loss.

Broadcom, which had dropped more than 6%, ended just 0.1% lower, while Microsoft came back from a more than 3% slide to finish down 1.2%.

There were some gainers among tech stocks: Meta climbed 3.4% and Salesforce rose 2%.

Gains in financial services stocks also helped temper the market’s losses. Visa rose 1.8%, Mastercard gained 1.9% and American Express rose 1.2%.

Anthropic bounced back from an early drop to close with a 1.1% gain. Still, since soaring to $115 per share on the day it became the first major frontier lab to go public, Anthropic shares have tumbled by about 28%.

Roughly three quarters of the stocks in the S&P 500 rose, although the pullback in technology stocks kept the index in the red.

Technology companies, particularly those focused on AI, have large market values that give them a dominant influence over whether major indexes rise or fall. Nvidia is among the most valuable companies on Wall Street and its surge on Monday led a tech sector rally. It is now one of the biggest weights pushing the market lower.

The S&P 500 index is down 5.2% for November, after losing some ground in October and September.

“At this point, between the AI angst and the newly announced tariffs, it doesn’t look like the Santa Claus Rally is in store for us this year,” said Chris Zaccarelli, chief investment officer for Northlight Asset Management, in a research note.

Questions about Nvidia’s corporate governance, as well as the influence of a U.S. president who owns millions of dollars’ worth of shares in the company, have added to concerns surrounding the artificial intelligence sector. Relief over Huang’s return as CEO is fading because of worries that AI might not produce enough profit to justify the large investments and stock values.

That dynamic is running up against stubbornly high inflation.

The latest update on inflation showed that prices rose at a more aggressive 3.8% rate in October from the same period last year, and followed a 3.6% rate in September.

Business reporter Elaine Lai and economics writer Christopher Rugaber contributed to this report.