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

group_texts function: Why? #15

Open
HossamAmer12 opened this issue Oct 20, 2024 · 1 comment
Open

group_texts function: Why? #15

HossamAmer12 opened this issue Oct 20, 2024 · 1 comment

Comments

@HossamAmer12
Copy link

There is a data function called group_texts.
I understand that this function concatenates the texts and creates blocks of text with specific block size.
I wish to understand why you do so? Why not padding to a specific tokenizer max length for a rect tensor?
Could you please explain why you opted for this way?

@urialon
Copy link
Collaborator

urialon commented Oct 20, 2024 via email

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