code: def to_dict(self):
      config = {}
      if self.rope_scaling:
          config["rope_scaling"] = self.rope_scaling.to_dict()
      if self.neftune_noise_alpha:
          config["neftune_noise_alpha"] = self.neftune_noise_alpha
      return config
  
file_path: ludwig/ludwig/schema/llms/model_parameters.py
imports: from typing import Optional
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.error import ConfigValidationError
  from ludwig.schema import utils
  from ludwig.schema.utils import ludwig_dataclass
label_desc: Use image node_id 1 for calling the ModelParametersConfig obj's underlying member method code with example usage: obj.to_dict() and returns: config