Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
268c6248
M
models
项目概览
PaddlePaddle
/
models
大约 2 年 前同步成功
通知
232
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
268c6248
编写于
12月 16, 2020
作者:
T
taixiurong
提交者:
GitHub
12月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify default xpu and gpu to false (#5074)
上级
cd646190
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
3 deletion
+9
-3
PaddleNLP/legacy/pretrain_language_models/BERT/README.md
PaddleNLP/legacy/pretrain_language_models/BERT/README.md
+7
-1
PaddleNLP/legacy/pretrain_language_models/BERT/run_classifier.py
...LP/legacy/pretrain_language_models/BERT/run_classifier.py
+2
-2
未找到文件。
PaddleNLP/legacy/pretrain_language_models/BERT/README.md
浏览文件 @
268c6248
...
@@ -202,7 +202,6 @@ DATA_PATH=/path/to/xnli/data/
...
@@ -202,7 +202,6 @@ DATA_PATH=/path/to/xnli/data/
CKPT_PATH
=
/path/to/save/checkpoints/
CKPT_PATH
=
/path/to/save/checkpoints/
python
-u
run_classifier.py
--task_name
${
TASK_NAME
}
\
python
-u
run_classifier.py
--task_name
${
TASK_NAME
}
\
--use_cuda
false
\
--use_xpu
true
\
--use_xpu
true
\
--do_train
true
\
--do_train
true
\
--do_val
true
\
--do_val
true
\
...
@@ -232,6 +231,13 @@ python -u run_classifier.py --task_name ${TASK_NAME} \
...
@@ -232,6 +231,13 @@ python -u run_classifier.py --task_name ${TASK_NAME} \
[dev evaluation] ave loss: 0.622958, ave acc: 0.770281, elapsed time: 8.946956 s
[dev evaluation] ave loss: 0.622958, ave acc: 0.770281, elapsed time: 8.946956 s
```
```
xpu训练结束后,验证集上的测试结果:
```
[dev evaluation] ave loss: 0.620479, ave acc: 0.762249, elapsed time: 70.831693 s
[test evaluation] ave loss: 0.616955, ave acc: 0.762275, elapsed time: 142.251840 s
```
### 阅读理解 SQuAD
### 阅读理解 SQuAD
下载 SQuAD 的数据以及测评脚本到
`$SQUAD_APTH`
目录。
下载 SQuAD 的数据以及测评脚本到
`$SQUAD_APTH`
目录。
...
...
PaddleNLP/legacy/pretrain_language_models/BERT/run_classifier.py
浏览文件 @
268c6248
...
@@ -100,8 +100,8 @@ run_type_g.add_arg("profiler_path", str, './', "the profiler o
...
@@ -100,8 +100,8 @@ run_type_g.add_arg("profiler_path", str, './', "the profiler o
run_type_g
.
add_arg
(
"is_profiler"
,
int
,
0
,
"the profiler switch. (used for benchmark)"
)
run_type_g
.
add_arg
(
"is_profiler"
,
int
,
0
,
"the profiler switch. (used for benchmark)"
)
run_type_g
.
add_arg
(
"max_iter"
,
int
,
0
,
"the max batch nums to train. (used for benchmark)"
)
run_type_g
.
add_arg
(
"max_iter"
,
int
,
0
,
"the max batch nums to train. (used for benchmark)"
)
run_type_g
.
add_arg
(
"use_cuda"
,
bool
,
Tru
e
,
"If set, use GPU for training."
)
run_type_g
.
add_arg
(
"use_cuda"
,
bool
,
Fals
e
,
"If set, use GPU for training."
)
run_type_g
.
add_arg
(
"use_xpu"
,
bool
,
Tru
e
,
"If set, use XPU for training."
)
run_type_g
.
add_arg
(
"use_xpu"
,
bool
,
Fals
e
,
"If set, use XPU for training."
)
run_type_g
.
add_arg
(
"use_fast_executor"
,
bool
,
False
,
"If set, use fast parallel executor (in experiment)."
)
run_type_g
.
add_arg
(
"use_fast_executor"
,
bool
,
False
,
"If set, use fast parallel executor (in experiment)."
)
run_type_g
.
add_arg
(
"shuffle"
,
bool
,
True
,
""
)
run_type_g
.
add_arg
(
"shuffle"
,
bool
,
True
,
""
)
run_type_g
.
add_arg
(
"num_iteration_per_drop_scope"
,
int
,
1
,
"Ihe iteration intervals to clean up temporary variables."
)
run_type_g
.
add_arg
(
"num_iteration_per_drop_scope"
,
int
,
1
,
"Ihe iteration intervals to clean up temporary variables."
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录