R
RunPod•6mo 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
zole2271OP•6mo ago
in it in jypyter
digigoblin
digigoblin•6mo ago
What download bar are you referring to? What were you doing?
zole2271
zole2271OP•6mo ago
In jyputer notebook for loading models from huggingface ..
Madiator2011
Madiator2011•6mo ago
jupiter has no download progressbar
zole2271
zole2271OP•6mo 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
Madiator2011•6mo ago
I'm not sure aht package is AutoModelForCausalLM from though
zole2271
zole2271OP•6mo ago
This is runpod, it is used for AI, and this is the most basic packatge there is
nerdylive
nerdylive•6mo ago
Hugging face transformers or hub package? Which template or image did you use in pods?
zole2271
zole2271OP•6mo ago
huggingface default i did not change anything
nerdylive
nerdylive•6mo ago
Okay ic Oh so the default pytorch Try creating a new pod or refreshing your browser first
zole2271
zole2271OP•6mo ago
yes ok
digigoblin
digigoblin•6mo 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.
nerdylive
nerdylive•6mo ago
Why not 0 0 means it's buffered?
digigoblin
digigoblin•6mo ago
Because its called python UNBUFFERED yes
nerdylive
nerdylive•6mo ago
Ohh ok 👌
zole2271
zole2271OP•6mo ago
Not sure it is in Jyputer How do i do this command there?
digigoblin
digigoblin•6mo 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
nerdylive
nerdylive•6mo ago
What about using ! I think it works too Or %
digigoblin
digigoblin•6mo ago
Thats for notebook thats why I asked what they are using
nerdylive
nerdylive•6mo ago
!export PYTHONUNBUFFERED=1
digigoblin
digigoblin•6mo ago
Probably won't work unless its part of the same cell
nerdylive
nerdylive•6mo ago
Yeh also the python kernel seems need to be restarted
digigoblin
digigoblin•6mo ago
!python -u script.py
!python -u script.py
should do the trick -u makes output unbuffered
Madiator2011
Madiator2011•6mo ago
%env PYTHONUNBUFFERED=1
%env PYTHONUNBUFFERED=1
nerdylive
nerdylive•6mo ago
Ooh no need restart?
Madiator2011
Madiator2011•6mo ago
I think there is no need to do that
nerdylive
nerdylive•6mo ago
Ooo
Want results from more Discord servers?
Add your server