VoxtralForConditionalGeneration import error
Hi,
I use the latest codes from the main branch (install by "pip install git+https://github.com/huggingface/transformers"). When I try to import VoxtralForConditionalGeneration using "from transformers import VoxtralForConditionalGeneration", it outputs errors as below
from transformers import VoxtralForConditionalGeneration, AutoProcessor
ImportError: cannot import name 'VoxtralForConditionalGeneration' from 'transformers'
Thanks in advance.
Hey, I think you’re having an issue with your Python environment, pip might not be pointing to the same interpreter as python.
Try running which pip
and which python
(or where on Windows) to make sure they’re both pointing to the same directory.
Also, try running: pip install -U transformers
Hey, I think you’re having an issue with your Python environment, pip might not be pointing to the same interpreter as python.
Try runningwhich pip
andwhich python
(or where on Windows) to make sure they’re both pointing to the same directory.
Also, try running:pip install -U transformers
Solved. Thanks.