Instructions to use Qwen/Qwen2-Audio-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen2-Audio-7B-Instruct with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForSeq2SeqLM processor = AutoProcessor.from_pretrained("Qwen/Qwen2-Audio-7B-Instruct") model = AutoModelForSeq2SeqLM.from_pretrained("Qwen/Qwen2-Audio-7B-Instruct") - Notebooks
- Google Colab
- Kaggle
Increase `max_length` of generated output.
#24
by bezzam HF Staff - opened
Otherwise "Voice chat interface" example had following error:
ValueError: Input length of input_ids is 599, but `max_length` is set to 256. This can lead to unexpected behavior. You should consider increasing `max_length` or, better yet, setting `max_new_tokens`.
And "Audio analysis inference" example had following error:
ValueError: Input length of input_ids is 351, but `max_length` is set to 256. This can lead to unexpected behavior. You should consider increasing `max_length` or, better yet, setting `max_new_tokens`.