Accepted model_kwargs for a Huggingface model

How can I find which model_kwargs are accepted by the model? For example through trial and error I found that ‘stop’ is not supported by Salesforce/xgen-7b-8k-base

1 Like