class_docstr: Base generative model with convenient generation API.
  
  Args:
      name (str): name of the model.
      compression_model (CompressionModel): Compression model
          used to map audio to invertible discrete representations.
      lm (LMModel): Language model over discrete representations.
      max_duration (float, optional): maximum duration the model can produce,
          otherwise, inferred from the training params.
code: def get_pretrained(name: str, device=None):
      raise NotImplementedError(
          "No base implementation for getting pretrained model"
      )
  
imports: from abc import ABC, abstractmethod
  import typing
  import omegaconf
  import torch
  from .encodec import CompressionModel
  from .lm import LMModel
  from .builders import get_wrapped_compression_model
  from ..data.audio_utils import convert_audio
  from ..modules.conditioners import ConditioningAttributes
  from ..utils.autocast import TorchAutocast
label_desc: Use image node_id 7 for calling the BaseGenModel obj's underlying member method code with example usage: obj.get_pretrained(name, device) without return types