So I’m guessing you guys are on Windows, the EASIEST thing is in your command prompt set the environment variable HF_TOKEN and the download-model.py script will do the rest assuming you’re using oogabooga
After Token: just Right-click and yes you won’t see anything actually pasting there but it actually was pasted just due to the sensitivity of the information, it is not visible.
Hit Enter.
It will probably ask you to add the token as git credential. Press “y” or “n” according to your situation and hit enter.
Same way how arguments are passed in Linux sys.argv().
Anyways like you, I was also skeptical about keeping my key in the open, so I pasted it in a txt file and then read that line inside the load() function in string format. Works as well.
For the files:
I run into this problem (Invalid token passed!) on Debian bookworm and tried to fix the problem without any success (I have no idea about the root cause).
As a workaround I’m using Debian Bookworm which works fine.
I have no explanation for this, as I’m using the same script to set up the conda environment and installing the needed packages.