class_docstr: Base class that models the architecture of an adapter fusion layer.
class_docstr_tok: ["Base","class","that","models","the","architecture","of","an","adapter","fusion","layer","."]
docstr: Loads a given adapter fusion configuration specifier into a full AdapterFusionConfig instance.
  
  Args:
      config (Union[dict, str]): The configuration to load. Can be either:
  
          - a dictionary representing the full config
          - an identifier string available in ADAPTERFUSION_CONFIG_MAP
          - the path to a file containing a full adapter fusion configuration
  
  Returns:
      dict: The resolved adapter fusion configuration dictionary.
docstr_tok: ["Loads","a","given","adapter","fusion","configuration","specifier","into","a","full","AdapterFusionConfig","instance",".","Args",":","config","(","Union","[","dict",",","str","]",")",":","The","configuration","to","load",".","Can","be","either",":","-","a","dictionary","representing","the","full","config","-","an","identifier","string","available","in","ADAPTERFUSION_CONFIG_MAP","-","the","path","to","a","file","containing","a","full","adapter","fusion","configuration","Returns",":","dict",":","The","resolved","adapter","fusion","configuration","dictionary","."]
code: def load(cls, config: Union[dict, str], **kwargs):
      """
      Loads a given adapter fusion configuration specifier into a full AdapterFusionConfig instance.
  
      Args:
          config (Union[dict, str]): The configuration to load. Can be either:
  
              - a dictionary representing the full config
              - an identifier string available in ADAPTERFUSION_CONFIG_MAP
              - the path to a file containing a full adapter fusion configuration
  
      Returns:
          dict: The resolved adapter fusion configuration dictionary.
      """
      # currently storing AdapterFusion weights on AdapterHub is not supported.
      config_dict = resolve_adapter_config(
          config,
          local_map=ADAPTERFUSION_CONFIG_MAP,
          try_loading_from_hub=False,
      )
      # convert back to dict to allow attr overrides
      if isinstance(config_dict, AdapterFusionConfig):
          config_dict = config_dict.to_dict()
      config_dict.update(kwargs)
      return AdapterFusionConfig.from_dict(config_dict)
  
file_path: adapters/src/adapters/configuration/adapter_fusion_config.py
imports: from dataclasses import dataclass
  from typing import Union
  from ..utils import resolve_adapter_config
  from .adapter_config import AdapterConfig
label_desc: Use image node_id 1 for calling the AdapterFusionConfig obj's underlying member method code with example usage: obj.load(cls, config) and returns: AdapterFusionConfig