class_docstr: The Mix-And-Match adapter architecture proposed by He et al. (2021). See https://arxiv.org/pdf/2110.04366.pdf.
class_docstr_tok: ["The","Mix-And-Match","adapter","architecture","proposed","by","He","et","al",".","(","2021",")",".","See","https",":","\/\/arxiv.org\/pdf\/2110.04366.pdf","."]
code: def __init__(
      self,
      prefix_tuning: Optional[PrefixTuningConfig] = None,
      adapter: Optional[BnConfig] = None,
  ):
      prefix_tuning = prefix_tuning or PrefixTuningConfig(
          bottleneck_size=800
      )
      adapter = adapter or ParBnConfig()
  
      assert isinstance(prefix_tuning, PrefixTuningConfig)
      assert isinstance(adapter, BnConfig)
      super().__init__(prefix_tuning, adapter)
  
imports: import logging
  from collections.abc import Mapping
  from dataclasses import FrozenInstanceError, asdict, dataclass, field, replace
  from typing import List, Optional, Union
  from ..utils import resolve_adapter_config
label_desc: Use image node_id 1 to create a new MAMConfig object from inherited base classes: ConfigUnion with example: obj = MAMConfig(prefix_tuning, adapter)