Is it ok to have max_length greater than context_length of the model

Currently I am reading context length from config files of models using the following code


Is there any case where the context length will need to overwritten to a bigger value ? Will we need to increase the context window for sliding window attention while using TGI.
thank you.