ai-toolkit icon indicating copy to clipboard operation
ai-toolkit copied to clipboard

Getting Error Again and Again

Open bokachodalawdsa opened this issue 1 year ago • 3 comments

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.

bokachodalawdsa avatar Nov 01 '24 12:11 bokachodalawdsa

Did You find a fix for this

Reubencfernandes avatar Dec 09 '24 06:12 Reubencfernandes

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 **

alexandercommon avatar Jan 20 '25 19:01 alexandercommon

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 :(

faermi avatar Feb 05 '25 15:02 faermi

you need to login via CLI

huggingface-cli login

then type your HF token

fredyrivas avatar Jul 10 '25 19:07 fredyrivas