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

Adjust padding in batch generation #2251

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaetanlop
Copy link
Contributor

What does this PR do?

Fix a bug in the batch_generation function where we try to concatenate tensors that can be of different dimensions (sequence_length) when generating with mini_batches.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
  • Did you write any new necessary tests?

Who can review?

@kashif @qgallouedec

@gaetanlop gaetanlop changed the title pad batch generation Adjust padding in batch generation Oct 18, 2024
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.

1 participant