The two major components in a transformer block are attention and MLP (multi-layer perceptron).