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

User Warning Transformer with Torch #13475

Open
hdaipteam opened this issue May 3, 2024 · 1 comment
Open

User Warning Transformer with Torch #13475

hdaipteam opened this issue May 3, 2024 · 1 comment
Labels
feat / transformer Feature: Transformer feat / ux Feature: User experience, error messages etc.

Comments

@hdaipteam
Copy link

How to reproduce the behaviour

nlp = spacy.load("en_core_web_sm")

Your Environment

  • Operating System: Ubuntu 22.04
  • Python Version Used: 3.11
  • spaCy Version Used: 3.7.2 - latest / 4.0.0-dev
  • Environment Information: IPyNotebook

I cought the warning if I am loading the pre-defined model in both version of SpaCy Latest / Dev

python3.11/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(

@jefhil
Copy link

jefhil commented May 9, 2024

I assume this is harmless but users see warnings like this and get worried. Any idea when this warning will go away?

@svlandeg svlandeg added feat / ux Feature: User experience, error messages etc. feat / transformer Feature: Transformer labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / transformer Feature: Transformer feat / ux Feature: User experience, error messages etc.
Projects
None yet
Development

No branches or pull requests

3 participants