code: def _build_model(self):
          
  
          # Set up LSTM modules
          self.lstms = nn.ModuleList(
              [
                  RNN(
                      num_classes=0,
                      num_tokens=self.word_dict.s,
                      emb_size=self.settings["emb_dim"],
                      lstm_hidden=self.settings["hidden_dim"],
                      attention=self.settings["attention"],
                      dropout=self.settings["dropout"],
                      bidirectional=self.settings["bidirectional"],
                      use_cuda=self.settings["host_device"] in self._gpu,
                  )
              ]
              * self.settings["relation_arity"]
          )
  
          if "input_dim" not in self.settings:
              raise ValueError("Model parameter input_dim cannot be None.")
  
          # Set up final linear layer
          self.sparse_linear = SparseLinear(
              self.settings["input_dim"], self.cardinality, self.settings["bias"]
          )
docs: Build the model.