Instructions to use parler-tts/parler-tts-large-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use parler-tts/parler-tts-large-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="parler-tts/parler-tts-large-v1")# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("parler-tts/parler-tts-large-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ValueError: 'dac' is already used by a Transformers config, pick another name.
#5
by tintwotin - opened
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.```
What can I do about it?
Hey @tintwotin , for now, Parler is only compatible with transformers between 4.43.0 and 4.43.3!
We'll make this compatible with the newest versions soon. In the meantime, you can do pip install transformers==4.43.3,
hope it helps