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
Qwen2AudioForConditionalGeneration ImportError
#1
by jymh - opened
I wonder the environment dependencies of running the model,I updated my packages but still encounter the import error: ImportError: cannot import name 'Qwen2AudioForConditionalGeneration' from 'transformers'.
My environment is:
python 3.12.4
transformers 4.44.0
you will need 4.45.0-dev, try pip install git+https://github.com/huggingface/transformers and if that still doesn't work, clone the repo and pip install -e .
ICYMI, it is also mentioned in the model card. we will update the instruction once the next version of transformers is released.
jklj077 changed discussion status to closed