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

Get rid of the transformers warning #37

Closed
vasinov opened this issue May 15, 2023 · 1 comment · Fixed by #63
Closed

Get rid of the transformers warning #37

vasinov opened this issue May 15, 2023 · 1 comment · Fixed by #63
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@vasinov
Copy link
Member

vasinov commented May 15, 2023

Any time Griptape is run, the following warning from the transformers library is displayed:

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

We need to get rid of it either by disabling it at the library level of importing transformers lazily in tokenizers and prompt drivers.

@vasinov vasinov added bug Something isn't working good first issue Good for newcomers labels May 15, 2023
@collindutter
Copy link
Member

I think this is roughly the change that needs to be made:

from transformers import logging

logging.set_verbosity_error()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants