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

Fix the logic for perplexity evaluation (Not enough kv_cache capacity to run generation. Please use a larger sequence_length or a shorter prompt) #1633

Closed
wants to merge 8 commits into from

Conversation

dbogunowicz
Copy link
Contributor

No description provided.

Copy link
Contributor

@bfineran bfineran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this may be out of date or not ready to merge @dbogunowicz?

@@ -165,6 +166,7 @@ def run_perplexity(
return_input_tokens=True,
)
else:
print(len(pipeline.tokenizer(batch[0]).input_ids))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug?

pipeline.sequence_length - pipeline.prompt_sequence_length - 1
)
# account for potential additional BOS token
breakpoint()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug?

@dbogunowicz
Copy link
Contributor Author

Closing, due to inactivity.

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

Successfully merging this pull request may close these issues.

2 participants