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

        token_type_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
            Segment token indices to indicate first and second portions of the inputs. Indices are selected in `[0,1]`:

            - 0 corresponds to a *sentence A* token,
            - 1 corresponds to a *sentence B* token.
            This parameter can only be used when the model is initialized with `type_vocab_size` parameter with value
            >= 2. All the value in this tensor should be always < type_vocab_size.

            [What are token type IDs?](../glossary#token-type-ids)
        labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
            Labels for computing the left-to-right language modeling loss (next word prediction). Indices should be in
            `[-100, 0, ..., config.vocab_size]` (see `input_ids` docstring) Tokens with indices set to `-100` are
            ignored (masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`

        Example:

        ```python
        >>> from transformers import AutoTokenizer, RobertaPreLayerNormForCausalLM, AutoConfig
        >>> import torch

        >>> tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
        >>> config = AutoConfig.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
        >>> config.is_decoder = True
        >>> model = RobertaPreLayerNormForCausalLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40", config=config)

        >>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
        >>> outputs = model(**inputs)

        >>> prediction_logits = outputs.logits
        ```
=== parse google
short_description: 'token_type_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):'
long_description: |
      Segment token indices to indicate first and second portions of the inputs. Indices are selected in `[0,1]`:
  
      - 0 corresponds to a *sentence A* token,
      - 1 corresponds to a *sentence B* token.
      This parameter can only be used when the model is initialized with `type_vocab_size` parameter with value
      >= 2. All the value in this tensor should be always < type_vocab_size.
  
      [What are token type IDs?](../glossary#token-type-ids)
  labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
      Labels for computing the left-to-right language modeling loss (next word prediction). Indices should be in
      `[-100, 0, ..., config.vocab_size]` (see `input_ids` docstring) Tokens with indices set to `-100` are
      ignored (masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`
  
  ```python
  >>> from transformers import AutoTokenizer, RobertaPreLayerNormForCausalLM, AutoConfig
  >>> import torch
  
  >>> tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
  >>> config = AutoConfig.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
  >>> config.is_decoder = True
  >>> model = RobertaPreLayerNormForCausalLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40", config=config)
  
  >>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
  >>> outputs = model(**inputs)
  
  >>> prediction_logits = outputs.logits
  ```
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringExample
  kind: examples
  key: 'examples'
=== detect
google
=== compose google
token_type_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):

    Segment token indices to indicate first and second portions of the inputs. Indices are selected in `[0,1]`:

    - 0 corresponds to a *sentence A* token,
    - 1 corresponds to a *sentence B* token.
    This parameter can only be used when the model is initialized with `type_vocab_size` parameter with value
    >= 2. All the value in this tensor should be always < type_vocab_size.

    [What are token type IDs?](../glossary#token-type-ids)
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
    Labels for computing the left-to-right language modeling loss (next word prediction). Indices should be in
    `[-100, 0, ..., config.vocab_size]` (see `input_ids` docstring) Tokens with indices set to `-100` are
    ignored (masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`

```python
>>> from transformers import AutoTokenizer, RobertaPreLayerNormForCausalLM, AutoConfig
>>> import torch

>>> tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
>>> config = AutoConfig.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
>>> config.is_decoder = True
>>> model = RobertaPreLayerNormForCausalLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40", config=config)

>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
>>> outputs = model(**inputs)

>>> prediction_logits = outputs.logits
```

Examples:
