-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
isin() received an invalid combination of arguments #31040
Comments
@pseudotensor hi! Can you share a minimal reproducible code? If you're calling the |
+1 |
@zucchini-nlp I have the same issue. This is effectively what I am doing: model_name = 'xtts-v2'
prompt = 'This is a test prompt'
config = XttsConfig()
# Load the configuration from the model's config.json file
config.load_json(path)
model = Xtts.init_from_config(config)
model.load_checkpoint(
config, checkpoint_dir=checkpoint_dir, eval=True
)
gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(
audio_path=samples
)
gen = model.inference_stream(
prompt,
language=language,
gpt_cond_latent=gpt_cond_latent,
speaker_embedding=speaker_embedding,
)
for chunk in gen:
print(chunk) |
I opened idiap/coqui-ai-TTS#31 in our Coqui fork. This is due to the XTTS streaming code modifying |
@eginhard Are you aware of an older version of |
Anything below 4.41.0 should work. I've just released |
No problem, I patched coqui too to handle https://github.com/h2oai/h2ogpt/blob/main/docs/xtt.patch |
same issue |
Can anyone share a minimal script to reproduce which would not depend much on external libraries? That would help us a lot to solve the issue if it still persists But I believe this is issue from TTS library as calling the bare |
@binhoul Could you mention whether you're using the original repo or our fork? The former is expected to be broken. The fork should currently work with @zucchini-nlp Yes, the TTS library essentially reimplements |
@eginhard i see, please lmk you have any ideas how we can help the TTS libraries to be more robust and use Feel free to go to the issue and comment any ideas/requests you might have :) |
Thanks for the pointer! More flexible streaming outputs already seem to be part of the plan, so that should work for Coqui TTS. |
System Info
4.41.0
python 3.10
Who can help?
@ArthurZucker @gante
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
This change: 7130a22
Here:
https://github.com/huggingface/transformers/blob/main/src/transformers/generation/utils.py#L486-L493
is leading to alot of different software to fail with the below error:
A work-around patch is:
E.g. Coqui XTT (no longer maintained) fails like this without the above patch.
What is going on?
Expected behavior
No failure. I expect a Number (as it says is allowed) to be converted properly to a tensor on same device so no failure.
The text was updated successfully, but these errors were encountered: