The cuts come as Meta has been pouring billions of dollars into AI