-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
accelerate "could not configure accelerate" #1127
Comments
Had the same issue on Ubuntu 22.04 today and @dicksensei69 manual accelerate config workaround worked for me too. |
cd ~/kohya_ss/venv/bin then write ./accelerate config and it will ask you a few questions to setup your config |
Do you mean to say we should activate the venv first? or just be in the bin subdirectory when we run ./accelerate config? I am running ubuntu 22.04 on runpod. I created a username also, but i am not entirely sure this is necessary vs. using root?usually I just type 'accelerate config' without the './'. |
I tried but it didn't work. ruanliyu@ruanliyu ~ % cd ~/kohya_ss/venv/bin During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I had exactly the same fail on Debian 10 with Python-3.10.13 After this fail what you should do is:
And then answer accordingly:
NOTE: bf16 is for RTX 30XX series and higher. For anything lower you should use FP16. Hope this helps! |
If this issue happens with Python 3.11, here is my solution: huggingface/pytorch-image-models#1530 (comment) Copy of the messageSo, summary of how to apply this change (step by step) - on the example of Kohya. Specifically for those who are unfamiliar with Python :)
|
I'm on Linux Mint 21.1 with everything required installed. I get this error when I run the setup.sh
I have looked into the script it looks like there is an issue with it not meeting any of the requirements of the if statements and failing out into the cannot auto configure. I have looked into the venv for where I need to place this yaml from from config_files. But I didn't see anywhere that looked right. Can someone point me to where I need to look?
I'm sure that this has been seen a few times. I just need a little more direction on what to do to fix it.
Edit: I went into the environment
source /venv/bin/activate
and then ran theaccelerate config
myself. I gave it the values of the yaml file and then it wrote it's file to my /home/dick/.cache/huggingface/accelerate/ folder. If anyone else runs into this this should fix it. I'll have it running a little later today I think. Maybe there is an issue because of the linux mint thing instead of being on ubuntu or whatever. I know earlier when I tired to install (month ago) it was having an issue because it was finding the release name of Vera which I think is the Linux mint name for 22.04. I don't know if that is what is happening right now but just another thing.The text was updated successfully, but these errors were encountered: