class_docstr: This is the configuration class to store the configuration of a [`AltCLIPModel`]. It is used to instantiate an
  AltCLIP model according to the specified arguments, defining the model architecture. Instantiating a configuration
  with the defaults will yield a similar configuration to that of the AltCLIP
  [BAAI/AltCLIP](https://huggingface.co/BAAI/AltCLIP) architecture.
  
  Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
  documentation from [`PretrainedConfig`] for more information.
  
  Args:
      text_config (`dict`, *optional*):
          Dictionary of configuration options used to initialize [`AltCLIPTextConfig`].
      vision_config (`dict`, *optional*):
          Dictionary of configuration options used to initialize [`AltCLIPVisionConfig`].
      projection_dim (`int`, *optional*, defaults to 768):
          Dimentionality of text and vision projection layers.
      logit_scale_init_value (`float`, *optional*, defaults to 2.6592):
          The inital value of the *logit_scale* paramter. Default is used as per the original CLIP implementation.
      kwargs (*optional*):
          Dictionary of keyword arguments.
  
  Example:
  
  ```python
  >>> from transformers import AltCLIPConfig, AltCLIPModel
  
  >>> # Initializing a AltCLIPConfig with BAAI/AltCLIP style configuration
  >>> configuration = AltCLIPConfig()
  
  >>> # Initializing a AltCLIPModel (with random weights) from the BAAI/AltCLIP style configuration
  >>> model = AltCLIPModel(configuration)
  
  >>> # Accessing the model configuration
  >>> configuration = model.config
  
  >>> # We can also initialize a AltCLIPConfig from a AltCLIPTextConfig and a AltCLIPVisionConfig
  
  >>> # Initializing a AltCLIPText and AltCLIPVision configuration
  >>> config_text = AltCLIPTextConfig()
  >>> config_vision = AltCLIPVisionConfig()
  
  >>> config = AltCLIPConfig.from_text_vision_configs(config_text, config_vision)
  ```
class_docstr_tok: ["This","is","the","configuration","class","to","store","the","configuration","of","a","[","`","AltCLIPModel","`","]",".","It","is","used","to","instantiate","an","AltCLIP","model","according","to","the","specified","arguments",",","defining","the","model","architecture",".","Instantiating","a","configuration","with","the","defaults","will","yield","a","similar","configuration","to","that","of","the","AltCLIP","[","BAAI\/AltCLIP","]","(","https",":","\/\/huggingface.co\/BAAI\/AltCLIP",")","architecture",".","Configuration","objects","inherit","from","[","`","PretrainedConfig","`","]","and","can","be","used","to","control","the","model","outputs",".","Read","the","documentation","from","[","`","PretrainedConfig","`","]","for","more","information",".","Args",":","text_config","(","`","dict","`",",","*","optional","*",")",":","Dictionary","of","configuration","options","used","to","initialize","[","`","AltCLIPTextConfig","`","]",".","vision_config","(","`","dict","`",",","*","optional","*",")",":","Dictionary","of","configuration","options","used","to","initialize","[","`","AltCLIPVisionConfig","`","]",".","projection_dim","(","`","int","`",",","*","optional","*",",","defaults","to","768",")",":","Dimentionality","of","text","and","vision","projection","layers",".","logit_scale_init_value","(","`","float","`",",","*","optional","*",",","defaults","to","2.6592",")",":","The","inital","value","of","the","*","logit_scale","*","paramter",".","Default","is","used","as","per","the","original","CLIP","implementation",".","kwargs","(","*","optional","*",")",":","Dictionary","of","keyword","arguments",".","Example",":","``","`","python",">",">",">","from","transformers","import","AltCLIPConfig",",","AltCLIPModel",">",">",">","#","Initializing","a","AltCLIPConfig","with","BAAI\/AltCLIP","style","configuration",">",">",">","configuration","=","AltCLIPConfig","(",")",">",">",">","#","Initializing","a","AltCLIPModel","(","with","random","weights",")","from","the","BAAI\/AltCLIP","style","configuration",">",">",">","model","=","AltCLIPModel","(","configuration",")",">",">",">","#","Accessing","the","model","configuration",">",">",">","configuration","=","model.config",">",">",">","#","We","can","also","initialize","a","AltCLIPConfig","from","a","AltCLIPTextConfig","and","a","AltCLIPVisionConfig",">",">",">","#","Initializing","a","AltCLIPText","and","AltCLIPVision","configuration",">",">",">","config_text","=","AltCLIPTextConfig","(",")",">",">",">","config_vision","=","AltCLIPVisionConfig","(",")",">",">",">","config","=","AltCLIPConfig.from_text_vision_configs","(","config_text",",","config_vision",")","``","`"]
docstr: Instantiate a [`AltCLIPConfig`] (or a derived class) from altclip text model configuration and altclip vision
  model configuration.
  
  Returns:
      [`AltCLIPConfig`]: An instance of a configuration object
docstr_tok: ["Instantiate","a","[","`","AltCLIPConfig","`","]","(","or","a","derived","class",")","from","altclip","text","model","configuration","and","altclip","vision","model","configuration",".","Returns",":","[","`","AltCLIPConfig","`","]",":","An","instance","of","a","configuration","object"]
code: def from_text_vision_configs(
      cls,
      text_config: AltCLIPTextConfig,
      vision_config: AltCLIPVisionConfig,
      **kwargs,
  ):
      r"""
      Instantiate a [`AltCLIPConfig`] (or a derived class) from altclip text model configuration and altclip vision
      model configuration.
  
      Returns:
          [`AltCLIPConfig`]: An instance of a configuration object
      """
  
      return cls(
          text_config=text_config.to_dict(),
          vision_config=vision_config.to_dict(),
          **kwargs,
      )
  
file_path: transformers/src/transformers/models/altclip/configuration_altclip.py
imports: import os
  from typing import Union
  from ...configuration_utils import PretrainedConfig
  from ...utils import logging
label_desc: Use image node_id 2 for calling the AltCLIPConfig obj's underlying member method code with example usage: obj.from_text_vision_configs(cls, text_config, vision_config) and returns: cls