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

Fix vectorization of transformers models #134

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Jun 6, 2023

The vectorization of transformers models is currently broken, mostly because when we batch prompts and add for several samples at the same time the model returns a flat array that we need to reshape. I added new tests.

@rlouf rlouf merged commit 8c4fb4b into outlines-dev:main Jun 6, 2023
3 checks passed
@rlouf rlouf deleted the fix-vectorization branch June 6, 2023 15:13
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.

None yet

1 participant