Scaling Laws for Predicting Downstream Performance in LLMs