Not able to download Model not showing progress bar when downloading using from_pretrained
I’m trying to download blip2 in colab local runtime and while the model is downloading and it’s showing in the cache, it’s not showing any progress bar. I wonder why?image1136×203 11.2 KB
2024-09-24T13:15:14Z
image1620×721 15.3 KBhere’s a clearer picture
2024-09-24T13:42:38Z
No tqdm in there…no way.Sorry to be so vague, but even when I’m making things for myself, it kind of comes and goes…progress bar. I’m not aware of having changed anything in particular.
2024-09-29T01:42:16Z
Update: I ended up downloading the model through command line instead of colab and the progress bar did show up. Tdqm is installed so I guess it’s something with colab or my jupyter installation
2024-09-29T01:44:41Z
The model worked just fine in local runtime as in hosted runtime so I don’t even know
2024-09-29T06:38:40Z
Well, I guess I’m just glad it’s not a VM-specific problem with HF.I’m not sure if it’s a VM-wide problem, or if Colab and HF’s settings happen to be broken in the same way, or if any of the libraries in the dependencies are the culprit…Personally, I suspect one of the libraries, because even if we limit it to HF’s Gradio’s Spaces, the progress bar may or may not show up depending on the Spaces.There are too many libraries that I use regularly to know which one it is.
2024-10-04T10:12:25Z
new update: after switching from python 3.10.6 to 3.11.9 the progress bars appeared, just there is a warning for IProgress which I guess makes the progress bar green in colab hosted runtime
2024-10-04T10:31:58Z
The Python version I’m using is generally local 3.9, HF Spaces default 3.10, but the progress bar comes and goes.If it just doesn’t appear in older versions, it could be a bug caused by using a syntax in the library that is not supported in older versions of Python…I wonder if it’s a dependency with some other library that isn’t tqdm? In any case, I think it’s a bug in the sense that the library creator didn’t expect it to work the way it does.There is no boundary between a bug, a specification, and normal operation…A program only works as written if you’re lucky.@WauplinI’m contacting you because I wonder if the download progress display from HF in from_pretrained is also under the jurisdiction of HF Hub. I don’t know who to report it to.This isnot a serious bug per se, but the scope of the potential impact is unknown.