    def build_model(self, args: Namespace, from_checkpoint=False):
        """
        Build the :class:`~fairseq.models.BaseFairseqModel` instance for this
        task.

        Args:
            args (argparse.Namespace): parsed command-line arguments

        Returns:
            a :class:`~fairseq.models.BaseFairseqModel` instance
        """
        from fairseq import models, quantization_utils

        model = models.build_model(args, self, from_checkpoint)
        model = quantization_utils.quantize_model_scalar(model, args)
        return model
Build the :class:`~fairseq.models.BaseFairseqModel` instance for this
task.

Args:
args (argparse.Namespace): parsed command-line arguments

Returns:
a :class:`~fairseq.models.BaseFairseqModel` instance
fairseq/tasks/fairseq_task.py