Skip to content

context : clear sets of encoder output sequence ids before storing new values #12470

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

fairydreaming
Copy link
Collaborator

This PR fixes a bug that results in accumulation of sequence ids in seq_ids_enc vector of sets when processing batches containing multiple sequences in encoder-decoder models (T5 and family). By clearing sets before storing sequence ids of current encoder output previously stored values are removed which prevents possible accumulation of sequence ids.

@fairydreaming fairydreaming merged commit 568013d into ggml-org:master Mar 19, 2025
48 checks passed
@fairydreaming fairydreaming deleted the t5-seq-ids-enc-clear branch March 22, 2025 17:47
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.

3 participants