ValueError: numpy.dtype size changed while using ChatterboxTTS and Transformers
#19
by
sharvanc
- opened
I’m trying to test it out in Google Colab (tried in both T4 GPU and CPU runtime), and I’m getting the following error:
RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback):
numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
(attached screenshot)
same error.. stuck in there
Found Solution in colab ..
freshly run this 1st ...
!pip install chatterbox-tts -q
!pip install --upgrade --force-reinstall numpy transformers
!pip install numpy==1.26.4 --force-reinstall
then runtime restart popup will come , restart , then run the model ..
import torchaudio as ta
from chatterbox.tts import ChatterboxTTS
from IPython.display import Audio
model = ChatterboxTTS.from_pretrained(device="cuda")