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

Why is the response truncated[:5]? #9

Open
wphtrying opened this issue Oct 25, 2024 · 1 comment
Open

Why is the response truncated[:5]? #9

wphtrying opened this issue Oct 25, 2024 · 1 comment

Comments

@wphtrying
Copy link

image

@zhoubiansining
Copy link
Contributor

response = get_proposal(prompt, self.propose_method, self.temperature, self.max_tokens, self.seed,
                        self.max_length,
                        self.truncation, self.do_sample, self.max_new_tokens)

The response is a list of newly generated lines. We truncate this because sometimes the model may generate too many lines for a single step. You can adjust this truncation according to your understanding.

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

No branches or pull requests

3 participants