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

Import time and huggingface hub #64

Open
AnFreTh opened this issue Aug 7, 2024 · 1 comment
Open

Import time and huggingface hub #64

AnFreTh opened this issue Aug 7, 2024 · 1 comment
Assignees

Comments

@AnFreTh
Copy link
Owner

AnFreTh commented Aug 7, 2024

Importing anything from stream_topic takes quite some time. I guess due to huggingface_hub and some downloads that are done in the background? I am not sure whether this really is the case or this simply indicates the future warning, but importing e.g. CBC takes up to a minute.

from stream_topic.models import CBC

envs\stream_topic_venv\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
@AnFreTh
Copy link
Owner Author

AnFreTh commented Aug 7, 2024

Similarly, dash gives out some warnings which we couild try and avoid:

from stream_topic.models import CBC

\envs\stream_topic_venv\lib\site-packages\dash\_jupyter.py:28: DeprecationWarning: The `ipykernel.comm.Comm` class has been deprecated. Please use the `comm` module instead.For creating comms, use the function `from comm import create_comm`.
  _dash_comm = Comm(target_name="dash")

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

No branches or pull requests

2 participants