Skip to content
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

Keeps getting inputs too long error #34

Open
wenzhao98 opened this issue Aug 15, 2023 · 1 comment
Open

Keeps getting inputs too long error #34

wenzhao98 opened this issue Aug 15, 2023 · 1 comment

Comments

@wenzhao98
Copy link

changed embedding to hkunlp/instructor-large and using HuggingFace instead of OpenA. Keeps getting the following error:

ValueError: Error raised by inference API: Input validation error: inputs must have less than 1024 tokens. Given: 1062

I think it is due to the memory.

@costabm
Copy link

costabm commented Nov 2, 2023

Check my pull request (#45) where the "chunk_size" and "max_new_tokens", have been updated, among other improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants