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

Error with accelerate site package - unknown keys #2584

Open
crotalidae75 opened this issue Jun 10, 2024 · 1 comment
Open

Error with accelerate site package - unknown keys #2584

crotalidae75 opened this issue Jun 10, 2024 · 1 comment

Comments

@crotalidae75
Copy link

I am trying to run Kohya under Linux (which I have done before successfully), but this new recent install of 24.1.4 is giving me trouble when I try to start training. I get this error complaining about Accelerate:

Traceback (most recent call last):
  File "/home/crotalus/kohya_ss/venv/bin/accelerate", line 8, in <module>
    sys.exit(main())
  File "/home/crotalus/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/accelerate_cli.py", line 47, in main
    args.func(args)
  File "/home/crotalus/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/launch.py", line 995, in launch_command
    args, defaults, mp_from_config_flag = _validate_launch_command(args)
  File "/home/crotalus/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/launch.py", line 852, in _validate_launch_command
    defaults = load_config_from_file(args.config_file)
  File "/home/crotalus/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/config/config_args.py", line 72, in load_config_from_file
    return config_class.from_yaml_file(yaml_file=config_file)
  File "/home/crotalus/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/config/config_args.py", line 148, in from_yaml_file
    raise ValueError(
ValueError: The config file at /home/crotalus/.cache/huggingface/accelerate/default_config.yaml had unknown keys (['enable_cpu_affinity']), please try upgrading your `accelerate` version or fix (and potentially remove) these keys from your config file.

I'm not really sure what to do here as I can't find much reference to this in regards to Kohya specifically. Any ideas on how to resolve this? I'm running a 4080 Super with a Ryzen 5900X, using Kubuntu 24.04. I'm also using pyenv, set to Python 3.10.14.

Admittedly, I need to delve deeper into Python...

@b-fission
Copy link
Contributor

b-fission commented Jun 10, 2024

It's throwing an error because the default_config.yaml file has an option that's not recognized. That error should go away if you delete that file, or edit the file to remove the enable_cpu_affinity line from it.

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

2 participants