# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input

        Args:
            input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`):
                Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you
                provide it.

                Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
                [`PreTrainedTokenizer.__call__`] for details.

                [What are input IDs?](../glossary#input-ids)
            attention_mask (`torch.Tensor` of shape `(batch_size, sequence_length)`, *optional*):
                Mask to avoid performing attention on padding token indices. Mask values selected in `[0, 1]`:

                - 1 for tokens that are **not masked**,
                - 0 for tokens that are **masked**.

                [What are attention masks?](../glossary#attention-mask)
            encoder_hidden_states (`torch.Tensor` of shape `(batch_size, encoder_sequence_length, hidden_size)`, *optional*):
                Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention
                of the decoder.
            encoder_attention_mask (`torch.LongTensor` of shape `(batch_size, encoder_sequence_length)`, *optional*):
                Mask to avoid performing cross-attention on padding tokens indices of encoder input_ids. Mask values
                selected in `[0, 1]`:

                - 1 for tokens that are **not masked**,
                - 0 for tokens that are **masked**.

                [What are attention masks?](../glossary#attention-mask)
            cache (`Cache`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`):
                It is a [`~cache_utils.Cache`] instance. For more details, see our [kv cache guide](https://huggingface.co/docs/transformers/en/kv_cache).

                Contains pre-computed hidden-states (key and values in the self-attention blocks and in the
                cross-attention blocks) that can be used (see `cache` input) to speed up sequential decoding.

                If `cache` are used, the user can optionally input only the last `decoder_input_ids` (those
                that don't have their past key value states given to this model) of shape `(batch_size, 1)` instead of
                all `decoder_input_ids` of shape `(batch_size, sequence_length)`.
            inputs_embeds (`torch.Tensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*):
                Optionally, instead of passing `input_ids` you can choose to directly pass an embedded representation.
                This is useful if you want more control over how to convert `input_ids` indices into associated vectors
                than the model's internal embedding lookup matrix.
        
=== parse google
blank_after_short_description: False
blank_after_long_description: False
style: google
- DocstringParam
  description: |
    Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you
    provide it.
    
    Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
    [`PreTrainedTokenizer.__call__`] for details.
    
    [What are input IDs?](../glossary#input-ids)
  kind: param
  key: 'param'
  arg_name: 'input_ids'
  type_name: '`torch.LongTensor` of shape `(batch_size, sequence_length)`'
  is_optional: False
- DocstringParam
  description: |
    Mask to avoid performing attention on padding token indices. Mask values selected in `[0, 1]`:
    
    - 1 for tokens that are **not masked**,
    - 0 for tokens that are **masked**.
    
    [What are attention masks?](../glossary#attention-mask)
  kind: param
  key: 'param'
  arg_name: 'attention_mask'
  type_name: '`torch.Tensor` of shape `(batch_size, sequence_length)`'
  is_optional: True
  raw_type_name: '`torch.Tensor` of shape `(batch_size, sequence_length)`, *optional*'
- DocstringParam
  description: |
    Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention
    of the decoder.
  kind: param
  key: 'param'
  arg_name: 'encoder_hidden_states'
  type_name: '`torch.Tensor` of shape `(batch_size, encoder_sequence_length, hidden_size)`'
  is_optional: True
  raw_type_name: '`torch.Tensor` of shape `(batch_size, encoder_sequence_length, hidden_size)`, *optional*'
- DocstringParam
  description: |
    Mask to avoid performing cross-attention on padding tokens indices of encoder input_ids. Mask values
    selected in `[0, 1]`:
    
    - 1 for tokens that are **not masked**,
    - 0 for tokens that are **masked**.
    
    [What are attention masks?](../glossary#attention-mask)
  kind: param
  key: 'param'
  arg_name: 'encoder_attention_mask'
  type_name: '`torch.LongTensor` of shape `(batch_size, encoder_sequence_length)`'
  is_optional: True
  raw_type_name: '`torch.LongTensor` of shape `(batch_size, encoder_sequence_length)`, *optional*'
- DocstringParam
  description: |
    It is a [`~cache_utils.Cache`] instance. For more details, see our [kv cache guide](https://huggingface.co/docs/transformers/en/kv_cache).
    
    Contains pre-computed hidden-states (key and values in the self-attention blocks and in the
    cross-attention blocks) that can be used (see `cache` input) to speed up sequential decoding.
    
    If `cache` are used, the user can optionally input only the last `decoder_input_ids` (those
    that don't have their past key value states given to this model) of shape `(batch_size, 1)` instead of
    all `decoder_input_ids` of shape `(batch_size, sequence_length)`.
  kind: param
  key: 'param'
  arg_name: 'cache'
  type_name: '`Cache`, returned when `use_cache=True` is passed or when `config.use_cache=True`'
  is_optional: True
  raw_type_name: '`Cache`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`'
- DocstringParam
  description: |
    Optionally, instead of passing `input_ids` you can choose to directly pass an embedded representation.
    This is useful if you want more control over how to convert `input_ids` indices into associated vectors
    than the model's internal embedding lookup matrix.
  kind: param
  key: 'param'
  arg_name: 'inputs_embeds'
  type_name: '`torch.Tensor` of shape `(batch_size, sequence_length, hidden_size)`'
  is_optional: True
  raw_type_name: '`torch.Tensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*'
=== detect
google
=== compose google
Args:
    input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you
        provide it.

        Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
        [`PreTrainedTokenizer.__call__`] for details.

        [What are input IDs?](../glossary#input-ids)
    attention_mask (`torch.Tensor` of shape `(batch_size, sequence_length)`, *optional*): Mask to avoid performing attention on padding token indices. Mask values selected in `[0, 1]`:

        - 1 for tokens that are **not masked**,
        - 0 for tokens that are **masked**.

        [What are attention masks?](../glossary#attention-mask)
    encoder_hidden_states (`torch.Tensor` of shape `(batch_size, encoder_sequence_length, hidden_size)`, *optional*): Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention
        of the decoder.
    encoder_attention_mask (`torch.LongTensor` of shape `(batch_size, encoder_sequence_length)`, *optional*): Mask to avoid performing cross-attention on padding tokens indices of encoder input_ids. Mask values
        selected in `[0, 1]`:

        - 1 for tokens that are **not masked**,
        - 0 for tokens that are **masked**.

        [What are attention masks?](../glossary#attention-mask)
    cache (`Cache`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`): It is a [`~cache_utils.Cache`] instance. For more details, see our [kv cache guide](https://huggingface.co/docs/transformers/en/kv_cache).

        Contains pre-computed hidden-states (key and values in the self-attention blocks and in the
        cross-attention blocks) that can be used (see `cache` input) to speed up sequential decoding.

        If `cache` are used, the user can optionally input only the last `decoder_input_ids` (those
        that don't have their past key value states given to this model) of shape `(batch_size, 1)` instead of
        all `decoder_input_ids` of shape `(batch_size, sequence_length)`.
    inputs_embeds (`torch.Tensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*): Optionally, instead of passing `input_ids` you can choose to directly pass an embedded representation.
        This is useful if you want more control over how to convert `input_ids` indices into associated vectors
        than the model's internal embedding lookup matrix.
