src/transformers/models/gpt_neo/configuration_gpt_neo.py/GPTNeoConfig/expand_attention_types_params
class GPTNeoConfig:    def expand_attention_types_params(attention_types):
        attentions = []
        for item in attention_types:
            for _ in range(item[1]):
                attentions.extend(item[0])
        return attentions