R
Runpod17mo ago
zole2271

why it download bar does not show in some browsers. I have no idea how long will it take to download

why it download bar does not show in some browsers. I have no idea how long will it take to download
27 Replies
zole2271
zole2271OP17mo ago
in it in jypyter
digigoblin
digigoblin17mo ago
What download bar are you referring to? What were you doing?
zole2271
zole2271OP17mo ago
In jyputer notebook for loading models from huggingface ..
Madiator2011
Madiator201117mo ago
jupiter has no download progressbar
zole2271
zole2271OP17mo ago
Do you use runpod actually? or juputer? model = AutoModelForCausalLM.from_pretrained(base_model_id) This always has download bar No need to advice if you do not use it
Madiator2011
Madiator201117mo ago
I'm not sure aht package is AutoModelForCausalLM from though
zole2271
zole2271OP17mo ago
This is runpod, it is used for AI, and this is the most basic packatge there is
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
zole2271
zole2271OP17mo ago
huggingface default i did not change anything
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
zole2271
zole2271OP17mo ago
yes ok
digigoblin
digigoblin17mo ago
If you are running a python script, make sure you do
export PYTHONUNBUFFERED=1
export PYTHONUNBUFFERED=1
Before starting your Python script Otherwise output is probably being buffered and may be why you are not seeing the progress bar.
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
digigoblin
digigoblin17mo ago
Because its called python UNBUFFERED yes
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
zole2271
zole2271OP17mo ago
Not sure it is in Jyputer How do i do this command there?
digigoblin
digigoblin17mo ago
You do it from terminal What are you talking about when you say "Jupyter", that can be many different things, Jupyter Lab, a Jupyter notebook etc
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
digigoblin
digigoblin17mo ago
Thats for notebook thats why I asked what they are using
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
digigoblin
digigoblin17mo ago
Probably won't work unless its part of the same cell
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
digigoblin
digigoblin17mo ago
!python -u script.py
!python -u script.py
should do the trick -u makes output unbuffered
Madiator2011
Madiator201117mo ago
%env PYTHONUNBUFFERED=1
%env PYTHONUNBUFFERED=1
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Madiator2011
Madiator201117mo ago
I think there is no need to do that
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?