ByteDance is negotiating with Samsung to manufacture its AI chip, aiming to secure essential memory supplies amid global shortages.