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

请问如何继续训练? #56

Open
sukibean163 opened this issue Oct 18, 2023 · 2 comments
Open

请问如何继续训练? #56

sukibean163 opened this issue Oct 18, 2023 · 2 comments

Comments

@sukibean163
Copy link

如题,我在train.py的pl_model = MyTransformer(**transformer_args)后面尝试加上
from deep_training.nlp.models.petl.lora.petl_model import PetlModel
PetlModel.from_pretrained(pl_model.backbone, os.path.join(output_weight_dir, "last"))
报错了。

@ssbuild
Copy link
Owner

ssbuild commented Oct 18, 2023

# pl_model.load_sft_weight('./best_ckpt/best.pt',is_trainable=True)

看下这里。lora的话, 就填写对应路径.

@sukibean163
Copy link
Author

# pl_model.load_sft_weight('./best_ckpt/best.pt',is_trainable=True)

看下这里。lora的话, 就填写对应路径.

@ssbuild 感谢,解决了,用的pl_model.load_sft_weight('./best_ckpt/last',is_trainable=True) //不加adapter_model.bin

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