ms-swift icon indicating copy to clipboard operation
ms-swift copied to clipboard

AttributeError: 'OmniSpeech2SLlamaForCausalLM' object has no attribute '_get_logits_warper'. Did you mean: '_get_logits_processor'?

Open satheeshkola-532 opened this issue 1 year ago • 2 comments

when i tried to infer the llama-omni s2s language model, getting the following error on giving the audio input, also same thing happend when tried using code.

AttributeError: 'OmniSpeech2SLlamaForCausalLM' object has no attribute '_get_logits_warper'. Did you mean: '_get_logits_processor'?

image (7)

satheeshkola-532 avatar Oct 05 '24 12:10 satheeshkola-532

Please try lowering the transformers version, e.g. 4.44.

Jintao-Huang avatar Oct 05 '24 12:10 Jintao-Huang

Please try lowering the transformers version, e.g. 4.44.

thank you, that error resolved but i am facing another issue which is that it's giving blank response as show in the image(even though i tried with the given examples), please let me know if there's any way to solve it and also i would like to get the python script to inference using swift, thank you! omni

satheeshkola-532 avatar Oct 05 '24 14:10 satheeshkola-532

Please try lowering the transformers version, e.g. 4.44.

thank you, that error resolved but i am facing another issue which is that it's giving blank response as show in the image(even though i tried with the given examples), please let me know if there's any way to solve it and also i would like to get the python script to inference using swift, thank you! omni

@Jintao-Huang Any update on this issue?

satheeshkola-532 avatar Oct 08 '24 06:10 satheeshkola-532

let me check. The holiday has just ended.

Jintao-Huang avatar Oct 08 '24 08:10 Jintao-Huang

fixed

Jintao-Huang avatar Oct 08 '24 16:10 Jintao-Huang

@Jintao-Huang > fixed

thank you @Jintao-Huang , it is generating text responses only on giving audio input but not both the text response and audio output ? Actually llama omni model generates both text and audio responses simultaneously right? Is there any way to achieve this?

satheeshkola-532 avatar Oct 09 '24 02:10 satheeshkola-532