    def build_model(
        cls, cfg: MultiresHubertConfig, task: MultiresHubertPretrainingTask
    ):
        """Build a new model instance."""

        model = MultiresHubertModel(cfg, task.cfg, task.dictionaries)
        return model
Build a new model instance.
fairseq/models/multires_hubert/multires_hubert.py