src/transformers/models/realm/modeling_realm.py/RealmForOpenQA/searcher_beam_size
class RealmForOpenQA:    def searcher_beam_size(self):
        if self.training:
            return self.config.searcher_beam_size
        return self.config.reader_beam_size