Getting Error Again and Again
I am getting this error while trying to train on modal.com. I have already logged in using huggingface-cli login a thousand times and it's logged in and I have accepted the model card already. Still getting this irrirating error -
OSError: black-forest-labs/FLUX.1-dev is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with token or log in with huggingface-cli login.
Stopping app - uncaught exception raised in remote container: OSError("black-forest-labs/FLUX.1-dev is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'\nIf this is a private repository, make sure to pass a token having permission to this repo with token or log in with huggingface-cli login.").
Runner terminated.
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ black-forest-labs/FLUX.1-dev is not a local folder and is not a valid model │
│ identifier listed on 'https://huggingface.co/models' │
│ If this is a private repository, make sure to pass a token having permission │
│ to this repo with token or log in with huggingface-cli login.
Did You find a fix for this
I'm not familiar with modal.com, however be sure you installed the hugging face cli inside the virtual environment. Otherwise, it'll be like it's not even there:
source venv/bin/activate ** install and run hugging face cli **
Hey, I have the same problem! I have trained a Flux LoRa with RunPod, but I get the same error when trying to use Modal:
" black-forest-labs/FLUX.1-dev is not a local folder and is not a valid model identifier listed on │
│ 'https://huggingface.co/models' │
│ If this is a private repository, make sure to pass a token having permission to this repo with token or log in │
│ with huggingface-cli login. "
I have done the huggingface-cli login a million times, I know I can access the model in huggingface because I used it correctly with RunPod and I have copied a .env with the token justs in case in /ai-toolkit and also /ai-toolkit/config just in case
Nothing works :(
you need to login via CLI
huggingface-cli login
then type your HF token