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

truncate TLDR prompt #6

Merged
merged 1 commit into from
Nov 29, 2024
Merged

truncate TLDR prompt #6

merged 1 commit into from
Nov 29, 2024

Conversation

TideDra
Copy link
Owner

@TideDra TideDra commented Nov 29, 2024

Fix #2
Truncate the metadata of paper to fixed number of tokens (3800), so that TLDR generation will not exceed the maximum 4096 tokens. This setting fits most papers. A common paper only needs about 2000 tokens.

@TideDra TideDra merged commit c2fc4c7 into main Nov 29, 2024
1 check passed
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.

ValueError: Requested tokens (9902) exceed context window of 4096
1 participant