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