forked from PaddlePaddle/PaddleNLP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support WikiText & Lambada (PaddlePaddle#7079)
* Support WikiText & Lambada * Support WikiText & Lambada * update
- Loading branch information
Showing
2 changed files
with
416 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
## 数据准备 | ||
``` | ||
wget https://paddlenlp.bj.bcebos.com/data/benchmark/lambada_test.jsonl | ||
``` | ||
``` | ||
wget https://paddlenlp.bj.bcebos.com/data/benchmark/wikitext-103.tar.gz | ||
``` | ||
``` | ||
wget https://paddlenlp.bj.bcebos.com/data/benchmark/wikitext-2.tar.gz | ||
``` | ||
|
||
## 运行预测脚本 | ||
|
||
验证Lambada数据集,运行以下脚本: | ||
``` | ||
python eval.py \ | ||
--model_name_or_path /path/to/your/model \ | ||
--batch_size 4 \ | ||
--eval_path /path/to/your/dataset/lambada_test.jsonl \ | ||
--tensor_parallel_degree 1 \ | ||
--cloze_eval | ||
``` | ||
|
||
验证WikiText数据集,运行以下脚本: | ||
``` | ||
python eval.py \ | ||
--model_name_or_path /path/to/your/model \ | ||
--batch_size 4 \ | ||
--eval_path /path/to/your/dataset/wikitext-103/wiki.valid.tokens \ | ||
--tensor_parallel_degree 1 | ||
``` |
Oops, something went wrong.