in optimum/exporters/executorch/integrations.py [0:0]
def __init__(self, model):
super().__init__()
self.model = model
self.config = model.config
# Metadata to be recorded in the pte model file
self.metadata = save_config_to_constant_methods(model.config, model.generation_config)