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

Limit of code generation #70

Open
AndreasMeyerSFDC opened this issue Jul 4, 2023 · 1 comment
Open

Limit of code generation #70

AndreasMeyerSFDC opened this issue Jul 4, 2023 · 1 comment

Comments

@AndreasMeyerSFDC
Copy link

The settings for "model.generate" in the demo script are limiting the amount of code which is generated. The current settings:

model.generate(**inputs, max_length=128)

isn't able to create a function with more than 10 lines of code. Setting a max_length of 32k or higher will increase the calc time in an exponential manner. Is there a way to just return the whole code without setting max_length? The default value for max_length is 20 ... that will only return 1 or 2 lines of code. If the model even usable for functions which are bigger than 20 - 30 lines of code?

@peppa-xyz
Copy link

I also encountered this problem, how did you solve it?

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