Dimensional Criticality at Grokking Across MLPs and Transformers - Databubble