transformerlab-app
transformerlab-app copied to clipboard
Can we use HF's main progress bar to more accurately track downloads?
https://github.com/huggingface/huggingface_hub/pull/1006
Okay so I spent some time on this.
I made a child class from tqdm.auto and tried to set that using monkey_patching for huggingface_hub.file_download but that doesn't work as multiple processes start the download. I'm also not able to use this by substituting hf_hub_download with snapshot_download and giving the same class for tqdm_class as described here: https://huggingface.co/docs/huggingface_hub/v0.31.0.rc0/en/package_reference/file_download#huggingface_hub.snapshot_download