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

微调后的checkpoint 能保存为原来的bin格式的文件吗? #36

Closed
cywjava opened this issue Mar 30, 2023 · 1 comment
Closed

Comments

@cywjava
Copy link

cywjava commented Mar 30, 2023

simple_thu_chatglm6b
微调后的checkpoint 能保存为原来的bin格式的文件吗?

@alin995
Copy link

alin995 commented Mar 30, 2023

试试下面代码:
trainer = Trainer(
model=model,
tokenizer=tokenizer,
args=args,
data_collator=data_collator,
train_dataset=tokenized_datasets["train"],
eval_dataset=tokenized_datasets["valid"],
)
trainer.train()

@cywjava cywjava closed this as completed Apr 4, 2023
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