US stocks rallied Friday, capping a week of whiplash as dip buyers scooped up some beaten down technology shares despite lingering worries about the sustainability of the artificial-intelligence boom. The S&P 500 Index was up 1.2% as of 10:53 a.m. in New York, while the Nasdaq 100 Index advanced 1.7% after US markets reopened from Thursday’s holiday. Trading will end early at 1 p.m. in New York on Friday.