-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inference kwargs #35
Comments
Hi, for the demo we use:
|
Got an error: TypeError: The current model class (LlamaModel) is not compatible with |
Have you solved it? |
i think you may use the wrong model type, for example you use AutoModel,but AutoModelForCausalLM is the correct choice |
Thanks for the great work, I reproduced the training, but at inference time tends to generate shorter text. I am using:
generated = model.generate(batch["input_ids"], max_length=512)
Does the interface on the demo web page adjust other kwargs?
Thanks
The text was updated successfully, but these errors were encountered: