Meta, looking to diversify beyond Nvidia, bets big on AMD chips, with a chance to invest in the company.