Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error Again and Again #206

Open
bokachodalawdsa opened this issue Nov 1, 2024 · 3 comments
Open

Getting Error Again and Again #206

bokachodalawdsa opened this issue Nov 1, 2024 · 3 comments

Comments

@bokachodalawdsa
Copy link

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.

@Reubencfernandes
Copy link

Did You find a fix for this

@alexandercommon
Copy link

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

@faermi
Copy link

faermi commented Feb 5, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants