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微调 没有用peft_model包装base pre train model #277

Open
MXD6 opened this issue Nov 13, 2024 · 1 comment
Open

lora微调 没有用peft_model包装base pre train model #277

MXD6 opened this issue Nov 13, 2024 · 1 comment

Comments

@MXD6
Copy link

MXD6 commented Nov 13, 2024

LLaMA3-8B-Instruct Lora 微调
定义好lora_config后,为什么没有get_peft_model,Trainer传入的是pretrain model.

trainer = Trainer(
    model=model,
    args=args,
    train_dataset=tokenized_id,
    data_collator=DataCollatorForSeq2Seq(tokenizer=tokenizer, padding=True),
)
trainer.train()
@KMnO4-zx
Copy link
Contributor

在notebook代码演示文件中有写哦

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