code: def add_args(parser):
      RobertaModel.add_args(parser)
  
      # add args for Linformer
      parser.add_argument(
          "--compressed",
          type=int,
          help="compressed ratio of sequence length",
      )
      parser.add_argument(
          "--shared-kv-compressed",
          type=int,
          help="share compressed matrix between k and v, in each layer",
      )
      parser.add_argument(
          "--shared-layer-kv-compressed",
          type=int,
          help="share compressed matrix between k and v and across all layers",
      )
      parser.add_argument(
          "--freeze-compress",
          type=int,
          help="freeze the parameters in compressed layer",
      )
  
file_path: fairseq/examples/linformer/linformer_src/models/linformer_roberta.py
imports: import logging
  import torch
  from fairseq import utils
  from fairseq.models import register_model, register_model_architecture
  from fairseq.models.roberta import init_bert_params, roberta_base_architecture, roberta_large_architecture, RobertaEncoder, RobertaModel
  from fairseq.utils import safe_hasattr
  from ..modules.linformer_sentence_encoder import LinformerTransformerEncoder
label_desc: Use image node_id 1 for calling the LinformerModel obj's underlying member method code with example usage: obj.add_args(parser) without return types