Skip to content

Commit

Permalink
Merge pull request #7 from CLUEbenchmark/add-autorun
Browse files Browse the repository at this point in the history
Add autorun
  • Loading branch information
joytianya authored Mar 17, 2020
2 parents 56ff433 + 7c5bffe commit 1350f16
Show file tree
Hide file tree
Showing 3 changed files with 1,319 additions and 233 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ model = BertModel.from_pretrained("MODEL_NAME")
分类任务
例如:
cd CLUEPretrainedModels/baselines/models/bert
###cd CLUEPretrainedModels/baselines/models_pytorch/classifier_pytorch
3、运行对应任务的脚本(GPU方式): 会自动下载模型和任务数据并开始运行
bash run_classifier_xxx.sh
如运行 bash run_classifier_iflytek.sh 会开始iflytek任务的训练
### cd CLUEPretrainedModels/baselines/models_pytorch/classifier_pytorch
3、运行一键运行脚本(GPU方式): 会自动下载模型和所有任务数据并开始运行
bash run_classifier_clue.sh
执行该一键运行脚本将会自动下载所有任务数据,并为所有任务找到最优模型,然后测试得到提交结果
4、tpu使用方式(可选)
cd CLUEPretrainedModels/baselines/models/bert/tpu
sh run_classifier_tnews.sh即可测试tnews任务(注意更换里面的gs路径和tpu ip)。数据和模型会自动下载和上传。
Expand Down
Loading

0 comments on commit 1350f16

Please sign in to comment.