class_docstr: This is the configuration class to store the configuration of a [`RobertaModel`] or a [`TFRobertaModel`]. It is
  used to instantiate a RoBERTa 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 RoBERTa
  [roberta-base](https://huggingface.co/roberta-base) architecture.
  
  Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
  documentation from [`PretrainedConfig`] for more information.
  
  The [`RobertaConfig`] class directly inherits [`BertConfig`]. It reuses the same defaults. Please check the parent
  class for more information.
  
  Examples:
  
  ```python
  >>> from transformers import RobertaConfig, RobertaModel
  
  >>> # Initializing a RoBERTa configuration
  >>> configuration = RobertaConfig()
  
  >>> # Initializing a model (with random weights) from the configuration
  >>> model = RobertaModel(configuration)
  
  >>> # Accessing the model configuration
  >>> configuration = model.config
  ```
class_docstr_tok: ["This","is","the","configuration","class","to","store","the","configuration","of","a","[","`","RobertaModel","`","]","or","a","[","`","TFRobertaModel","`","]",".","It","is","used","to","instantiate","a","RoBERTa","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","RoBERTa","[","roberta-base","]","(","https",":","\/\/huggingface.co\/roberta-base",")","architecture",".","Configuration","objects","inherit","from","[","`","PretrainedConfig","`","]","and","can","be","used","to","control","the","model","outputs",".","Read","the","documentation","from","[","`","PretrainedConfig","`","]","for","more","information",".","The","[","`","RobertaConfig","`","]","class","directly","inherits","[","`","BertConfig","`","]",".","It","reuses","the","same","defaults",".","Please","check","the","parent","class","for","more","information",".","Examples",":","``","`","python",">",">",">","from","transformers","import","RobertaConfig",",","RobertaModel",">",">",">","#","Initializing","a","RoBERTa","configuration",">",">",">","configuration","=","RobertaConfig","(",")",">",">",">","#","Initializing","a","model","(","with","random","weights",")","from","the","configuration",">",">",">","model","=","RobertaModel","(","configuration",")",">",">",">","#","Accessing","the","model","configuration",">",">",">","configuration","=","model.config","``","`"]
docstr: Constructs RobertaConfig.
docstr_tok: ["Constructs","RobertaConfig","."]
code: def __init__(
      self, pad_token_id=1, bos_token_id=0, eos_token_id=2, **kwargs
  ):
      """Constructs RobertaConfig."""
      super().__init__(
          pad_token_id=pad_token_id,
          bos_token_id=bos_token_id,
          eos_token_id=eos_token_id,
          **kwargs,
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/src/transformers/models/roberta/configuration_roberta.py
imports: from collections import OrderedDict
  from typing import Mapping
  from ...onnx import OnnxConfig
  from ...utils import logging
  from ..bert.configuration_bert import BertConfig
label_desc: Use image node_id 1 to create a new RobertaConfig object from inherited base classes: BertConfig with example: obj = RobertaConfig(pad_token_id, bos_token_id, eos_token_id)