Text-to-Speech
Safetensors
inf5
custom_code

'Cannot copy out of meta tensor' error occurring when running on GPU or CPU

#12
by jatinJam - opened

NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() when moving module from meta to a different device.

use ⁣pip install transformers==4.49.0 pydub soundfile safetensors , this will fix you issue

@jatinJam For a quick start, I give you a Colab file like https://colab.research.google.com/drive/1OXG2R3-AFGTcST5nucTWoUq-ZQvtel0a?usp=sharing. In the file you have easily run the model.

Sign up or log in to comment