gitabtion / SoftMaskedBert-PyTorch

🙈 An unofficial implementation of SoftMaskedBert based on huggingface/transformers.
MIT License
93 stars 17 forks source link

CPU无法执行么? #5

Closed xyjsjruiliu closed 3 years ago

xyjsjruiliu commented 3 years ago

ruiliu@RuideMacBook-Pro SoftMaskedBert-PyTorch-main % python3.8 main.py --mode main Namespace(accumulate_grad_batches=16, batch_size=16, bert_checkpoint='bert-base-chinese', device=device(type='cpu'), epochs=10, gpu_index=0, hard_device='cpu', load_checkpoint=False, loss_weight=0.8, lr=0.0001, mode='main', model_save_path='checkpoint', warmup_epochs=8) GPU available: False, used: False TPU available: False, using: 0 TPU cores

然后程序就自动退出了,没有响应

gitabtion commented 3 years ago

这部分的日志是正常的,没有报错日志么?


发件人: Eric @.> 发送时间: 2021年4月12日 14:55 收件人: gitabtion/SoftMaskedBert-PyTorch @.> 抄送: Subscribed @.***> 主题: [gitabtion/SoftMaskedBert-PyTorch] CPU无法执行么? (#5)

ruiliu@RuideMacBook-Pro SoftMaskedBert-PyTorch-main % python3.8 main.py --mode main Namespace(accumulate_grad_batches=16, batch_size=16, bert_checkpoint='bert-base-chinese', device=device(type='cpu'), epochs=10, gpu_index=0, hard_device='cpu', load_checkpoint=False, loss_weight=0.8, lr=0.0001, mode='main', model_save_path='checkpoint', warmup_epochs=8) GPU available: False, used: False TPU available: False, using: 0 TPU cores

然后程序就自动退出了,没有响应

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/gitabtion/SoftMaskedBert-PyTorch/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYR4SFK6I3RAGH5XNWCPKTTIKKP3ANCNFSM42YUR7WQ.

LuckyyySTA commented 2 years ago

我也遇到了相同的问题,请问您解决了吗?