In this study, we trained two deep learning structures, a large foundation model (Virchow, Model V) and a lightweight transformer (TinyViT, Model T), for automatic HER2 scoring in breast cancer WSIs. Here, ERBB2 is linked to breast cancer.