STREAM icon indicating copy to clipboard operation
STREAM copied to clipboard

Import time and huggingface hub

Open AnFreTh opened this issue 1 year ago • 1 comments

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 avatar Aug 07 '24 07:08 AnFreTh

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")

AnFreTh avatar Aug 07 '24 07:08 AnFreTh

solved with version 0.2.0 #110

AnFreTh avatar Jan 05 '25 10:01 AnFreTh