How to tune alpha (lm_weight) and beta(word_count_weight) for our custom training set?

Hi, I have trained using custom dataset of 1000 hours. I wanted to know how are the values of lm_weight, word_count_weight and valid_word_count_weight decided/optimized?

I tend to recall that @reuben did that, he might be able to weight some knowledges :slight_smile:

They are decided/optimized by doing a search over the possible values and choosing the value that yields the best WER on the validation set.

Hello,
Can you please share the file name, path and function name where we can tune this function?
Thanks