OneTrainer and HF token #937
-
I want to use onetrainer for flux Lora training. When ever I start training. This is the message I get. Any suggestions as whats wrong ? Clearing cache directory workspace-cache/run! You can disable this if you want to continue using the same cache. Traceback (most recent call last): Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Cannot access gated repo for url https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/0ef5fff789c832c5c7f4e127f94c8b54bbcced44/model_index.json. Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's a 'gated' model, so you'll need to browse to the hugginface site, make an account if you don't already have one, log in, go to the model page ( https://huggingface.co/black-forest-labs/FLUX.1-dev ) where you should see a button/link to request permission to use the model. Click it, fill in any info it requests and agree to the terms, then you should be given permission to use it. Go back to SM and try again. |
Beta Was this translation helpful? Give feedback.
Thanks for the help. I actually got what looks like the solution from the git onetrainer discussions. I had to add a new system variable called HF_TOKEN under "Variable" with my actual token string under "value". Personally I dont like using system variables, but it did seem to fix the above issue. Onetrainer still would not run, but that is another problem to be solved.