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

ValueError: 'dac' is already used by a Transformers config, pick another name. #120

Open
tin2tin opened this issue Aug 24, 2024 · 2 comments

Comments

@tin2tin
Copy link

tin2tin commented Aug 24, 2024

Running the code from the Model Card, I get this error:
ValueError: 'dac' is already used by a Transformers config, pick another name.

    from .modeling_parler_tts import (
  File "C:\Users\XXXX\AppData\Roaming\Python\Python311\site-packages\parler_tts\modeling_parler_tts.py", line 64, in <module>
    AutoConfig.register("dac", DACConfig)
  File "C:\Users\XXXX\Documents\blender-4.2.0\blender-4.2.0\4.2\python\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 1038, in register
    CONFIG_MAPPING.register(model_type, config, exist_ok=exist_ok)
  File "C:\Users\XXXX\Documents\blender-4.2.0\blender-4.2.0\4.2\python\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 737, in register
    raise ValueError(f"'{key}' is already used by a Transformers config, pick another name.")
ValueError: 'dac' is already used by a Transformers config, pick another name.```

@tin2tin
Copy link
Author

tin2tin commented Aug 25, 2024

Read somewhere that it could be related to the version of Transformers, however every version of Transformers allowed, all gave that error.

transformers>=4.43.0,<=4.43.3

I have also Bark and WhisperSpeech installed. Could there be something interfering there?

@ylacombe
Copy link
Collaborator

ylacombe commented Sep 2, 2024

Hey @tin2tin, I believe that with transformers>=4.43.0,<=4.43.3, you shouldn't have this issue

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