How to change max_length of a fine tuned model

Hello Everyone,
I trained and shared a custom model based on gpt2 and now in config.json file of my model in the Model Hub I have the max_length as 50. I don’t remember passing that number as a training argument or such. However I want to use the whole capability of gpt-2 model and generate texts of length 1024 tokens. How can I update my model on Model Hub so that it’s possible to generate longer outputs using a pipeline?
Here’s the config file of my model : config.json · YusufSahin99/IFIS_ZORK_AI_FANTASY at main

Any help would be appreciated :slight_smile: