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

Do not import transformers at top level in Exllama2 integration #490

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Dec 29, 2023

The Exllama2 integration currently imports transformers at the top level, when it's only needed for type checking. This will raise exceptions for anyone using the library with no intention to use transformers models.

@rlouf rlouf changed the title Do not import transformers at top level Do not import transformers at top level in Exllama2 integration Dec 29, 2023
@rlouf rlouf added bug transformers Linked to the `transformers` integration labels Dec 29, 2023
@rlouf rlouf merged commit 0355ab4 into outlines-dev:main Dec 29, 2023
5 checks passed
@rlouf rlouf deleted the fix-exlama2-transformers-import branch December 29, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug transformers Linked to the `transformers` integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant