class_docstr: Config options for a GlueModel.
class_docstr_tok: ["Config","options","for","a","GlueModel","."]
code: def init_spec(cls) -> lit_types.Spec:
      return {
          "model_name_or_path": lit_types.String(
              default="bert-base-uncased",
              required=False,
          ),
          "max_seq_length": lit_types.Integer(
              default=128,
              max_val=512,
              min_val=1,
              required=False,
          ),
          "inference_batch_size": lit_types.Integer(
              default=32,
              max_val=64,
              min_val=1,
              required=False,
          ),
          "compute_grads": lit_types.Boolean(
              default=True, required=False
          ),
          "output_attention": lit_types.Boolean(
              default=True, required=False
          ),
          "output_embeddings": lit_types.Boolean(
              default=True, required=False
          ),
      }
  
imports: import os
  from collections.abc import Iterable, Sequence
  import re
  import threading
  from typing import Any, Optional
  import attr
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.examples.models import model_utils
  from lit_nlp.lib import file_cache
  from lit_nlp.lib import utils
  import numpy
  import tensorflow
  import transformers
label_desc: Use image node_id 1 for calling the GlueModelConfig obj's underlying member method code with example usage: obj.init_spec(cls) and returns: dict