The AMD job cuts will affect 4% of its workforce and help the company finance its push further into the AI chip market.