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

bert模型可以用cpu训练吗? #125

Closed
JoyeeL opened this issue Nov 2, 2020 · 1 comment
Closed

bert模型可以用cpu训练吗? #125

JoyeeL opened this issue Nov 2, 2020 · 1 comment
Assignees

Comments

@JoyeeL
Copy link

JoyeeL commented Nov 2, 2020

No description provided.

@guoshengCS
Copy link
Collaborator

guoshengCS commented Nov 3, 2020

可以的,如果是使用这里的代码进行fine-tuning,运行时传入--use_cuda False就可以了 https://github.com/PaddlePaddle/models/blob/release/1.8/PaddleNLP/pretrain_language_models/BERT/run_classifier.py#L103 ,但是相比GPU训练会慢的多

@ZeyuChen ZeyuChen transferred this issue from PaddlePaddle/models Mar 11, 2021
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

3 participants