We developed two transformer-based models for automated HER2 scoring in breast cancer WSIs and demonstrated high concordance with pathologist annotations across multiple tasks. This evidence concerns the gene ERBB2 and breast cancer.