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

the prompt is too long for CodeGen model #46

Open
LionLin2003 opened this issue Dec 14, 2024 · 0 comments
Open

the prompt is too long for CodeGen model #46

LionLin2003 opened this issue Dec 14, 2024 · 0 comments

Comments

@LionLin2003
Copy link

Hello, great work! When i try to reproduce the results of RepoCoder, there is an issue:
When i run the file codegen_inference.py using prompt file rg-one-gram-ws-20-ss-2.jsonl, it comes the error the current text generation call will exceed the model's predefined maximum length (2048).
I noticed that you limited the retrieval context with 1k for CodeGen model. But i think the original prompt in the file api_level_completion_1k_context_codegen.test.jsonl is too long, and it is directly concatenated to the additional retrieval context. So the total length of the input can be long as 1900+, leading to this error. How should i solve this problem? Thanks!

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

1 participant