Automatic compilation in generate: do not rely on inner function (#34923)
* compiled forward in PreTrainedModel
* update
* style
* update name
* trigger CIs
* Add way to use custom compile args
* style
* switch parameterization to generation_config
* Add to inits
* Update configuration_utils.py
* inits
* style
* docs
* style
* Update configuration_utils.py
* back without dataclass for repo consistency
* Update configuration_utils.py
* style
* style
* style once again
* add config serialization
* update
* true dataclass
* trigger CIs
* merge compile methods + remove serialization of compile config