Around 8,000 roles are headed for the chopping block as the tech giant shifts thousands of employees into AI-focused teams.