Skip to content

Why is `pad_to_sequence_len: true recommended when using sample_packing? #1101

Closed Answered by winglian
RicardoDominguez asked this question in Q&A
Discussion options

You must be logged in to vote

This is due to the fact that feeding varying batch sizes to the gpu a ten leeds to gpu memory actually increasing from having varying lengths even though they are still smaller than a fully padded batch.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RicardoDominguez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants