def _get_attribute(self, config: Any, possible_names: list):
        """Retrieve an attribute from config using a list of possible names."""
        for name in possible_names:
            value = getattr(config, name, None)
            if value is not None:
                return value
        return None
Retrieve an attribute from config using a list of possible names.
llmfoundry/models/llm_embed/finetune_embedding_model.py