Modern decoder-only models keep the transformer block but change its parts: keys and values are shared between query heads, the feed-forward layer is gated, and sometimes only a few of many expert feed-forward layers run for each token.
You will pick a sharing level for a cache budget, count what sharing saves, and count the difference between the parameters a model stores and the parameters it uses for one token.