class_docstr: Simplified transformer wrapper.
class_docstr_tok: ["Simplified","transformer","wrapper","."]
code: def set_hardness(self, hardness: float):
      for layer in self.layers:
          if hasattr(layer, "set_hardness"):
              layer.set_hardness(hardness)
  
imports: import torch
  from transformers import PretrainedConfig, PreTrainedModel
  from transformers import AutoConfig, AutoModel, AutoModelForMaskedLM, AutoModelForSequenceClassification, AutoModelForTokenClassification
  from typing import Optional
  from omegaconf import OmegaConf
  from .fff import FFF
  from .components import _get_norm_fn, _get_nonlin_fn, EmbeddingComponent, PoolingComponent, PredictionHeadComponent, GLU, get_extended_attention_mask, _init_module
  from .attention import get_attention_mechanism
label_desc: Use image node_id 2 for calling the ScriptableLM obj's underlying member method code with example usage: obj.set_hardness(hardness) without return types