Solving Empirical Bayes via Transformers