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

训练lora时报错 #16

Open
fallbernana123456 opened this issue Aug 6, 2024 · 1 comment
Open

训练lora时报错 #16

fallbernana123456 opened this issue Aug 6, 2024 · 1 comment

Comments

@fallbernana123456
Copy link

在V100上,由于只有1个GPU,修改配置文件use_ddp: False,运行 python train/train_personalized.py configs/training/lora_personalization.yaml
报错
File "UltraPixel-main/train/train_personalized.py", line 368, in setup_optimizers params += list(models.train_lora.module.parameters()) File "python3.10/site-packages/torch/nn/modules/module.py", line 1688, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'ModuleList' object has no attribute 'module'

configs/training/lora_personalization.yaml 看这里训练时不需要其他的模型是吧?

@catcathh
Copy link
Owner

catcathh commented Aug 8, 2024

目前训练代码只支持多卡的设定,如果要单卡训练,可能需要修改模型load的部分

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants