Nvidia and other artificial intelligence companies recovered some ground on Friday after two days of heavy losses, but weekly declines remained.