docstr: Model depends on pipeline paralellism.
docstr_tok: ["Model","depends","on","pipeline","paralellism","."]
code: def model_provider_func(self, pre_process=True, post_process=True):
      """Model depends on pipeline paralellism."""
      model = LatentDiffusionEdit(
          cfg=self.cfg, model_parallel_config=self.model_parallel_config
      )
      return model
  
file_path: NeMo/nemo/collections/multimodal/models/text_to_image/instruct_pix2pix/ldm/ddpm_edit.py
imports: import torch
  from einops import rearrange
  from nemo.collections.multimodal.data.instruct_pix2pix.edit_dataset import EditDataset
  from nemo.collections.multimodal.models.text_to_image.stable_diffusion.ldm.ddpm import LatentDiffusion, MegatronLatentDiffusion
  from nemo.collections.nlp.data.language_modeling.megatron.data_samplers import MegatronPretrainingRandomSampler, MegatronPretrainingSampler
  from nemo.utils import logging
label_desc: Use image node_id 1 for calling the MegatronLatentDiffusionEdit obj's underlying member method code with example usage: obj.model_provider_func(pre_process, post_process) and returns: model