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