Scaling Parameter-Constrained Language Models with Quality Data