Boltzmann Tuning of Generative Models