class_docstr: Test of DialoGPT model.
docstr: Checks that DialoGPT gets a certain performance on the integration test task.
code: def test_dialogpt(self):
      """
      Checks that DialoGPT gets a certain performance on the integration test task.
      """
      valid, test = testing_utils.train_model(
          dict(
              task="integration_tests:overfit",
              model="hugging_face/dialogpt",
              add_special_tokens=True,
              add_start_token=True,
              optimizer="adam",
              learningrate=1e-3,
              batchsize=1,
              num_epochs=100,
              validation_every_n_epochs=5,
              validation_metric="ppl",
              short_final_eval=True,
              skip_generation=True,
          )
      )
  
      self.assertLessEqual(valid["ppl"], 4.0)
      self.assertLessEqual(test["ppl"], 4.0)
  
file_path: ParlAI/tests/nightly/gpu/test_dialogpt.py
imports: import unittest
  import parlai.utils.testing
  from parlai.core.agents import create_agent
label_desc: Use image node_id 5 for calling the TestDialogptModel obj's underlying member method code with example usage: obj.test_dialogpt() without return types