Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flux training: NotImplementedError: Cannot copy out of meta tensor #477

Closed
GFY2000 opened this issue Aug 23, 2024 · 6 comments
Closed

Flux training: NotImplementedError: Cannot copy out of meta tensor #477

GFY2000 opened this issue Aug 23, 2024 · 6 comments

Comments

@GFY2000
Copy link

GFY2000 commented Aug 23, 2024

image
为什么我训练flux的lora模型时会报这个错误

@Akegarasu
Copy link
Owner

使用fp16的flux模型

@GFY2000
Copy link
Author

GFY2000 commented Aug 23, 2024

使用fp16的通量模型

好的,我试试,谢谢!

@GFY2000
Copy link
Author

GFY2000 commented Aug 23, 2024

image
请问这个我应该修改哪里

@Akegarasu
Copy link
Owner

use flux.1 dev model https://huggingface.co/black-forest-labs/FLUX.1-dev

@Akegarasu Akegarasu pinned this issue Aug 23, 2024
@Akegarasu Akegarasu changed the title 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. Flux training: NotImplementedError: Cannot copy out of meta tensor Aug 23, 2024
@GFY2000
Copy link
Author

GFY2000 commented Aug 23, 2024

好的谢谢!

Repository owner deleted a comment from shipoyewu Sep 4, 2024
Repository owner deleted a comment from maskerwen Sep 4, 2024
Repository owner deleted a comment from GFY2000 Sep 4, 2024
Repository owner deleted a comment from shipoyewu Sep 4, 2024
Repository owner locked and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants