AMD will invest up to $5 billion in Anthropic, while the AI startup plans to buy AMD chips starting in 2027 to expand AI computing capacity.