Empirically derived scaling laws here (5 minute mark for the spark notes, but the whole video is worth watching). This is a lay-consumable presentation. You could spend a grad program reading the papers to build up this understanding from first principles.
https://youtu.be/xJ2h3vbOag4