Text-to-Speech
Safetensors
inf5
custom_code

NotImplementedError: Cannot copy out of meta tensor when moving model — how to resolve?

#11
by aparna29 - opened

I’m running into an issue while trying to move a model from a meta device to a specific device (like CPU/GPU). The error I get is:
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.

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

mushe bhi ye error aya hai kya karu

is there any solution for it

Yes, I have fixed it and the deal is also being run

Yes, I have fixed it and the deal is also being run

can you share the code for jupyter or colab

Bilkul bro vaise error isiliye aya hai kyu ki transformer update ho gya hai app ye librery download karlo thik ho jayega

transformers==4.50.3

okay thanks, let me check

Bilkul bro vaise error isiliye aya hai kyu ki transformer update ho gya hai app ye librery download karlo thik ho jayega

transformers==4.50.3

then also its showing error, is there any way we can connect ?

Hmm wait I will give you the full Jupiter notebook in some time

this model is not yet ready; having lot of issues as mentioned above

I used this model few days back

this model is not yet ready; having lot of issues as mentioned above

thanks bro error is solve

thanks bro error is solve

can you share the code

Hmm wait I will give you the full Jupiter notebook in some time

can you send the jupyter notebook , I have a project due

@sumitt can you please share your colab file

Publish this branch
This branch is in draft mode, publish it to be able to merge.

Sign up or log in to comment