class_docstr: Test agents for distilling Transformer generator models.
docstr: Check losses for a model with "wide" (DistilBART-style) distillation loss terms.
docstr_tok: ["Check","losses","for","a","model","with","``","wide","''","(","DistilBART-style",")","distillation","loss","terms","."]
code: def test_wide_distillation_losses(
      self, setup, data_regression: DataRegressionFixture
  ):
      """
      Check losses for a model with "wide" (DistilBART-style) distillation loss terms.
      """
      model_name = self._get_agents()["wide_distillation"]
      opt = Opt(
          {
              **self.BASE_OPT,
              **self._get_model_opt(),
              **self.WIDE_DISTILLATION_OPT,
              "model": f"{self.DISTILLATION_MODEL_PREFIX}:{model_name}",
          }
      )
      self._check_losses(
          opt=opt, test_name="wide", data_regression=data_regression
      )
  
imports: import random
  from abc import ABC, abstractmethod
  from math import floor, log10
  from typing import Dict
  import numpy
  import pytest
  import torch
  from pytest_regressions.data_regression import DataRegressionFixture
  import parlai.utils.testing
  from parlai.core.opt import Opt
  from parlai.core.teachers import register_teacher, DialogTeacher
  from parlai.utils.data import DatatypeHelper
  from parlai.zoo.bart.build import download
  from parlai.zoo.blender.blender_90M import download
label_desc: Use image node_id 7 for calling the AbstractTestDistillation obj's underlying member method code with example usage: obj.test_wide_distillation_losses(setup, data_regression) without return types