yujun
2c92c543f2
Merge branch 'develop' into ppdiffusers
2022-11-10 15:22:57 +08:00
gongenlei
a85212ed00
[New Features] Add FID score ( #3685 )
...
* add fid
* update doc
* update import
* add code annotation
* update docs
* add hack for bn
2022-11-10 15:01:25 +08:00
westfish
6f71c7cf5e
PIL.Image.LANCZOS adapt to different version
2022-11-10 06:47:46 +00:00
chenxiaozeng
767d3552e3
Update doc ( #3711 )
...
* add online course info
* add online course info
* update group code
2022-11-10 11:42:02 +08:00
Jiaqi Liu
feb9d8296b
Add onnx_format arg for Compression API ( #3696 )
...
* update compress api
* remove uie compress in md
2022-11-09 15:26:52 +08:00
westfish
00ae25bf35
add ldm superresolution
2022-11-09 07:07:45 +00:00
yujun
e97f670440
support EulerAncestralDiscreteScheduler ( #3708 )
2022-11-08 20:59:25 +08:00
Yam
6289d9c0d3
add Codegen output & loss ( #3465 )
2022-11-08 19:59:44 +08:00
Sijun He
7b4cf36b90
Add Chinese and English version of CODE_OF_CONDUCT.md ( #3687 )
...
* add CoC
* rename
* v2.1
2022-11-08 19:07:50 +08:00
骑马小猫
a50fbbcc30
[BugFix] fix astype error when dynamic-to-static mode ( #3701 )
...
* fix astype warning
* update model_utils for dynamic-to-static
* add comment & imporve Makefile
2022-11-08 18:58:28 +08:00
yujun
9e2a0a8a9f
[ppdiffusers] add text_to_image_laion400m example ( #3693 )
...
* add text_to_image_laion400m
* add write_filelist
2022-11-08 14:56:58 +08:00
wawltor
f74de55082
fix the taskflow skep large model ( #3695 )
2022-11-07 21:37:07 +08:00
BinChen
e785bb1163
box2example ori_boxes+ ( #3677 )
...
Co-authored-by: x-shadow-man <1494445739@qq.com >
2022-11-07 10:32:14 +08:00
yujun
ce31a77f90
[PPDiffusers] Fix ppdiffusers bug and support ZH stablediffusion ( #3663 )
...
* fix win download bug, etc
* add attention mask support zh model
* pad to max length
* update NEG_NF
* update diffusers readme
* fix windows download
* fix windows download
2022-11-06 16:49:04 +08:00
sserdoubleh
58a5a9dcfd
Fix FT malloc size for beam search. ( #3662 )
...
Co-authored-by: liu zhengxi <380185688@qq.com >
2022-11-04 19:28:09 +08:00
wawltor
6387410b5a
Update README.md
2022-11-04 18:29:38 +08:00
Yam
1a53c35887
Add Unimo output loss ( #3676 )
2022-11-04 16:48:47 +08:00
Yam
fd6ef4058e
Revert "Unimo output loss ( #3450 )" ( #3673 )
...
This reverts commit 6471ce331a .
2022-11-04 16:09:39 +08:00
gongenlei
1f2b2c5d58
fix download url ( #3670 )
2022-11-04 11:10:40 +08:00
gongenlei
7b6454908a
Rm debug info ( #3667 )
...
* rm debug info
* rm unused import
2022-11-03 19:19:07 +08:00
Jiaqi Liu
02b4383b7e
Fix UIE README ( #3665 )
...
* fix uie reamde
* test=document_fix
2022-11-03 17:27:04 +08:00
Yam
6471ce331a
Unimo output loss ( #3450 )
2022-11-03 15:51:11 +08:00
Jiaqi Liu
61acf19460
Fix UIE eval ( #3653 )
...
* fix uie eval
* fix debug mode
2022-11-03 14:22:15 +08:00
Sijun He
c38902e3a8
Adding inputs_embeds argument and switch to paddle.nn.TransformerEncoder for Electra models ( #3401 )
...
* add inputs_embeds input arguments to all electra models
* save past_key_value for next PR
* remove unused input_shape
* fix yapf style check
* address comments
* fix style
* fix unit test
* address comment
Co-authored-by: Guo Sheng <guosheng@baidu.com >
Co-authored-by: 骑马小猫 <1435130236@qq.com >
2022-11-03 13:33:09 +08:00
ymyjl
1fc23a8888
[Tutorial] Add torch migration tutorial ( #3641 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-11-03 10:42:47 +08:00
骑马小猫
afeb623588
[BugFix] fix typo ( #3651 )
...
* fix typo
* revert scripts
* remove torch description
2022-11-02 20:27:12 +08:00
w5688414
ff546f6d9a
Fix FAQ docx ui upload parsing support and reformat docx.py ( #3645 )
...
* Fix FAQ docx ui upload parsing support and reformat docx.py
* Add more comments
* Optimize concatenate texts
2022-11-02 17:48:12 +08:00
gongenlei
81bb7d1433
Fix download url on Windows ( #3640 )
...
* add pegasus
* rm debug info
* fix decode
* update pegasus
* add faster pegasus
* refactor unimotext summary
* add pegasus summary app
* add requirements
* add pegasus to taskflow
* support inference and deploy
* add FG perf and sample
* update taskflow
* add docs
* rm ProcessInfo.json
* update export model
* update serving doc and shell
* update unimo-text doc
* docs: FasterTransformer-->FasterGeneration
* update docs
* fix: url is error when windows download community model
Co-authored-by: 骑马小猫 <1435130236@qq.com >
2022-11-02 17:23:02 +08:00
chenxiangzhen
6eb6937b69
Update predict.py ( #3602 )
...
Delete unnecessary package
Co-authored-by: w5688414 <w5688414@gmail.com >
2022-11-02 16:54:29 +08:00
westfish
228c58a494
fix bug about template 3 ( #3646 )
2022-11-02 16:00:06 +08:00
Jiaqi Liu
e94af7978a
Add compression for UIE ( #3496 )
...
* add compression for uie
* update uie readme
* update reamde, recover evaluate.py
* fix resource check
* fix qat ernie-m
* requirement
* update
* update
* delete export_model.py
* delete model export in readme
* set start_positions and end_positions to default for UIE
2022-11-02 14:23:01 +08:00
WangZhen
83a9c3893a
[TIPC]Add transformer_big_bs4096 static .sh ( #3622 )
...
* Add transformer_big_bs4096 static .sh
* Format shell
2022-11-01 15:43:58 +08:00
lugimzzz
bdd659d266
add bad case analysis for text classification ( #3385 )
...
* bad case analysis
2022-11-01 09:43:32 +08:00
lugimzzz
b52c2ea5d2
add soft link from examples to application ( #3587 )
2022-10-31 20:56:46 +08:00
骑马小猫
2483d4fb85
[Bug fix] update the name of pypi server ( #3627 )
...
* update yaml
* update yaml scripts
* deploy dev version
* remove test pypi
* update name of pypi
2022-10-31 20:41:31 +08:00
骑马小猫
7bc85cdfb2
[Bug Fix] update pypi workflow ( #3626 )
...
* update yaml
* update yaml scripts
* deploy dev version
* remove test pypi
2022-10-31 19:30:47 +08:00
骑马小猫
513a8328d9
update yaml ( #3621 )
2022-10-31 17:14:08 +08:00
骑马小猫
3e2ddd182c
[NewFeature] add ppdiffusers CD workflow ( #3604 )
...
* add ppdiffusers version control
* add ppdiffusers version control
* enable should deploy checking
* revert pipeline ui changes
* ignore version file
* 🔥 update version to 0.6.2
* gi
* bump version
* upate
* deploy package to testpypi
* re-trigger the ci
2022-10-31 16:44:34 +08:00
WangZhen
b90ed42dff
Add bs5120 for transformer big tipc config ( #3600 )
2022-10-31 14:40:56 +08:00
Linjie Chen
b705fa481d
Support finetune for uie-m ( #3227 )
...
* support finetune for uie-m
* update
* Update utils.py
* support finetune and evaluate for en model
2022-10-31 11:11:20 +08:00
lastrei
cf478ba6ee
fix typos ( #3607 )
...
Co-authored-by: Linjie Chen <40840292+linjieccc@users.noreply.github.com >
2022-10-31 10:15:43 +08:00
Wang-ck123
9eda9a46c4
Fix docs ( #3409 )
...
设置return_dict=False后才能使用idx下标,否则无法使用,运行报错。
2022-10-30 00:56:24 +08:00
chenxiaozeng
1f88c41d14
add PPDiffusers info in README. ( #3608 )
...
add PPDiffusers info in README.
2022-10-29 14:50:51 +08:00
liu zhengxi
7f650ac0ca
fix missing comma ( #3606 )
2022-10-28 19:51:34 +08:00
骑马小猫
b6c3589ea6
add bert config solution ( #3174 )
...
* add bert config solution
* change num_labels to num_classes
* add unittest for configuration
* update bert model
* update bert config
* update bert test modeling
* update test modeling
* update bert testing and model
* add roberta config
* update bert config
* upate bert-modeling
* update bert modeling
* update code style
* remove unrelated codes
* fix community related code
* update pretrained config
* update configuration name
* add compatibility codes
* add automodel test & improve downstream model test
* remove parse_args & kwargs
* update roberta & bert
* add warning for only-one weight file
* use config to init BertEmbedding & BertPooler
this change will be upgraded when TinyBertConfig is completed
* fix codestyle
* 调整bert pretrained
* use attribute to access the value
* remove ignored keys on loading
* fix stub file bug & add use_cache to configuration_utils
* fix roberta pretrain
* upgrade the docs and extension of import_utils
* fix default value of `use_cache`
* update type hinting
* update docstring of BertForXXX model
* update warning string
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-10-28 19:30:18 +08:00
吴高升
c2e1dc4852
Fix the file upload multiple times of Pipelines ( #3568 )
2022-10-28 17:19:06 +08:00
yujun
1c5e127866
[PPDiffusers] rename ppdiffusers ( #3601 )
...
* rename ppdiffusers
* rename diffusers_paddle
2022-10-28 16:52:59 +08:00
Roc
c8bc4405fc
[MOE] use adamw from paddle.optimizer ( #3598 )
2022-10-28 14:51:31 +08:00
westfish
05e7432ef7
update PaddleNLP v2.4.2 readme.md ( #3597 )
...
* update readme
* update readme.md
* update
2022-10-28 14:34:26 +08:00
liu zhengxi
d390dc95e8
Lift restrictions to support more d_inner_hid ( #3592 )
...
* lift restrictions
* code style
* add state_dict
2022-10-28 13:59:01 +08:00
WangZhen
b262611f37
[TIPC]Fix dy2st tipc gpt 8 error ( #3586 )
...
* Fix dy2st tipc gpt 8 error
* Fix transformer benchmark dy2st config error
Co-authored-by: yujun <50394665+JunnYu@users.noreply.github.com >
2022-10-28 13:05:32 +08:00
feifei-111
78c8615791
Added 4 scripts for benchmark ( #3585 )
2022-10-28 09:56:59 +08:00
yujun
16aa2ba5b1
[WIP] Add diffusers_paddle ( #3445 )
...
* add paddle version diffusers
* add examples but need to test them
* support download from bos
* update diffusers according to https://github.com/JunnYu/diffusers/pull/1
* install & test text_invert dreambooth etc
* update examples and test pass
* add textual_inversion readme and update text to image readme
* update examples
* update https://github.com/JunnYu/diffusers/pull/2
* fix a small bug
* import bug
* fix missing seqlen
* _diffusers_paddle_version
* fix bug
* https://github.com/JunnYu/diffusers/pull/3
* update docs, add dreambooth readme, fix bug
* dreambooth support save every 500 step
* update onnx
* update
* type paramaters
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-10-27 17:15:39 +08:00
liu zhengxi
21345f8d2e
Fix some unit tests' issue ( #3553 )
2022-10-27 16:20:56 +08:00
gongenlei
c9c5c15a66
Add pegasus ( #3275 )
...
* add pegasus
* rm debug info
* fix decode
* update pegasus
* add faster pegasus
* refactor unimotext summary
* add pegasus summary app
* add requirements
* add pegasus to taskflow
* support inference and deploy
* add FG perf and sample
* update taskflow
* add docs
* rm ProcessInfo.json
* update export model
* update serving doc and shell
* update unimo-text doc
* docs: FasterTransformer-->FasterGeneration
* update docs
Co-authored-by: 骑马小猫 <1435130236@qq.com >
2022-10-27 15:11:51 +08:00
westfish
d57e350f9e
Merge pull request #3560 from westfish/qg-example
...
add qg models and update readme
2022-10-27 13:14:45 +08:00
westfish
295d68e940
Merge branch 'develop' into qg-example
2022-10-27 11:59:12 +08:00
lugimzzz
947007f552
fix dead link in text classification ( #3566 )
2022-10-27 11:44:01 +08:00
westfish
14c934c1a1
update readme
2022-10-27 03:19:10 +00:00
westfish
e98231f911
add unimo-large/without-template result
2022-10-27 03:15:10 +00:00
Zhong Hui
d1506f8a38
Update modeling.py ( #3559 )
2022-10-27 10:52:43 +08:00
westfish
94864bc48e
rename v2.pdparams to full_domain.pdparams
2022-10-26 12:04:29 +00:00
吴高升
b0f7650ecf
Add GIF visualization for pipeline examples ( #3561 )
2022-10-26 19:47:01 +08:00
westfish
cd5a2e35a6
update readme
2022-10-26 11:27:33 +00:00
westfish
91d5c527dd
update taskflow.md and unimo-text/readme.md
2022-10-26 10:21:13 +00:00
westfish
fca7ca25da
update taskflow
2022-10-26 09:55:09 +00:00
westfish
b0ba2e1e79
add qg models and update readme
2022-10-26 09:40:05 +00:00
Chenxiao Niu
553ba12211
[MLU] add transformer config support. ( #3541 )
2022-10-26 17:15:53 +08:00
USTCKAY
122824885c
[CustomDevice]add custom NPU support for rnn ( #3521 )
...
* [CustomDevice]add custom NPU support for rnn
* delete 'npu' choice of device
* change 'Custom NPU' to 'Ascend NPU'
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-10-25 20:02:19 +08:00
吴高升
211e8204dd
Fix README.md of Retrieval based classification ( #3551 )
2022-10-25 17:07:56 +08:00
wawltor
47f7c36e1e
Add the expoort model for the paddlenlp ( #3516 )
2022-10-25 16:53:08 +08:00
吴高升
7eac0586bc
Update docx parsing for Pipelines ( #3546 )
2022-10-25 14:36:46 +08:00
liu zhengxi
a0f5a8ebcd
add support for libpaddle.so ( #3545 )
2022-10-25 11:53:58 +08:00
chenxiaozeng
636e3430fc
add online course info ( #3543 )
...
* add online course info
* add online course info
2022-10-25 11:39:35 +08:00
lugimzzz
d52d8e5ea1
update docprompt pipeline example ( #3542 )
...
* update docprompt pipeline example
2022-10-24 19:21:50 +08:00
lugimzzz
97fe71d000
Add docprompt example in pipelines ( #3534 )
...
* add_docprompt_example_in_pipelines
2022-10-24 15:24:53 +08:00
Sijun He
1bad94989f
improve setup.py for easier dev environment setup ( #3495 )
...
* setup.py file
* addback newline
* style
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-10-24 14:35:13 +08:00
吴高升
04a742106e
Fix dead links of pipelines&FAQ Finance ( #3540 )
2022-10-24 13:28:06 +08:00
westfish
1076b890de
fix text summarization taskflow cannot load self-defined model ( #3533 )
...
* fix text summarization taskflow cannot load self-defined model
* update taskflow
Co-authored-by: gongenlei <gongel@qq.com >
2022-10-24 11:33:47 +08:00
Jiaqi Liu
219b6abd15
fix tinybert readme bug ( #3535 )
2022-10-24 11:05:38 +08:00
吴高升
fb0cb9b35b
Add ERNIE-ViLG models into Pipelines ( #3512 )
...
* Add ERNIE-ViLG models into Pipelines
* Add more comments
* Add missing text_to_image_generation.yaml
* Rename the files
* Add output_dir parameters& Update README.md
* Update README.md
2022-10-21 15:58:03 +08:00
iamWHTWD
293c8308af
add xpu to choices ( #3527 )
2022-10-20 20:58:44 +08:00
westfish
e14487780b
Merge pull request #3524 from westfish/qg-example
...
fix prediction bug in qg example
2022-10-20 17:46:13 +08:00
westfish
39b49c928f
Merge branch 'develop' into qg-example
2022-10-20 17:38:29 +08:00
westfish
38fcccbd86
fix bug in prediction
2022-10-20 09:07:47 +00:00
westfish
31dc47aed5
Merge branch 'qg-example' of github.com:westfish/PaddleNLP into qg-example
2022-10-20 08:57:49 +00:00
Linjie Chen
8f3e4e51e3
Update README.md ( #3518 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-10-20 00:49:17 +08:00
WangZhen
7476962a6c
Add more Dy2St model for TIPC ( #3485 )
...
Co-authored-by: yujun <50394665+JunnYu@users.noreply.github.com >
2022-10-19 19:58:05 +08:00
Linjie Chen
b1ac71b2f5
Add file check for custom model ( #3506 )
2022-10-19 16:22:17 +08:00
Linjie Chen
1ac55f0325
Update README.md ( #3503 )
2022-10-19 10:28:16 +08:00
chenxiaozeng
0497ce7984
Update README.md ( #3502 )
2022-10-18 21:43:19 +08:00
Linjie Chen
0a402ca287
Add README.md for Document Intelligence ( #3498 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-10-18 17:34:52 +08:00
Jiaqi Liu
a12481fc30
updae compress usage in multi label classification ( #3494 )
2022-10-17 19:13:14 +08:00
Linjie Chen
3e7d4d8140
Add symbolic link for ERNIE-Layout ( #3484 )
...
* add symbolic link for ernie_layout
* Update README.md
* Update README.md
* Update README.md
2022-10-17 18:15:10 +08:00
吴高升
ce67b4fc41
Add windows serving support for faq finance ( #3491 )
...
* Add windows serving support for faq finance
* Remove unused comments
2022-10-17 17:51:02 +08:00
Noel
839b2d09bb
[fewshot] fix dead links in README ( #3492 )
2022-10-17 17:19:51 +08:00
westfish
db915e756a
Bug fix uie utils ( #3490 )
...
* fix bug the result variable is not defined
* update
2022-10-17 16:32:18 +08:00
Jiaqi Liu
217a25cf01
supports strategy 'qat' ( #3271 )
2022-10-17 15:39:58 +08:00
liu zhengxi
c00d28fcd8
Add MBart unit tests ( #3323 )
2022-10-17 13:45:12 +08:00
Zhong Hui
90c6f1da59
fix gpt with paddle.matmul ( #3483 )
2022-10-17 11:46:14 +08:00
Linjie Chen
f43cfd0d79
Update README.md ( #3474 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-10-14 18:29:13 +08:00
gmm
caa37ce8d8
【benchmark】fix benchmark log ( #3469 )
2022-10-14 16:30:48 +08:00
Linjie Chen
988204dfbf
Update README.md and optimize DocPrompt postprocess ( #3441 )
...
* Update README.md
* optimize sort
* update
* Update
* Update
* Update
* Update
* Update
* Update
* update
* update
* Add english docs and rename ernie_layout
* Add english docs and rename ernie_layout
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* Update taskflow.md
* update
2022-10-14 14:08:49 +08:00
yujun
a6b46912d2
[NEW Features] feature_extraction and processor support from_pretrained ( #3453 )
...
* update
* add import
2022-10-13 19:33:31 +08:00
westfish
a3e92bbb04
Merge pull request #3438 from westfish/qg-taskflow
...
add qg-taskflow
2022-10-13 18:06:25 +08:00
westfish
426b75778f
Merge branch 'develop' into qg-taskflow
2022-10-13 17:41:05 +08:00
yujun
6011ed8573
Fix #3446 ( #3457 )
...
* update Pillow version
* compare version
2022-10-13 15:58:38 +08:00
westfish
b1e373c6db
Merge branch 'qg-taskflow' of github.com:westfish/PaddleNLP into qg-taskflow
...
20221012
2022-10-13 07:29:43 +00:00
westfish
e83abbb47f
fix some typos in qg-example readme
2022-10-13 07:27:48 +00:00
westfish
361d826fbd
fix typos in readme.md
2022-10-13 04:25:01 +00:00
westfish
63b3c312ec
Merge branch 'develop' into qg-taskflow
2022-10-13 11:03:59 +08:00
westfish
c65dbb42f8
Merge pull request #3381 from westfish/uie_reader_memory_overflow
...
fix uie dataloader memory overflow
2022-10-13 11:00:43 +08:00
westfish
4c4f961b89
Merge branch 'develop' into uie_reader_memory_overflow
2022-10-13 10:53:19 +08:00
liu zhengxi
db1f9919c3
refine gpt ( #3447 )
2022-10-12 22:13:40 +08:00
westfish
7fbd726ccf
modified according to zeyang's comments
2022-10-12 13:29:49 +00:00
westfish
50cd2197f1
Merge branch 'develop' into uie_reader_memory_overflow
2022-10-12 16:14:38 +08:00
Sijun He
e544a04f8a
Support past_key_values argument for Electra ( #3411 )
...
* unit test pass; fix yapf
* change docstring
Co-authored-by: 骑马小猫 <1435130236@qq.com >
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-10-12 15:31:13 +08:00
吴高升
ddb59bfb56
Add batch prediction for pipelines ( #3432 )
...
* Add batch prediction for pipelines
* Fix some hardcode problem& Update comments
2022-10-12 12:19:21 +08:00
吴高升
ee696c397d
Update FAQ Finance Paddle Serving dependencies ( #3430 )
2022-10-12 12:03:09 +08:00
qipengh
0b4985dda2
[MLU] support SQuAD_Bert with mlu device ( #3434 )
2022-10-12 11:27:10 +08:00
吴高升
907144f8ee
Add multi type files index update example for pipelines ( #3439 )
2022-10-11 21:44:42 +08:00
westfish
aa1bef4890
fix code style
2022-10-11 11:42:40 +00:00
westfish
01be7792c8
add qg-taskflow
2022-10-11 10:38:37 +00:00
wawltor
70b6e5043a
remove the tcn for the paddlenlp ( #3435 )
2022-10-11 18:24:51 +08:00
Chenxiao Niu
031e2bf8f6
support mlu training ( #3431 )
...
* support mlu training
* [mlu] add mlu config in rnn and ernie-1.0 README.
2022-10-11 16:30:01 +08:00
westfish
eee364e7f8
Merge pull request #3410 from westfish/qg-example
...
add qg example
2022-10-11 15:41:19 +08:00
westfish
289d8214b1
Merge branch 'develop' into qg-example
2022-10-11 15:39:29 +08:00
westfish
a8f08c8ed5
adjust the position of the experiment' result
2022-10-11 03:19:23 +00:00
wawltor
9182f34818
Update README_cn.md
2022-10-10 21:56:31 +08:00
Noel
1e81d90f1f
[few-shot] fix script for multi_class and fix input type for windows ( #3426 )
2022-10-10 20:07:25 +08:00
westfish
3f9ea47d15
modified according to zeyang's comments, 20221010
2022-10-10 11:49:26 +00:00
Noel
b6a718bc87
[prompt] add doc ( #3362 )
2022-10-10 19:37:11 +08:00
lugimzzz
0cb7fe99f7
support paddle serving http deploy for text classification ( #3378 )
...
* add_http_deploy
2022-10-10 16:06:07 +08:00
westfish
3109311e58
rewrite unimo-text/predict.py to retrain only the prediction function
2022-10-10 07:50:39 +00:00
Linjie Chen
507084013c
fix bug of debug mode ( #3417 )
2022-10-10 14:34:08 +08:00
alkaid
c987531a2a
Update taskflow.py ( #3424 )
...
fix typo
2022-10-10 14:33:31 +08:00
yujun
6b54c4e523
fix pillow deperate warning ( #3404 )
...
Co-authored-by: gongenlei <gongel@qq.com >
2022-10-10 10:16:33 +08:00
westfish
9c6300d6a5
update qg example readme
2022-10-09 13:32:06 +00:00
骑马小猫
fcb477de4f
[BugFix]Fix ernie tokenizer unittest ( #3423 )
...
* fix bert unittest bug
* change token_labels -> sequence_labels
* update ernie tokenizer max_input_size
2022-10-09 20:55:29 +08:00
骑马小猫
c5c06ce0bb
fix bert unittest bug ( #3422 )
...
* fix bert unittest bug
* change token_labels -> sequence_labels
2022-10-09 19:52:42 +08:00
westfish
c92632bfe0
modified according to zeyang's comments
2022-10-09 09:28:41 +00:00
westfish
4f70f7297b
modified according to zeyang's comments
2022-10-09 09:04:02 +00:00
yujun
2dfdfa04a2
fix bigru crf offset index error ( #3418 )
2022-10-09 15:28:11 +08:00
chenxiaozeng
c297ab07b1
Update README_cn.md ( #3413 )
2022-10-09 14:54:37 +08:00
westfish
fdc9a1b1f2
rewrite run_gen.py to train.py and predict.py in unimo-text
2022-10-09 04:05:28 +00:00
westfish
116790b58f
normalize t5 naming
2022-10-09 03:31:33 +00:00
westfish
e08cd026d6
delete .sh files in t5 dir
2022-10-09 03:09:43 +00:00
westfish
afcfb6712d
delete useless scripts
2022-10-08 14:11:08 +00:00
westfish
3db00167e8
add qg example
2022-10-08 13:56:03 +00:00
liu zhengxi
e5189e973b
fix gpt ut ( #3407 )
2022-10-08 20:56:19 +08:00
yujun
d6f460e54a
Update artist model activateion ( #3106 )
...
* update
* rename
2022-10-08 10:45:02 +08:00
吴高升
6a0be69064
Update README.md of neural search ( #3391 )
2022-09-30 21:50:38 +08:00
westfish
0eb379261a
codestyle
2022-09-30 16:36:17 +08:00
sneaxiy
d6f1c61fb6
fix gpt N4C32 dp script bug ( #3392 )
2022-09-30 00:48:49 +08:00
Yam
985a9a41c0
complete t5 more output ( #3370 )
2022-09-29 20:04:16 +08:00
Haohongxiang
bc23b8b0c2
[Dygraph] Support sharding stage2/3+dp in GPT-3 model ( #2471 )
...
* add sharding+dp
* update
* code style check
Co-authored-by: gongenlei <gongel@qq.com >
2022-09-29 15:56:04 +08:00
Linjie Chen
2cfeadf114
Add ERNIE-LayoutX ( #3183 )
...
* Add ernie-layoutx
* simplify code
* simplify code
* support batch input
* add word_boxes support
* Update docs
* update
* Update README.md
* Udpate README.md
* Update README.md
* Update README.md
2022-09-29 13:05:29 +08:00
duanyanhui
3abb3589a8
[TIPC] Add scripts for npu and xpu, test=develop ( #3377 )
...
* add scripts for xpu and npu
* add npu/xpu args
* add script for xpu
* add npu/xpu args to predict.py
* fix codestyle ci bug
* add copyright
* fix copyright_checker
2022-09-29 12:07:23 +08:00
Elvis Stuart
be4b6c2a0e
【Hackathon + GradientCache】 ( #1799 )
...
* gradient_cache
* gradient_cache
* gradient_cache
* gradient_cache
* data
* train_for_gradient_cache
* add
* add
* add
* 修改
* 修改
* update
* update
* update
* update
* Update README_gradient_cache.md
* Update README_gradient_cache.md
* Update README_gradient_cache.md
* feat: modified the code
* fix: delete useless code
* feat: added requirements.txt
* feat: modify readme
* feat: modify some code
* feat: code style
* feat: add function
* feat: add licence
* feat: add comments
* Update README_gradient_cache.md
* feat: modify readme
* feat: modify readme
* fix: copyright
* fix: yapf
* feat: modify readme
* feat: modify readme
* feat: delete useless code
* feat: add new explain
Co-authored-by: 吴高升 <wugaosheng@mails.ccnu.edu.cn >
Co-authored-by: 吴高升 <w5688414@gmail.com >
2022-09-29 11:46:46 +08:00
骑马小猫
3b6b183503
[BugFix] fix supporting OrderedDict bug in paddle.jit module ( #3364 )
...
* convert keys to `__dict__`
* use fields to get keys
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-09-29 11:08:14 +08:00
liu zhengxi
131750a5bc
Add codegen unittests ( #3348 )
...
* add codegen unittests
* fix codegen
* update
2022-09-29 10:32:36 +08:00
gongenlei
fe2543d981
Improve CodeGen ( #3371 )
2022-09-29 01:31:40 +08:00
Septilliony
18e2e1188b
Update README_en.md ( #3375 )
...
edit typo
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-09-28 23:55:07 +08:00
westfish
759ec97e70
add warning
2022-09-28 21:06:37 +08:00
westfish
829f445169
fix dataloader memory overflow
2022-09-28 16:09:48 +08:00
liu zhengxi
521fd43191
MBART supports freeze multi-lingual model when dy2sta ( #3367 )
2022-09-27 21:05:56 +08:00
骑马小猫
abf217e9f3
add t5 encoder model ( #3376 )
2022-09-27 19:50:33 +08:00
zhengya01
252a9c0133
fix tipc log for benchmark and upate bigru_crf config ( #3373 )
...
* fix tipc log
* fix tipc log and upate bigru_crf config
2022-09-27 12:59:03 +08:00
gongenlei
adf6fcad61
Fix erniegen no model_config_file ( #3321 )
...
* fix
* rm save_pretrained
2022-09-26 20:20:15 +08:00
gongenlei
0e159ad0c5
Fix gpt example attention mask ( #3240 )
...
* add hf ds and upgrade example
* fix attention mask
* update
* update attention mask
* fix static attention mask
2022-09-26 15:02:58 +08:00
Roc
07e5c553e6
[MoE] Fix distributed wait api ( #3365 )
2022-09-26 13:07:03 +08:00
Zhong Hui
b4b1bdc3ed
[BugFix] Fix amp usage for evaluation. ( #3303 )
...
* fix eval of amp usage.
* fix
2022-09-24 22:08:56 +08:00
吴高升
0711a60584
Fix the semantic search example mistakes ( #3363 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-09-24 22:07:50 +08:00
Jiaqi Liu
fb69d1500f
supports distribute ( #3361 )
2022-09-23 23:38:14 +08:00
吴高升
3d83e742fd
Fix the README description of Pipelines & Neural Search ( #3353 )
...
* Fix the README description
* Update Pipelines README.md
* Update Docker README.md
* Add more details for ranking model
2022-09-23 19:22:21 +08:00
Liujie0926
24fb15e4ef
[Benchamrk] Fix fuse_transformer option of TIPC ( #3358 )
2022-09-23 16:17:31 +08:00
liu zhengxi
90491a00a5
unimo unittests ( #3349 )
2022-09-23 15:14:18 +08:00
liu zhengxi
62f55d0e25
[FasterGeneration] MBart supports dy2sta ( #3356 )
2022-09-23 14:08:39 +08:00
Jiaqi Liu
85d7ac6afe
Compression API supports ELECTRA ( #3324 )
...
* supports electra
* fix typo
2022-09-23 10:55:08 +08:00
骑马小猫
07994a19cf
upgrade-modeling-output ( #3305 )
...
* upgrade-modeling-output
* fix codestyle
2022-09-22 19:29:28 +08:00
zhoujun
b525401826
support layoutxlm re dygraph to static ( #3325 )
...
* support layoutxlm re dygraph to static
* fix error
2022-09-22 17:07:03 +08:00
吴高升
ad6fe2403f
Upgrade Neural Search README.md ( #3350 )
2022-09-22 15:20:54 +08:00
WangZhen
2f57f9b036
Fix TIPC log path ( #3347 )
2022-09-22 14:22:54 +08:00
吴高升
675bfa14a4
Update retrieval based classification README.md ( #3322 )
...
* Update retrieval based classification README.md
* Revert predict.py
* Update cpu predict script
* restore gpu config
2022-09-22 13:13:49 +08:00
骑马小猫
c64ed99efd
[New Model]add t5-encoder-model ( #3168 )
...
* add t5-encoder-model
* update t5model
* update t5encoder & test modeling
* update t5
* update type hinting
* update cache type annotation
2022-09-21 20:50:44 +08:00
Noel
68d7946293
[few-shot] fix typo and failed links ( #3339 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-09-21 17:57:45 +08:00
Roc
8dc205c918
[MoE] Fix recompute & communication api ( #3338 )
...
* update moe recompute.
2022-09-21 17:33:17 +08:00
zhengya01
7708822b76
fix tipc log ( #3337 )
2022-09-21 15:56:48 +08:00
gongenlei
17ca23a15e
update CodeGen doc ( #3299 )
...
* update doc
* update doc
* update docs
Co-authored-by: 骑马小猫 <1435130236@qq.com >
2022-09-21 14:31:30 +08:00
吴高升
a4065c9917
Remove unused function of Pipelines ( #3330 )
2022-09-21 14:14:24 +08:00
zhengya01
e9d24e5e4e
update tipc log ( #3333 )
2022-09-21 13:12:27 +08:00
yujun
2080001221
Merge pull request #3302 from JunnYu/update_ernie_task_tipc
...
Update ERNIE Task TIPC script
2022-09-21 09:53:08 +08:00
liu zhengxi
aae81be26d
Merge branch 'develop' into update_ernie_task_tipc
2022-09-21 09:50:03 +08:00
Thomas Young
31a8dc5c24
Replace OMP with std::thread ( #3309 )
...
* fix bug and codestyle
* save change
* change code style
* fix conflict
* change h file
* Update tokenizer.cc
Co-authored-by: zhoushunjie <zhoushunjie@baidu.com >
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-09-20 20:27:23 +08:00
wawltor
df9e6473ec
Update __init__.py
2022-09-20 16:24:46 +08:00
Linjie Chen
d5587376de
Update README_en.md ( #3320 )
...
* Update README_en.md
* Update README_en.md
* Update README_en.md
* Update README_en.md
* Update README_en.md
* Update README_en.md
* Update README_en.md
2022-09-20 16:12:02 +08:00
吴高升
929e019712
Add Docker compile Support for Pipelines ( #3315 )
...
* Add Docker compile Support
* change cuda to uppercase
2022-09-20 15:29:24 +08:00
吴高升
8a3a1aa8ae
Add FAQ and missing json output files ( #3298 )
2022-09-20 13:02:18 +08:00
lugimzzz
77b65d3999
optimize_sparse_strategy ( #3311 )
2022-09-20 11:01:36 +08:00
yujun
611b7c543d
update
2022-09-19 20:13:55 +08:00
yujun
0befe965af
update ernie task tipc
2022-09-19 15:36:06 +08:00
lugimzzz
938edda04f
optimize train.py ( #3300 )
2022-09-19 15:20:29 +08:00
Jiaqi Liu
f6e0068a45
Compression API Supports ERNIE-M and more Pretrained models ( #3234 )
...
* update compression doc
* update compression doc
* support more models and update compression api
* update inputspec info, avoid error
2022-09-19 11:26:41 +08:00
Linjie Chen
b8e12c5a33
fix bug of relation example is empty ( #3295 )
2022-09-19 10:33:43 +08:00
吴高升
e893a6304e
Add Milvus2.1 Support and Update pipielines qa ui ( #3283 )
...
* Add Milvus Support and Update pipielines qa ui
* Remove unused comments
2022-09-19 01:02:39 +08:00
Jack Zhou
2baa92a84a
fix ft build script ( #3293 )
2022-09-18 14:30:24 +08:00
Jack Zhou
a4749e1f50
Add ft compile doc and scripts ( #3292 )
...
* Fix the mac compile
* Add cpp, python lib building scripts
* Remove cache in cpp lib
* Add compile docs
2022-09-18 00:24:14 +08:00
WangZhen
9a25764763
[TIPC]Support @to_static train for base-transformer ( #3277 )
...
* [TIPC]Support @to_static train for base-transformer
* Fix to_static args
2022-09-17 09:04:29 +08:00
yujun
1e919ba45d
fix import error ( #2853 )
2022-09-17 00:57:18 +08:00
Jack Zhou
338fe2afec
Add use_faster flag for uie of taskflow. ( #3194 )
...
* Add use_faster flag for taskflow
* Add empty line
* Add doc of uie
* remove faster_tokenizer tmp
* merge
2022-09-17 00:55:08 +08:00
lugimzzz
eb05f409b1
add_dataset_link ( #3286 )
2022-09-17 00:54:10 +08:00
Zhong Hui
7fdfbf2b2b
update link typo ( #3236 )
2022-09-16 22:32:08 +08:00
yujun
7ce1b5cf35
update docs wechat code ( #3284 )
2022-09-16 22:31:34 +08:00
Jack Zhou
20ab09baa0
Update ft version to 0.2.0 ( #3285 )
2022-09-16 22:30:39 +08:00
Jack Zhou
0bdb7b5141
remove glog/logging.h ( #3280 )
2022-09-16 21:31:43 +08:00
Jack Zhou
46f395ae1d
Fix ft substr bug ( #3279 )
...
* optimize cmakelist
* Add substr pos check
2022-09-16 21:31:10 +08:00
吴高升
0f464e8303
Upgrade FAQ finance to Milvus 2.1 ( #3267 )
...
* Upgrade FAQ finance to Milvus 2.1
* Update text format for faq
* Update feature_extract.sh
2022-09-16 13:31:56 +08:00
Zhong Hui
fb4eec74d0
[Trainer] Support recompute for trainer. ( #3261 )
...
* support recompute for trainer.
2022-09-16 12:07:22 +08:00
liu zhengxi
8ca5cd8256
Add unit tests for UnifiedTransformer ( #3177 )
2022-09-16 10:18:14 +08:00
Zhong Hui
b1ad85171e
[DOC] Update highlights of README.md ( #3278 )
...
* Update README.md
* Update README.md
2022-09-15 17:04:07 +08:00
Zhong Hui
37a68609f0
[DOC] Add ernie-1.0-base-zh-cw benchmark results. ( #3248 )
2022-09-15 15:05:40 +08:00
吴高升
8fc38d6201
Update README.md and Rename dir to FAQ directory ( #3272 )
2022-09-15 12:13:19 +08:00
Linjie Chen
87613d4c25
Update debug mode for relation prompt ( #3263 )
...
* update debug mode for relation prompt
* update
* update
2022-09-14 20:11:48 +08:00
liu zhengxi
135e9fa753
update t5 tests ( #3266 )
2022-09-14 16:36:36 +08:00
骑马小猫
28f0b9195b
[BugFix]update vocab_size in init_config ( #3260 )
...
* update vocab_size in init_config
* make update_init_config more common
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-09-14 15:41:51 +08:00
骑马小猫
e1f700a0a2
[IssueTemplate] Add issue template ( #3251 )
...
* update issue-template
* remove old issue template
* add id field to template
* update github issue template
2022-09-14 12:44:13 +08:00
Zhong Hui
815ddfb72b
[CodeStyle] Add copyright for python file. ( #3259 )
...
* Add copyright for python files.
2022-09-14 10:57:52 +08:00
lugimzzz
8f5f965fa8
analysis_module_bug_fix ( #3246 )
2022-09-14 10:49:40 +08:00
liu zhengxi
64c695aec1
Add unit tests for T5 ( #3115 )
2022-09-14 10:33:19 +08:00
骑马小猫
2173cf358b
[ModelingOutput] add tinybert/Electra/XLNet/ALBERT/ERNIE-M more output & loss ( #3148 )
...
* complete tinybert more output & loss
* complete tinybert/erniem output
* complete xlnet unittest
* complete the electra unittest
* complete albert more modeling output
* complete albert more modeling output
* complete ernie-doc model more output
* revert ernie-doc modeling
* update more output
* update model testing
* convert paddle.is_tensor -> isinstance
* update tinybert & electra models
2022-09-14 10:11:10 +08:00
Jiaqi Liu
363269affb
update output dirname of compression api ( #3252 )
2022-09-13 15:46:22 +08:00
Linjie Chen
4ce8fd9a9b
fix bug of label dimension smaller than 1 ( #3238 )
2022-09-09 16:45:07 +08:00
吴高升
3e66b0cd02
Update README.md & Add more data into csv& change UI ( #3237 )
2022-09-09 16:32:33 +08:00
Zhong Hui
94dd90ae88
[Pre-Training] ERNIE-CW pre-training tasks docs. ( #3111 )
...
* add ernie-large config
* update
* update clue finetune.
* unused delete.
* update
* support no nsp for enrie.
* fix evaluation
* fix amp o2 save_dtype bugs.
* extand ernie.
* fix ernie pretrain with ## vocab.
* extend vocab
* support custom tokenizer.
* add some comments.
* fix bugs.
* add comments.
* fix bug.
* fix run_pretrain_static logging.
* fix all gather.
* fix a100
* fix
* fix bugs
* fix save
* tmp commit for pre-process.
* Update README.md
* Update README.md
* add amp o1 support
* ernie cw readme.
* fix
* throw error when dataset is invalid.
* update document.
* refine readme.
* fix
* refactor
* refator2
* Add pre-training introduction.
* update image width.
* refine doc
* fit table width.
* fix c++ style
* fix table
* refine docs
* refine model_zoo/ernie-1.0/README.md
* readfine readme.
* fix link
* fix bug
* fix documents.
* add weight.
* fix config
2022-09-09 15:33:26 +08:00
Linjie Chen
6b59ba2ef2
fix data distill for UIE ( #3231 )
...
* fix data distill
* update
* add evaluate_teacher
2022-09-09 15:23:42 +08:00
lugimzzz
8b827f410e
Optimize text classification deploy ( #3217 )
...
* optimize_deploy
* optimize_deploy
* update_readme
2022-09-09 14:59:00 +08:00
骑马小猫
f4e1b67d62
[Unittest]add roformerv2 unittest ( #2994 )
...
* add roformerv2 unittest
* update roformer-v2 testing
* update config to accelerate testing
* remove comment
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-09-09 14:01:26 +08:00
骑马小猫
2f84f9791e
Merge pull request #3220 from wj-Mcat/remove-unused-code
...
[Improvement] remove model_config_file and resource_files_names
2022-09-08 22:37:28 +08:00
wj-Mcat
93d9c67ec4
Merge branch 'remove-unused-code' of github.com:wj-Mcat/PaddleNLP into remove-unused-code
2022-09-08 19:44:30 +08:00
wj-Mcat
51fa58f11c
update three models
2022-09-08 19:43:59 +08:00
骑马小猫
b50fa0dd22
Merge branch 'develop' into remove-unused-code
2022-09-08 19:26:00 +08:00
骑马小猫
f32a6cab0d
Merge pull request #3114 from wj-Mcat/fix-multi-inhert
...
fix multi-layer-inherit of PretrainedTokenizer
2022-09-08 17:58:21 +08:00
骑马小猫
0ea3cc4b5e
Merge branch 'develop' into fix-multi-inhert
2022-09-08 17:42:58 +08:00
gongenlei
332da6ba34
Update codegen params and doc ( #3228 )
...
* update decoding
* update doc
2022-09-08 17:07:46 +08:00
gongenlei
f0c64b8666
not default to gpu ( #3218 )
2022-09-08 15:30:19 +08:00
骑马小猫
848268d284
Merge pull request #3130 from wj-Mcat/add-modeling-output
...
[ModelingOutput] update modeling output and unittest
2022-09-08 14:15:09 +08:00
Guo Sheng
fbd155d602
Merge branch 'develop' into add-modeling-output
2022-09-08 13:50:38 +08:00
paopjian
635eb8cabd
源码安装htbuilder,避免windows安装失败 ( #3221 )
...
Co-authored-by: 吴高升 <w5688414@gmail.com >
2022-09-08 13:31:00 +08:00
骑马小猫
3dfadff339
Merge branch 'develop' into remove-unused-code
2022-09-08 12:20:06 +08:00
Linjie Chen
f05794c4b0
Update bos url for UIE ( #3222 )
...
* Update bos url
* Update README.md
* Update README.md
2022-09-08 11:32:28 +08:00
Jack Zhou
23979e704b
Remove boost library. ( #3215 )
...
* Remove boost library.
* add conditional include for gtest
* Add test, demo exclude
2022-09-08 09:15:31 +08:00
chenxiaozeng
6fa2df53d2
Update README_cn.md ( #3219 )
2022-09-08 00:05:22 +08:00
骑马小猫
88435c2701
Merge branch 'develop' into remove-unused-code
2022-09-07 21:06:49 +08:00
wj-Mcat
a837aeead6
remove model_config_file and resource_files_names
2022-09-07 21:00:47 +08:00
wj-Mcat
9570637275
fix conflicts
2022-09-07 19:44:36 +08:00
骑马小猫
63ad917675
Merge branch 'develop' into fix-multi-inhert
2022-09-07 19:20:50 +08:00
骑马小猫
447c0146f5
[ModelingOutput]add more output for skep model ( #3146 )
...
* update return_dict/label in skep model
* complete skep add-more-output
* refactor simple code
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
Co-authored-by: Guo Sheng <guosheng@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2022-09-07 17:59:09 +08:00
骑马小猫
cbc07032f9
Merge pull request #3210 from JunnYu/add_stable_diffusion_licence_and_reset_default_args
...
Add StableDiffusion LICENSE
2022-09-07 16:03:03 +08:00
Guo Sheng
9f858e6bf5
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_default_args
2022-09-07 15:47:22 +08:00
wawltor
824982dade
Update README_cn.md
2022-09-07 15:18:12 +08:00
wawltor
ead43829e3
Update README_cn.md
2022-09-07 15:05:48 +08:00
Guo Sheng
98f6df61ae
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_default_args
2022-09-07 15:03:07 +08:00
wawltor
9ab5a91df6
Update README_cn.md
2022-09-07 14:49:13 +08:00
kztao
12c605af45
Fix windows dtype bug of neural search ( #3182 )
...
* Fix windows dtype bug of neural search
* Fix windows dtype bug of neural search
Co-authored-by: 吴高升 <w5688414@gmail.com >
2022-09-07 14:44:14 +08:00
Guo Sheng
bd8fa1a972
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_default_args
2022-09-07 14:42:11 +08:00
wawltor
9b51a64069
Update README_cn.md
2022-09-07 14:30:04 +08:00
骑马小猫
60a475e157
[ModelingOutput]update roformer unittest ( #3159 )
...
* add roformer unittest
* add roformer unittest
* update test_modeling
* use relative import
* reduce model config to accelerate testing
* remove input_embedding from pretrained model
* revert slow tag
* update local branch
* update get_vocab method
* update get_vocab method
* update test_chinese method
* change absolute import
* update unittest
* update chinese test case
* add roformer more output testing
Co-authored-by: Guo Sheng <guosheng@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2022-09-07 13:32:51 +08:00
wawltor
a6ab9c896b
Update README_cn.md
2022-09-07 12:15:53 +08:00
wuhuachaocoding
0ed8de72bc
[Recompute] Update recompute for hybrid parallel interface. ( #3211 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-09-07 11:22:24 +08:00
bruce0210
c6abe76ab9
Update README.md ( #3209 )
...
Improve and fix the text content of case 1.
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-09-07 07:03:28 +08:00
Guo Sheng
c7287ce9dc
Merge branch 'develop' into add_stable_diffusion_licence_and_reset_default_args
2022-09-06 21:49:40 +08:00
chenxiaozeng
4f10afa914
Update README_cn.md ( #3212 )
...
add v2.4 features description.
2022-09-06 21:31:53 +08:00
chenxiaozeng
b7437055f0
Add finance course ( #3207 )
...
* add finance course group code
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-09-06 21:07:51 +08:00
limingshu
19e03c4e71
Move token_num fetch out of train cycle ( #3089 )
2022-09-06 20:46:14 +08:00
吴高升
b88fc4ea5b
Update setup.py and README Examples ( #3208 )
2022-09-06 20:02:02 +08:00
yujun
58e5e7e4bb
add license
2022-09-06 19:28:05 +08:00
骑马小猫
9d9b00bb75
[Bug Fix]update tokenizer utils ( #3204 )
...
* update tokenizer utils
* update example
* remove debug code
* test=document_fix
* test=document_fix
* test=document_fix
2022-09-06 19:13:45 +08:00
gongenlei
ceded4b4dd
fix params ( #3205 )
2022-09-06 15:08:21 +08:00
骑马小猫
da23449878
Merge branch 'develop' into add-modeling-output
2022-09-06 14:17:11 +08:00
Roc
b72aa7e5bf
[GPT-3/MOE] Adapt recompute for latest paddle ( #3191 )
2022-09-06 13:56:34 +08:00
吴高升
9729a475ee
Change Pipeline's name & Fix dense qa config & Add FAQ ( #3202 )
2022-09-05 20:45:21 +08:00
Noel
2c82f0327c
[trainer] Fix bug when resume_from_checkpoint ( #3201 )
2022-09-05 19:01:39 +08:00
yujun
caaa102f64
add disco diffusion stable diffusion into taskflow ( #3198 )
...
* add disco diffusion stable diffusion into taskflow
* update num_return_images in taskflow readme
* update text2image taskflow readme
* rename text2image_generation text_to_image
* rename
2022-09-05 17:44:15 +08:00
gongenlei
aafd5a9178
Add text summary application ( #2971 )
...
* add train script
* add text summarization taskflow
* add faster_generation and device choice
* add doc and doploy for text_summarization
* add BLEU4
* update readme
* update train.py
* fix bug in summarization taskflow
* update taskflow and doc
* fix inference and serving
* fix serving
* update default model
* update taskflow doc
* update doc
* update doc
* update taskflow example
Co-authored-by: westfish <westfish@126.com >
2022-09-05 16:48:42 +08:00
吴高升
319c56e6d4
Add CrossEncoder and Integrate it into pipelines ( #3196 )
...
* Add CrossEncoder and Integrate it into pipelines
* Add CrossEncoder README.md
2022-09-05 16:37:02 +08:00
gongenlei
ea28142590
Update codegen doc ( #3193 )
...
* update doc
* update cod
* update perf
2022-09-05 16:28:25 +08:00
吴高升
54df619236
Add Retrieval based multi class classification ( #3180 )
...
* Add Retrieval based multi class classification
* Update README.md and dtype
* Update README.md
2022-09-05 15:54:45 +08:00
Linjie Chen
6f953a928f
Add UIE-M ( #3192 )
...
* Add UIE-M
* Update README.md
* Update taskflow.md
* Update README.md
* Update README.md
2022-09-05 15:34:50 +08:00
lugimzzz
ab2bd216c1
bug_fix ( #3184 )
2022-09-05 15:16:40 +08:00
吴高升
47a2ea50d4
Integrate Neural Search models into Pipelines ( #3172 )
...
* Integrate Neural Search models into Pipelines
* Adjust the format
* Update Neural Search Recall and Upgrade docx for Pipelines
2022-09-05 13:47:15 +08:00
吴高升
920e1e8fe0
Fix dtype bug of text similarity ( #3188 )
2022-09-05 12:42:44 +08:00
Linjie Chen
5401f01af8
Add data distillation for UIE ( #3136 )
...
* Add data distill for UIE
* Update README.md and remove unsed code
* Update README.md and doccano process
* Update data distillation example
* fix entity extraction
* update
* update
* add data_distill.py
* Update README.md
2022-09-05 10:58:06 +08:00
吴高升
a51c757af1
Update faq.md for faiss run error for pipelines ( #3186 )
...
* Add Benchmark README.md& Optimize Pipelines README.md
* Update faq.md for faiss run error
* Add API models README.md and Update FAQ.md
2022-09-05 10:57:03 +08:00
骑马小猫
e49344f5ec
[BugFix] Add max model input sizes ( #3127 )
...
* add max_model_input_sizes
* update roberta tokenizer
* update wrong word
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-09-05 00:05:39 +08:00
yujun
8fde089f40
Add disco diffusion ernievil vitb16 ( #3118 )
...
* update ernievil2
* update ernievil2 auto model
* update
* update model and tokenizer
* update
* typo
* update copyright and add model max length
* update model name and method name
* fix
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-09-02 21:42:35 +08:00
yujun
d789b4f154
[NEW MODEL CLIP] Add disco diffusion clip vitb32 ( #3072 )
...
* add clip model
* update params name
* add docs
* typo
* update clip and add clip+dd
* add vision_heads and vision_mlp_ratio
* typo and update docs
* update default args and add resnet 50 101 and use old pillow
* add resnet50 101 and update tokenizer
* update seed
* add __init__.py
* add openai/clip-vit-large-patch14 and update imagegeneration demo
* update attention mask and update copyright
* add stable diffusion and docs & add CLIPTextModel and CLIPVisionModel
* del clip.vision_model
* update PNDMScheduler and add set_scheduler
* update copyright order
2022-09-02 21:25:40 +08:00
gongenlei
53bdc2d456
Add FasterCodeGen/FasterGPTJ ( #3017 )
...
* add FasterCodeGen/FasterGPTJ
* remove useless
* fix output and hypeparams
* fix review comment
* fix
* rm split
* add perf and sample
* fix: memory allocator
* add memory perf
* update convert_params
* add perf doc
* fix
* update perf
* add finetune and doc
* update hyper params
* update docs
* add license
* use apply_logits_mask_kernelLauncher
* ker_curand_setup_bsz_one for bsz=1
* rm const for constant
* rm ret
* update license
* fix kernel
* use apply_logits_mask_kernelLauncher
* add blank_lines
* match new paddle
* update seed and add TODO
2022-09-02 13:00:02 +08:00
lugimzzz
7614879da2
update text classification readme ( #3161 )
...
* update_readme
2022-09-02 10:01:51 +08:00
Jack Zhou
b82cbe8045
Add README for faster tokenizer ( #3179 )
...
* Add main features of faster tokenizer on readme
* Add quick start part
* Add FAQ
* Remove pipline intro tmp
2022-09-01 22:16:58 +08:00
Jack Zhou
d759e87383
Add faster tokenizer mac python package ( #3171 )
...
* update cmake
* adjust platform case
* Fix cmake
* Fix readme
2022-09-01 14:23:51 +08:00
Jack Zhou
d56c71470e
Backup hf dataset ( #3057 )
...
* Add imdb hf datasets
* Adjust thucnews load
2022-08-31 19:28:20 +08:00
wj-Mcat
2ed52ed88b
Merge branch 'add-modeling-output' of github.com:wj-Mcat/PaddleNLP into add-modeling-output
2022-08-31 08:02:21 +00:00
wj-Mcat
13a13aff17
remove unrelated requirements
2022-08-31 08:02:01 +00:00
Jack Zhou
e08964bb58
Add handle chinese char wordpiece ( #3164 )
...
* Add handle_chinese_char for wordpiece tokenizer
* Remove unicode/char.h
* add max_input_chars_per_word
2022-08-31 11:22:11 +08:00
wj-Mcat
3a90faa916
update refactor code
2022-08-30 11:52:02 +00:00
Roc
a087e0c21f
[MoE] Fix changes of _C_ops usage for paddle develop version. ( #3163 )
2022-08-30 17:31:53 +08:00
吴高升
5bfa11c5e1
Update text similarity for taskflow.md ( #3162 )
2022-08-30 16:06:10 +08:00
吴高升
a8886f898c
Add Benchmark README.md& Optimize Pipelines README.md ( #3160 )
2022-08-30 15:08:07 +08:00
Jack Zhou
09d8ad519b
Remove faster_tokenizer include src directory ( #3156 )
...
* remove include src directory
* remove words_idx print
* Add FasterTokenizer.cmake
* remove useless cmake comments
* Fix readme
* Add faster_tokenizer
2022-08-30 14:04:59 +08:00
liu zhengxi
2083256f16
Transformer add activate option ( #3158 )
2022-08-30 12:20:03 +08:00
Linjie Chen
cece39407d
fix the bug that device_id invalid in fp16 mode ( #2959 )
...
* fix device_id invalid for fp16 mode
* remove unused code
* add device_id for uie_predictor
2022-08-30 10:08:24 +08:00
Zeyu Chen
536f3c34c1
Update README
2022-08-30 09:44:54 +08:00
lugimzzz
724da5570c
optimize_text_classification_readme ( #3132 )
...
* optimize_readme
* optimize_readme
* optimize_readme
* optimize_readme
* optimize_readme
2022-08-29 21:50:57 +08:00
liu zhengxi
e8f8eca101
Add GPT ut ( #3133 )
2022-08-29 10:24:19 +08:00
骑马小猫
c19efe5f34
Merge branch 'develop' into fix-multi-inhert
2022-08-29 09:54:40 +08:00
吴高升
1abe10bb74
Add FAQ tutorials for pipelines ( #3151 )
2022-08-26 18:45:32 +08:00
Jack Zhou
66b33fd330
Fix mac x64 ( #3137 )
...
* Fix mac x64
* update WITH_TESTING default value
* Fix linux aarch64 libdl not found
* Fix typo
* remove plat-name
* Add platname
* Add CPP demo readme.md
2022-08-26 16:54:00 +08:00
吴高升
f89d26ec5f
Add FAQ applications for pipelines ( #3102 )
...
* Add FAQ applications for pipelines
* Optimize FAQ function
2022-08-26 11:29:29 +08:00
yujun
e549b57367
add t5 zeroshot demo and add new weights ( #3116 )
...
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-25 23:23:28 +08:00
骑马小猫
58e785a7e7
Merge branch 'develop' into fix-multi-inhert
2022-08-25 20:22:32 +08:00
骑马小猫
0861160e57
Merge branch 'develop' into add-modeling-output
2022-08-25 20:16:30 +08:00
wj-Mcat
26daca4cf1
update label/loss
2022-08-25 12:09:05 +00:00
Noel
2887ae8071
[Trainer] unify the way of printing logs as logger ( #3144 )
2022-08-25 20:04:36 +08:00
吴高升
f5636731f4
Add Docker images& Docker compose files for pipelines ( #3135 )
...
* Add Docker images& Docker compose files for pipelines
* Update README.md
2022-08-25 18:09:01 +08:00
yujun
a24c852c63
update bert tipc amp level O2 ( #3080 )
2022-08-25 17:36:35 +08:00
yujun
674ac4eba4
add ernie-tiny benchmark ( #3100 )
2022-08-25 17:18:53 +08:00
lugimzzz
debad267f1
Change Prune Module by Compression API in Text Classification Application ( #3087 )
...
* change_prune_module_by_compression_API
2022-08-25 16:07:48 +08:00
Zhong Hui
3b89d63f35
[ERNIE] Quick fix for model no_sync. ( #3138 )
2022-08-25 14:12:38 +08:00
wj-Mcat
200af6de8d
complete ernie/roberta/roformer unittest
2022-08-25 02:45:09 +00:00
吴高升
08b51e7ab6
Add Docx Image display support for pipelines and Update Docker config ( #3097 )
...
* Add Image display support for pipelines and Update Docker config
* Remove unused comments
* restore pipelines_version
* Add more comments for docx.py
* Add more comments for docx
2022-08-25 10:42:15 +08:00
Jack Zhou
b40a3c05d8
Add mac arm64 compile ( #3134 )
...
* add mac arm64 compile
* Add no-narrowing warning
2022-08-24 21:34:15 +08:00
wj-Mcat
d4b41227bb
complete ernie label loss
2022-08-24 13:07:19 +00:00
Jack Zhou
893987dd7f
Add faster tokenizer dir ( #3125 )
...
* Add faster_tokenizer dir
* add todo comments
2022-08-24 19:43:32 +08:00
wj-Mcat
0f133c04ac
update roformer modeling testing
2022-08-24 08:37:49 +00:00
liu zhengxi
98eab225f3
fix onnx compile ( #3131 )
2022-08-24 16:13:54 +08:00
wj-Mcat
522becff95
update roberta unittest
2022-08-24 07:25:47 +00:00
littletomatodonkey
d3ace6c5e3
fix vi-layoutxlm model name ( #3129 )
2022-08-24 14:59:13 +08:00
wj-Mcat
d6f58c836f
update ernie modeling test
2022-08-24 06:57:59 +00:00
wj-Mcat
b1629c0cdf
update requirements.txt
2022-08-24 06:35:49 +00:00
wj-Mcat
75c29031c2
merge master branch
2022-08-24 06:32:18 +00:00
wj-Mcat
7b50b5450a
update bert model unittest
2022-08-24 06:29:58 +00:00
yujun
949c848522
Refactor RoFormer Model ( #3049 )
...
* update roformer
* update
* use CausalLMOutputWithCrossAttentions
* typo
* update docs
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-23 23:25:55 +08:00
Jiaqi Liu
a032b304af
update compression doc ( #3103 )
2022-08-23 19:53:10 +08:00
Jack Zhou
2c294008b9
Fix faster tokenizer multithreads bug ( #3119 )
...
* Add imdb hf datasets
* Adjust thucnews load
* upgrade faster_tokenizer
* Revert "Adjust thucnews load"
This reverts commit 677e33a710 .
* Revert "Add imdb hf datasets"
This reverts commit 72402f1d0e .
* Add CharToBytesOffsetConverter
* Change return value of CharToBytesOffsetConverter
* Fix some omp directive
* fix some multithreads bug
2022-08-23 19:12:47 +08:00
Jiaqi Liu
084416868f
fix semantic search modeling ( #3094 )
2022-08-23 18:03:15 +08:00
wj-Mcat
52a18de38f
fix multi-layer-inherit
2022-08-23 03:01:51 +00:00
Linjie Chen
4ec0b62f77
update parameters for wordtag ( #3108 )
2022-08-23 10:16:10 +08:00
Noel
70bc0b06c1
[few-shot] Update README ( #3104 )
...
* [few-shot] add input_spec in train.py
* [few-shot] add early-stopping
* [few-shot] update readme
* [prompt] fix optimization problem in soft verbalizer
2022-08-22 21:00:51 +08:00
Linjie Chen
7852629d28
disable ir optim for nptag ( #3107 )
2022-08-22 20:07:17 +08:00
liu zhengxi
08636b3a1e
Add unit tests for generation models ( #3018 )
2022-08-22 18:52:54 +08:00
lugimzzz
f1634e5b16
add analysis module in text classification application ( #3011 )
...
* add_analysis_module
* add_analysis_module
* add_analysis_module
* change_argument_format
* add_analysis_module
* add_evaluation_result_for_analysis_module
2022-08-22 18:16:15 +08:00
骑马小猫
813e5c901b
[UnitTest] Add ernie gram unittest ( #3059 )
...
* add ernie gram unittest
* update ernie-gram unittest
* update local branch
* update ernie-gram
* update model_name
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-22 16:53:06 +08:00
骑马小猫
22bd3aaa53
[Unittest]Add roformer unittest ( #2991 )
...
* add roformer unittest
* add roformer unittest
* update test_modeling
* use relative import
* reduce model config to accelerate testing
* remove input_embedding from pretrained model
* revert slow tag
* update local branch
* update get_vocab method
* update get_vocab method
* update test_chinese method
* change absolute import
* update unittest
* update chinese test case
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-22 16:12:34 +08:00
Zhong Hui
bfc8700136
[GPT] Update default lr of args.py ( #3101 )
2022-08-22 14:13:33 +08:00
Roc
2be8555763
[Benchmark] fix random rank in pdc ( #3052 )
2022-08-22 12:51:47 +08:00
Zhong Hui
ec893dd053
[Pre-Training] Enhance ERNIE pre-training with additional chinese char ( #2667 )
2022-08-22 12:07:04 +08:00
骑马小猫
203b6a80d4
add skep unittest & fix skep modeling ( #2941 )
...
* add skep unittest & fix skep modeling
* remove dumplicated viterbidecoder importing
* disable ViterbiDecoder from paddle.text temporary
* enable bpe tokenizzer in testing
* add slow to from_pretrained
* complete skep unittest
* update skep modeling & fixtures
* revert relative import
* reduce model config
* remove parameterized pacakge
* update skep unittest
* add <unk> to init function
* revert test_internal_consistency func
* add get_vocab method to skep tokenizer
* add Dict typing hint
* change importing style
* remove unused bpe file
* update the training example
* update get_vocab
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-22 10:32:54 +08:00
tianxin
a1e6a4644c
update Pipelines README ( #3053 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-08-21 10:24:17 +08:00
yujun
07cb2cdc94
[Update Ernie] if type_vocab_size == 0 we do not use token type id ( #3075 )
...
* add use_token_type_id option
* if type_vocab_size > 0 use token type id
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-20 11:41:48 +08:00
吴高升
a2de0bf9ce
Update search tutorials for pipelines and README ( #3092 )
...
* Update search tutorials for pipelines and README
* Restore the missing bash scripts
2022-08-19 20:03:07 +08:00
吴高升
4bbf1b08ff
Add text semantic matching for taskflow ( #3003 )
...
* Add text semantic matching for taskflow
* Incorporate text semantic search into text similarity
* Add rocketqa base
* Update taskflow docs
* Add rocketqa based models for taskflow
* Text similarity support paddle inference
* remove unused comments
2022-08-19 18:18:04 +08:00
yingyibiao
ff437f6c19
[Unittest]Add unittest for Electra and XLNet model ( #3031 )
...
* add unittest for electra tokenizer
* add xlnet
* add unittest for electra modeling
* add unittest for electra modeling
* update unittest for xlnet tokenizer
* update unittest for xlnet modeling
* fix
* fix
2022-08-19 17:10:17 +08:00
骑马小猫
e1f575bb0e
update opt sample & decoding ( #3064 )
...
* update opt sample & decoding
* fix type linting
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-19 13:30:11 +08:00
骑马小猫
61b76c5f68
[Unittest] add ernie-m unittest ( #2964 )
...
* add ernie-m unittest
* update ernie_m-tokenizer
* --amend
* update erniem
* update ernie-m tokenizer
* add slow decorator
* update ernie-m tokenizer & reduce ernie-m model testing size
* update test case in ernie-m
* remove __call__ & change do_lower_case to false
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-18 21:49:51 +08:00
yingyibiao
869dd96117
[Unittest] Add unittest for RoBERTa, ALBERT and ERNIE ( #2972 )
...
* add roberta tokenizer unittest
* add roberta tokenizer unittest
* add roberta modeling unittest
* add unittest for albert modeling
* add albert unittest
* add ernie unittest
* upgrade unittest for albert tokenizer
* upgrade unittest for ernie tokenizer
* fix unittest for ernie tokenizer
2022-08-18 19:53:01 +08:00
Noel
451ccacec8
[prompt] fix hash problem while exporting model ( #3062 )
2022-08-18 17:36:28 +08:00
liu zhengxi
5c4b1f937c
fix custom op d2s ( #3081 )
2022-08-18 15:46:50 +08:00
吴高升
8b692d0b60
Add ernie 3.0 based rocketqa into pipelines ( #3078 )
...
* Add ernie 3.0 based rocketqa into pipelines
* Add create index bash
* remove unused codes
2022-08-18 12:11:04 +08:00
Zhong Hui
a549c894fc
[ERNIE] Fix shape for static graph mode ( #3068 )
...
* fix shape
2022-08-17 17:24:54 +08:00
Jiaqi Liu
493dc101eb
update auto model function, and update compression script for token cls and qa tasks. ( #3070 )
2022-08-17 15:44:24 +08:00
Roc
e05adbf229
[MoE] Fix inner final_state_adamw api usage.
2022-08-17 14:13:57 +08:00
liu zhengxi
b10aa7a84b
fix bart tokenizer ( #3058 )
2022-08-17 09:51:40 +08:00
Jiaqi Liu
9954750b8c
add compress api doc ( #3020 )
2022-08-16 16:44:42 +08:00
Noel
a15da5fcf6
[prompt] add prompt and text classification examples ( #2894 )
...
* [prompt] add prompt (manual & soft)
* [few-shot] add multi-class example
* [ernie] add input_embeds to ernie, fix special token mask
* [few-shot] add multi-label and hierachical examples
* [few-shot] add deployment
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-08-16 12:06:56 +08:00
chenxiaozeng
84a6f28899
update group code ( #3055 )
2022-08-16 10:30:46 +08:00
Yu Wu
10225001b2
Add label studio to doccano file format conversion function ( #2694 )
...
* add label studio to doccano file format conversion function
* add label studio to doccano file format conversion function
* add description in readme
2022-08-16 10:21:56 +08:00
dongfangshenzhu
56a8957945
run_qa.py add xpu chioce of device,*test=kunlun ( #3046 )
...
* run_qa.py add xpu chioce of device,*test=kunlun
* run_qa.py add xpu chioce of device,*test=kunlun
2022-08-16 08:05:12 +08:00
吴高升
42ec8e31b4
Upgrade run_system.py to milvus 2.1 for neural search ( #3047 )
...
* Upgrade run_system.py to milvus 2.1 for neural search
* recover server port
2022-08-15 17:10:14 +08:00
yujun
bf0d3ab433
update text2image taskflow ( #3040 )
...
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-15 14:59:16 +08:00
tianxin
a85059fed3
Update Pipelines README.md ( #3043 )
2022-08-15 14:18:20 +08:00
吴高升
f61e7cac75
Add ERNIE 3.0 based rocketqa DualEncoder models ( #3033 )
...
* Add rocketqa DualEncoder models
* Add DualEncoder docs test=document_fix
2022-08-15 11:40:51 +08:00
吴高升
baa47b644d
Add ERNIE 3.0 based RocketQA Ranker models ( #3019 )
...
* Add ERNIE 3.0 based RocketQA Ranker models
* Update Docs Introduction
2022-08-12 18:56:30 +08:00
Guo Sheng
8980d64f5f
Add label and loss support for BERT/RoBERTa/ERNIE ( #3013 )
...
* Add label and loss support for BERT/RoBERTa.
* Add label and loss support for ERNIE.
* Update api docs.
2022-08-12 17:13:49 +08:00
Jack Zhou
115d69d4c2
Fix faster_tokenizer arm64 compile ( #3016 )
2022-08-11 20:34:30 +08:00
骑马小猫
6952b91cff
[Unittest]add tinybert unittest ( #2992 )
...
* update tinybert unittest
* remove dataclass-json & fix get_input_embedding
* update tinybert
* add max_model_input_size feature
* fix relative importing
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-11 19:40:57 +08:00
Jiaqi Liu
4c54f6d3e2
Update compression API ( #2777 )
2022-08-10 20:49:02 +08:00
Guo Sheng
3f0d6ce515
Make BERT support past_key_values. ( #2801 )
...
* Make BERT support past_key_value_caches.
* Fix BERT past_key_values_length setting.
* Add use_cache argument in BERT.
* Update docs of output_hidden_states in BERT.
* Add past_key_values and use_cache for ERNIE.
* Add past_key_values and use_cache in RoBerta.
* Support to get cache from None when use_cache is True.
Add unittest for BERT cache.
* Add signature check for test_hidden_states_output.
* Make cache be tuple if getting from None when use_cache is True.
2022-08-10 19:11:07 +08:00
吴高升
377ecb22c0
Move pipelines to the root dir ( #3012 )
...
* Move pipelines to the root dir
* Add missing files
2022-08-10 18:54:08 +08:00
yujun
6b3f40ced9
Add Text2Image into Taskflow ( #2988 )
...
* add text2image taskflow
* update readme
* update readme
* update text2image taskflow
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-10 16:35:55 +08:00
Zhong Hui
7ce81e1b6a
[Recompute] Support ernie for dygraph recompute. ( #2849 )
2022-08-10 15:08:19 +08:00
吴高升
2a4a2fb69f
Add Docker Support for pipelines ( #2997 )
2022-08-10 12:50:52 +08:00
littletomatodonkey
54eda93fdd
add support for wo visual backbone ( #2935 )
...
* add support for wo visual backbone
* add re hidden states
* fix hidden save
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: Jiaqi Liu <709153940@qq.com >
2022-08-10 11:06:12 +08:00
Linjie Chen
8dc6c98c32
fix tokenizer encode bug for layoutxlm ( #3006 )
2022-08-10 10:26:04 +08:00
gongenlei
c097614233
support multi gpus ( #3004 )
2022-08-10 07:16:06 +08:00
吴高升
bb1729b267
Fix faiss index batch_size bug on python3.7 and update es config for … ( #2965 )
...
* Fix faiss index batch_size bug on python3.7 and update es config for pipelines
* Fix the nltk download bug and Add FAQ for mac support
* Remove update_batch_size for fais
2022-08-09 21:54:43 +08:00
吴高升
085ac53cad
Add and upgrade to Milvus2.0 support for neural search ( #2945 )
...
* Add Milvus2.0 support for neural search
* Add milvus search file and remove unused blanks and code
* Add milvus_util.py
2022-08-09 18:33:00 +08:00
yujun
145333e7b4
Add EasyNLP Text2Image model ( #2968 )
...
* add artist
* update tokenizer
* support faster generation
* update
* update
* update config
2022-08-09 14:46:51 +08:00
骑马小猫
70e6a31d13
[NEW MODEL]add OPT model ( #2659 )
...
* add opt model
* update opt modeling
* complete all of test
* remove remote file link from opt configuration
* enable auto model with opt
* remove pretraining and criterion
* remove OPTLMHeadModel
* remove `remove_final_layer_norm`
* add example for opt text generation
* improve auto model & tokenizer
* keep the same code style
* revert changes fixed by #2764
* remove unused character
* use transformer-decoder-layer in opt
* align demo with huggingface website
* add opt op operations
* update faster entry
* add opt convert_param supporting
* add Makefile to manualy build faster transformer
* fix fp16 usage
* add performance & sample
* update opt modeling docstring
* update opt by comments
* remove Makefile && recover CMakeLists.txt
* update metric of opt
* update opt perf image
* update opt example
* remove opt & gpt image file to reduce size of repo
* remove bart file
* remove bart file to reduce the size of repo
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-09 13:48:06 +08:00
liu zhengxi
101a02c283
[FT] Custom op supports eager mode ( #2795 )
...
* custom op supports eager mode
* ut support eager
* compatibility
* bart
* encoder & decoder
* force decoding
* update
* alter import
* delete dir
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-09 12:10:43 +08:00
lugimzzz
00a3551f7b
Data augmentation API name change & bug fix ( #2956 )
...
change_data_aug_name
2022-08-09 10:56:44 +08:00
Noel
40423017cd
[duee] fix bug brought by using autotokenizer ( #2985 )
2022-08-08 17:42:48 +08:00
Guo Sheng
52531dde9e
Add unittest for more outputs in test_modeling_common.py ( #2962 )
...
* Add unittest for more outputs in test_modeling_common.py
* Change test import.
2022-08-08 11:45:11 +08:00
yujun
63b556eb78
[NEW MODEL]Add DALL-E mini Model ( #2917 )
...
* add dalle-mini model
* update
* support auto
* decode->generate
* add dalle-mega v26
* update url
* update url
* update url
* add dallebart tokenizer into autotokenizer
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-08 10:41:14 +08:00
Jack Zhou
516f54942b
Fix faster wordpiece empty string input ( #2975 )
2022-08-07 20:56:27 +08:00
BasicCoder
14d2c93df5
remove duplicate code in valid text input ( #2977 )
...
only need do once valid
2022-08-06 14:09:09 +08:00
liu zhengxi
3e863a3e2c
Mv ernie-gen ( #2970 )
...
* mv ernie-gen
* delete useless code
2022-08-05 15:03:07 +08:00
吴高升
36ccdcd2d6
Add retrieval based classification ( #2836 )
...
* Add retrievalbase classification
* Add requirements and update readme
* Update readme
* refine the dataset structure
* Update readme
* Update text data format
2022-08-05 10:08:41 +08:00
gongenlei
a7bebbf1f9
feat: add more device ( #2963 )
2022-08-04 15:27:38 +08:00
Jack Zhou
d97d952cc4
Add dllexport for faster_tokenizer api ( #2926 )
...
* Add dllexport for api
* Fix faster_tokenizer c++ demo
* Add FASTERTOKENIZER_LIB definition
* Add ICU_DLL_DIR
* Add third_party lib
* Fix path
* Fix windows link path
* Add IMPORTED_IMPLIB
* Add icuuc icudt import lib
* Add icu windows
2022-08-04 14:55:09 +08:00
Linjie Chen
79e71a51e3
Update README_en.md ( #2958 )
...
* Update README_en.md
* Update README_en.md
2022-08-04 11:49:38 +08:00
吴高升
1c812c88d8
Fix random generate question ui error and search results re display of pipelines ( #2954 )
...
* Fix random generate question ui error of pipelines
* Fix ui search results re display bugs of pipelines
2022-08-03 21:14:11 +08:00
lugimzzz
e98716f8a7
Add data augmentation strategy ( #2930 )
...
* data_augmentation_strategy
2022-08-03 19:52:11 +08:00
yujun
7795eeb874
share word_embeddings weight ( #2953 )
...
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-08-03 17:55:59 +08:00
gongenlei
1e68ed1dc5
[Doc] Add more doc for CodeGen ( #2946 )
...
* add more doc for codegen
* update pic link
* update doc
2022-08-03 16:05:11 +08:00
lugimzzz
54929a2db9
optimize text classification application ( #2868 )
...
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
2022-08-03 14:51:46 +08:00
吴高升
4c3518c38c
Remove unused setup.py and Update readme.md of pipelines ( #2939 )
...
* Remove unused setup.py and Update readme.md
* Add pip proxy
2022-08-03 11:41:00 +08:00
liu zhengxi
30757bea4d
Fix FT sampling performance issue ( #2910 )
2022-08-03 09:35:15 +08:00
Weilong Wu
7d0c831749
fix test_tipc/train logic ( #2879 )
2022-08-02 19:59:25 +08:00
Milen
72344b205b
add hf dataset builder for cote, chnsenticorp, seabsa16 ( #2901 )
...
* initial commit
* refine readme
* refine codestyle
* refine readme
* refine readme
* fix model saving bug
* initial commit
* initial commit
* initial commit
* add seabsa16 and cote hf datasets builder
* add chnsenticorp hf datasets builder
* rm test_datasets.py
* remove diffcse
* add cote, seabsa16 and chnsenticorp of hf datasets builder
* modify these examples with hf datasets
* refine codestyle for hf_datasets builder
* refine codestyle for predict.py
* recover original examples
* modify ChnSentiCorp description
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-08-02 18:49:56 +08:00
wawltor
42693bf57e
Update README_cn.md
2022-08-02 16:05:19 +08:00
wawltor
e69926326c
update Readme.md for the version of 2.3.5
2022-08-02 16:04:48 +08:00
Jiaqi Liu
c195224a8f
add hf datasets ( #2839 )
2022-08-02 14:04:17 +08:00
Haohongxiang
6b4b62d4c6
[MoE] Fix fluid api bugs for paddle 2.3 ( #2937 )
2022-08-02 13:15:00 +08:00
Jack Zhou
37888772f0
Fix deadlink of ERNIE-DOC ( #2933 )
2022-08-02 11:14:23 +08:00
吴高升
86a373e35c
Fix the dead links ( #2934 )
2022-08-01 20:52:58 +08:00
吴高升
445ad52979
Add Windows system support of pipelines ( #2903 )
...
* Add Windows system support of pipelines
* Fix the utf-8 on windows messy code
* Support delete index and update indexing data of pipelines
* Add numba dependency
2022-08-01 18:22:13 +08:00
吴高升
1c498bc8a5
Add Mac system support of pipelines ( #2885 )
...
* Add Mac system support of pipelines
* Add cpu requirements
* Add mac es faq and change to a small dataset of dureader
* adjust semantic search example
2022-08-01 17:18:50 +08:00
gongenlei
123c4c7816
add hf ds and upgrade example ( #2925 )
2022-08-01 13:03:03 +08:00
Milen
7932dd2924
add DiffCSE model ( #2643 )
...
* initial commit
* refine readme
* refine codestyle
* refine readme
* refine readme
* fix model saving bug
* initial commit
* initial commit
* initial commit
* use common metric instead of eval_metrics.py and remove unuseful code
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-08-01 11:26:43 +08:00
liu zhengxi
84e8026113
Backup DuConv for hf dataset ( #2924 )
...
* backup duconv
* update license
* typo
2022-07-29 21:07:47 +08:00
yingyibiao
8292c719ff
[BugFix] Deal with greek letter "sigma" when return offset_mapping ( #2897 )
...
* deal with greek letter sigma
* update comments
2022-07-29 17:48:51 +08:00
Jack Zhou
912e0274a1
Fix ernie-m tokenizer defalut args ( #2916 )
2022-07-29 16:39:03 +08:00
wawltor
95c5e00137
Update ----.md
2022-07-29 15:22:26 +08:00
zhiyongLiu1114
77a1111cf2
add func get_special_tokens_mask() ( #2875 )
...
* add func get_special_tokens_mask() instead of using that in superclass which will lead to conflict with func build_inputs_with_special_tokens()
* add func get_special_tokens_mask() instead of using that in superclass which will lead to conflict with func build_inputs_with_special_tokens()
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-07-29 12:01:23 +08:00
吴高升
112830ba2a
Fix windows dtype bug of neural search ( #2911 )
2022-07-28 20:24:56 +08:00
lugimzzz
842954c200
add data augmentation strategy ( #2805 )
...
* add_data_augmentation_strategy
* add_data_augmentation_strategy
* add_data_augmentation_strategy
* add_data_augmentation_strategy
Co-authored-by: wawltor <fangzeyang0904@hotmail.com >
2022-07-28 17:06:57 +08:00
Jack Zhou
721190efcd
Upgrade ERNIE-M Tokenizer ( #2840 )
...
* Update ERNIE-M Tokenizer
* Add offset mapping of ernie-m
* Add sequence pretokenizer
* Add sequence pretokenizer pybind
* Fix some offset mapping problem
* Add sequence normalizer, pretokenizer json
* Add some comment for split_rule or filtered_token
* fix get_offset_mapping for ernie-m
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-07-27 22:58:17 +08:00
吴高升
92ca5dc5b9
Chnage test_pairwise.csv to dev_pairwise.csv of neural search ( #2902 )
2022-07-27 22:29:13 +08:00
Jiaqi Liu
a149af9a5a
fix auto usage ( #2883 )
2022-07-26 21:13:21 +08:00
Noel
3787da1f15
[ehealth] move deployment to cblue ( #2881 )
2022-07-26 20:13:09 +08:00
liu zhengxi
8609c92cb1
fix #2665 ( #2877 )
2022-07-26 17:20:42 +08:00
吴高升
174ce23ac6
Update requirements.txt and README of pipelines ( #2842 )
...
* Update requirements.txt and README of pipelines
* Restore semantic search readme
* Remove question answering faq
* Add bash files
* remove pdftotext and update readme
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-07-26 16:07:04 +08:00
Linjie Chen
0722c85fed
Add UIE english model ( #2855 )
...
* add uie-base-en
* add example usage
* fix uie_predictor
* Update README.md
2022-07-26 10:28:54 +08:00
Noel
8ab6d87c9f
[duie] fix NameError brought by using AutoTokenizer ( #2867 )
2022-07-25 19:59:01 +08:00
Noel
5848a9c482
[ernie-health] add onnxruntime deployment ( #2329 )
2022-07-25 19:27:47 +08:00
yingyibiao
e568e07329
fix get_offset_mapping error for Ernie tokenizer ( #2857 )
2022-07-25 10:12:31 +08:00
Guoxia Wang
4d18e4d648
[GPT] Optimize dataset_utils C++ compile ( #2846 )
2022-07-21 20:05:28 +08:00
wawltor
c677a526ec
Update README_cn.md
2022-07-21 14:04:29 +08:00
yingyibiao
8e2f1dced5
Add unittest for bert modeling and tokenizer ( #2624 )
...
* add unittest for bert modeling
* add unittest for bert modeling
* update
* update bert tokenizer unttest
* update bert tokenizer unttest
* update
* fix relative import
* add set_input_embeddings
* update
* update
* fix vocab bug
* delete print statements
* fix get_offset_mapping bug
2022-07-21 10:35:55 +08:00
LixinGuo
5f2115e4c5
add gpt3 fp32 for benchmark ( #2838 )
2022-07-19 20:17:30 +08:00
yingyibiao
7f3c63af22
fix readthedocs ( #2834 )
2022-07-19 17:09:32 +08:00
buchongyu
583a058c62
fix MARKDOWN dead link ( #2817 )
2022-07-19 15:02:26 +08:00
gongenlei
e645d83474
add codegen doc ( #2791 )
2022-07-19 12:09:26 +08:00
Liujie0926
9d11665e7b
[CE] Update hybrid_parallelism gpt run_benchmark.sh to CE ( #2829 )
2022-07-18 18:57:19 +08:00
Yuang Liu
fe9d03c49f
[GPT-3] Optimize gpt-3 with fused op ( #2650 )
...
* use fuse in benchmark
* optim dygraph benchmark
2022-07-18 14:00:35 +08:00
Jack Zhou
0c93356e7e
Fix re2 windows cmake ( #2800 )
2022-07-18 12:09:52 +08:00
yeliang2258
0a618c70f9
Fix deploy doc ( #2811 )
...
* fix deploy doc
* update doc
* update paddle2onnx doc
2022-07-15 16:09:48 +08:00
gongenlei
7745db00b4
test=document_fix ( #2804 )
2022-07-15 00:16:51 +08:00
骑马小猫
48d52c5423
fix resize token embedding method ( #2763 )
...
* fix resize token embedding
* fix embedding len & raise error issue
* fix linting issue
* add vocab_size
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-07-14 21:01:17 +08:00
骑马小猫
6e1372fda7
improve auto model error message ( #2764 )
...
* improve auto model error message
* fix linting of error message of auto modeling
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-07-14 19:14:00 +08:00
gongenlei
0fd17f81bd
Add CodeGen to taskflow ( #2754 )
...
* feat: add codegen to taskflow
* add faster flag
* add docs
* update doc
2022-07-14 15:33:52 +08:00
Yuang Liu
51a8c85867
fix oom for bert large under fp32 ( #2798 )
2022-07-14 13:26:57 +08:00
yeliang2258
b3087c4b4c
Update Ernie3.0 deploy backend ( #2780 )
...
* fix some bugs
* update ernie_predictor, supprot all quantize model on cpu and gpu
* update code
* fix
* update comment
* update code
* update info
* update code, fix bugs
* update code
* update doc
* update doc
* update doc and remove useless code
Co-authored-by: Jiaqi Liu <709153940@qq.com >
2022-07-14 10:47:36 +08:00
Jack Zhou
b4c9dc9686
update faster_tokenizer version and tokenizer warnning log ( #2792 )
2022-07-13 22:44:30 +08:00
Linjie Chen
f1f3eb7b5c
fix windows dtype to int64 ( #2784 )
2022-07-13 19:36:18 +08:00
吴高升
46de583283
Update faq question for inbatch model loading simcse checkpoint and o… ( #2786 )
...
* Update faq question for inbatch model loading simcse checkpoint and optimize the code and readme
* Update Readme of neural search
2022-07-13 15:48:18 +08:00
lugimzzz
063eb2c9f0
change text classification local dataset format from tsv to txt ( #2788 )
...
* change_local_data_format
* change_local_dataset_format
2022-07-13 13:59:48 +08:00
Jack Zhou
50f666a5c9
Fix faster_tokenizer windows compile ( #2744 )
...
* uint -> uint32_t
* fix dependency of icu
* update icu cmake
* Fix uint->uint32_t
* use utf8 instead of unicode character in metaspace
* Fix icu cmake
* Add some cxx flag for windows
* Remove BertPreTokenizer from BertConverter
* Change DBUILD_SHARED
* adjust python.h pos
* remove BUILD_SHARED of re2
* Fix windows package
* Add windows python dll path setting
* Add windows python dll path setting
* Add icu dll copy
* Add faster_tokenizer.libs module
* Fix icu path
* Fix wordpiece save
* use emplace_back instead of push_back to avoid error in windows
* Fix special tokens pretokenization
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-07-13 11:36:55 +08:00
wawltor
9a7394b5ca
update log for the text classification ( #2789 )
2022-07-13 10:02:51 +08:00
吴高升
3910c52631
Fix ImagetoTextConverter missing bug of pipelines for semantic search ( #2768 )
...
* Fix ImagetoTextConverter missing bug of pipelines
* Remove specified version of opencv
2022-07-12 21:16:52 +08:00
wawltor
98c4f399a2
Update README.md
2022-07-12 20:03:38 +08:00
wawltor
54444bbb6d
Update README.md
2022-07-12 20:03:02 +08:00
wawltor
80e64b1774
Update README.md
2022-07-12 20:01:52 +08:00
tianxin
e822ee47a8
Update RGL README ( #2782 )
2022-07-12 16:58:20 +08:00
wawltor
45f23301fd
Update README.md
2022-07-12 12:09:01 +08:00
wawltor
bd4e266ac7
Update README.md
2022-07-12 12:08:00 +08:00
wawltor
60e354aa72
Update README.md
2022-07-12 11:55:34 +08:00
Jack Zhou
c339b03d90
Upgrade paddlenlp.ops.einsum ( #2778 )
2022-07-11 21:52:19 +08:00
Noel
2ced97a583
[few-shot] Add RGL implementation to examples ( #2651 )
...
* [RGL] update implementation and README
2022-07-11 20:54:42 +08:00
Jiaqi Liu
2e34b1669f
Fix question matching typo ( #2775 )
2022-07-11 15:51:14 +08:00
Guo Sheng
548d59aeb6
Support more model outputs for BERT/ERNIE/RoBERTa ( #2665 )
...
* Support more model outputs for BERT.
* Make more task classed support more outputs.
* Convert list to tuple automatically in ModelOutput.
* Support more model outputs for ERNIE.
* Support more model outputs for Roberta.
* Add embedding output to all hidden states.
* Clean import in model_output.py
* Make output of BERT/ERNIE/RoBerta be tensor instead of tuple when the size of tuple is one.
* Make monkey patches for forward of PretrainedModel compatible with the latest forward.
* Add compatibility for patches of paddle.nn.Transformer
* Fix dygraph to static graph with more outputs.
* Fix setattr for subclass of TransformerEncoder such as Electra.
2022-07-11 14:55:28 +08:00
wawltor
cf055c8239
update text_classification readme
2022-07-11 12:08:43 +08:00
wawltor
5813bfd60e
update text_classification readme
2022-07-11 12:06:22 +08:00
yingyibiao
cfd5466861
Fix model downloads recording mechanism ( #2766 )
...
* change model downloadng record mechanism
* change model downloadng record mechanism
2022-07-08 18:32:46 +08:00
Jack Zhou
b5d0d22b38
Fix init_removed of update_range in faster_tokenizer ( #2758 )
2022-07-07 20:10:36 +08:00
wawltor
8a5443b311
Update README.md
2022-07-07 19:12:57 +08:00
Aurelius84
00f05b8456
[Dy2Stat] Adapt to while transformer refactor logic ( #2756 )
2022-07-07 18:22:21 +08:00
lugimzzz
ae17eed919
optimize text classification ( #2727 )
...
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
* optimize_text_classification
Co-authored-by: wawltor <fangzeyang0904@hotmail.com >
2022-07-07 16:13:21 +08:00
Jiaqi Liu
167464c778
Fix import error ( #2752 )
2022-07-07 14:48:15 +08:00
yingyibiao
e95bd9384c
Pass max_position_embeddings arg to MultiHeadAttentionWithRotary class ( #2745 )
2022-07-06 14:35:22 +08:00
littletomatodonkey
38f806d025
fix layout model for relation build ( #2742 )
2022-07-06 14:22:55 +08:00
吴高升
de777fd789
Add c++ and pipeline Paddle Serving Support of ranking model for neural search ( #2721 )
...
* Add c++ and pipeline Paddle Serving Support for neural search
* Add serving code structure for ranking
* slightly small fix of ranking readme and bash files
* Add recall and rank system pipeline
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-07-06 13:54:05 +08:00
Jiaqi Liu
f9231425af
update ernie model to 3.0 ( #2728 )
2022-07-06 10:43:28 +08:00
piotrekobi
a0c9e1d84f
Enable CPU BF16 acceleration in ERNIE 3.0 ( #2730 )
...
* Add --enable_bf16 argument to ernie-3.0
* Fix code style
* Fix codestyle properly (hopefully)
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-07-06 10:37:06 +08:00
吴高升
960fe9e0c3
Merge pull request #2736 from w5688414/pip1
...
Fix the max_seq_len bug of pipelines for semantic search
2022-07-06 09:56:42 +08:00
tianxin
a88cd55765
Merge branch 'develop' into pip1
2022-07-06 09:17:39 +08:00
Jack Zhou
17b76a4a64
Add bpe & unigram tokenizer ( #2536 )
...
* Add Metaspace pretokenizer
* Add bpe, BPEWord and BPE Cache structure
* Add bpe vocab, merges getter
* Remove const from Tokenize
* Add bpe tokenizer impl
* Add bpe json
* Add BPE::Save
* Add shared_mutex for BPE Cache
* Add bpe pybind api
* Fix bpe tokenizer impl
* Fix SequenceNormalizer pybind constructor
* Add SentencePieceBPEFasterTokenizer
* Fix the BPE tokenizer bug
* Add SentencePieceExtractor
* Add sentencepiece_pb2 and SpmConvertor
* add protobuf deps
* Add PrefixMatcher of sentencepiece normalizer
* Add sentencepiece normalizer
* Add precompiled pybind
* Add simple string view
* Fix icu cmake
* use static lib instead of shared lib for icu
* Add precompiled normalizer
* Fix precompiled normalizer
* Add json for PrecompiledNormalizer
* Add PrecompiledNormalizer pybind
* Add ernie-m faster convertor
* Add unigram definition
* Add make_unique; Add Unigram constructor
* Add override impl of unigram
* Add lattice
* Add Tokenize of Unigram
* Add pybind interface of Unigram
* Fix postprocessor of ErnieM
* Fix replace normalizer bug
* Fix EncodeOptimized
* Fix check_number_comma for ernie_m faster tokenizer
* Fix some unigram bug
* remove \p{Cn}
* double -> float
* Fix MapChar
* Fix unigram offset mapping
* fresh format of cpp code in faster tokenizer
* namespace tokenizers -> namespace faster_tokenizer
* Add paddlenlp namespace in faster tokenizer
* remove useless line
2022-07-05 19:58:53 +08:00
w5688414
96b6999ca7
Fix the max_seq_len bug of pipelines for semantic search
2022-07-05 10:03:42 +00:00
littletomatodonkey
989155cd19
fix error when relation is empty ( #2732 )
...
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-07-05 14:48:29 +08:00
Guo Sheng
068a8d9777
Fix Electra inference. ( #2735 )
2022-07-05 13:46:39 +08:00
Linjie Chen
8cbf0f44f6
Update README_en.md ( #2734 )
...
* Update README_en.md
* Update README_en.md
* Update README_en.md
2022-07-05 11:39:26 +08:00
zhoujun
7eba09149d
add dy2static support of LayoutLMv2 SER and LayoutXLM SER ( #2695 )
...
* add dy2static support of LayoutLMv2 and LayoutxLM
* format code
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-07-05 11:19:12 +08:00
wawltor
c5f14a66d2
Update README_cn.md
2022-07-05 11:00:31 +08:00
wawltor
803b41ed4b
Update README_cn.md
2022-07-05 10:59:40 +08:00
Zhong Hui
85f76e50f1
[TRAINER] Optimize logs for benchmark. ( #2684 )
2022-07-05 10:41:27 +08:00
Guo Sheng
2517583397
Update some fluid api usage and fix a typo. ( #2719 )
2022-07-04 21:23:58 +08:00
Linjie Chen
9000712ed0
fix bug of file updating ( #2707 )
...
* fix bug of file updating
* revert change
2022-07-04 19:02:13 +08:00
lugimzzz
0ca48c5553
add multi classification application ( #2675 )
...
* add_multi_classification
* add_multi_classification
* add_multi_classification
* add_multi_classification
* evaluate_on_test_and_dev
* add_triton_server
* add_triton _server
* add_triton_server
* add_doccano_for_text_classification
* modify_multi_classification
* modify_multi_classification
* modify_multi_classification
2022-07-04 17:27:18 +08:00
gmm
93974f0d97
[fix benchmark] add benchmark model epochs ( #2722 )
2022-07-04 15:57:50 +08:00
wawltor
b192b848e5
Update modeling.py
2022-07-02 22:26:18 +08:00
吴高升
f6a8a5a261
Merge pull request #2709 from w5688414/pipeline1
...
Add faiss dependancy and Add utf-8 faq hint of pipelines
2022-07-02 11:03:52 +08:00
吴高升
24edee6549
Merge branch 'develop' into pipeline1
2022-07-02 10:51:38 +08:00
Guo Sheng
131bb80da2
Clean the usage of paddle.fluid ( #2691 )
2022-07-01 23:42:56 +08:00
tianxin
aebb717023
fix README typo of pipelines semantic search for set device: --device gpu/cpu ( #2702 )
2022-07-01 21:39:28 +08:00
w5688414
13e500bf5f
Update faq section font size to 4 level title
2022-07-01 09:23:43 +00:00
吴高升
1f078ef9e4
Merge pull request #2710 from w5688414/neural_search
...
Fix droput prediction bug and Add faq for milvus indexing of neural search
2022-07-01 16:44:10 +08:00
吴高升
94b74c03ec
Merge branch 'develop' into neural_search
2022-07-01 16:43:48 +08:00
w5688414
157ced55fb
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into pipeline1
2022-07-01 08:31:30 +00:00
w5688414
1d5e425a8c
Update faq readme
2022-07-01 08:30:57 +00:00
w5688414
06368eca6d
Fix droput prediction bug and Add faq for milvus indexing
2022-07-01 08:24:27 +00:00
lastrei
b0a60615c1
add infer predict function for PET ( #2690 )
...
* add infer predict function for PET
add infer predict function for PET
* Update predict.py
* Delete predict.py
* Create test.txt
* add infer predict function for PET
add infer predict function for PET
* Delete test.txt
* Create README.md
* Delete predict.py
* fix review
fix review
* Update README.md
* Delete predict.py
* Add files via upload
* Delete predict.py
* Add files via upload
* codestyle fix
Co-authored-by: wawltor <fangzeyang0904@hotmail.com >
2022-07-01 16:21:38 +08:00
w5688414
40734bb3af
Add faiss dependancy and Add utf-8 faq hint
2022-07-01 08:00:31 +00:00
wawltor
67d512b240
Update infer.py
2022-07-01 10:26:01 +08:00
Roc
5e3a588de4
[Benchmark] Adapted for benchmark ips for MOE ( #2700 )
...
* Adapted for benchmark ips
2022-06-30 20:36:14 +08:00
wawltor
7fa724472c
update the document for the pet ( #2692 )
2022-06-30 17:36:40 +08:00
Linjie Chen
0650e01bbe
Update README.md for UIE ( #2679 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-06-30 12:09:26 +08:00
lugimzzz
683d14ed55
add multi label classification application ( #2661 )
...
* add_multi_label_classification
* add_multi_label_classification
* add_multi_label_classification
* modify_hierarchical_classification
* evaluate_on_test_and_dev
2022-06-30 10:31:27 +08:00
wawltor
4718676968
Update README_en.md
2022-06-29 21:32:31 +08:00
wawltor
4e31451d30
Update README_cn.md
2022-06-29 21:16:42 +08:00
Jiaqi Liu
7dfacbdfb3
remove fluid api ( #2682 )
2022-06-29 19:24:49 +08:00
Haohongxiang
4d40a2ea80
[MOE] fix bugs of PR-2633 ( #2683 )
2022-06-29 17:41:44 +08:00
lugimzzz
737a300030
Merge pull request #2591 from lugimzzz/add_new_dataset
...
add cail2018 small dataset
2022-06-29 14:17:47 +08:00
lugimzzz
f5cb6b85fb
Merge branch 'develop' into add_new_dataset
2022-06-29 14:16:39 +08:00
Jiaqi Liu
77873b0fe9
Update ernie-3.0 readme ( #2678 )
...
* udpate ernie-3.0 readme
* udpate ernie-3.0 readme
2022-06-29 13:53:19 +08:00
吴高升
95f963339c
Remove ernie-1.0 pretraining of neural search ( #2652 )
...
* Remove ernie-1.0 pretraining of neural search
* Update Readme of neural search
* Delete domain apaptive pretraining readme
2022-06-29 13:26:07 +08:00
Jiaqi Liu
7ffd30e6ed
Remove hard code on Trainer compress ( #2668 )
...
* remove hard code on trainer compress
* model.init_config[init_class]->model.__class__.__name__
2022-06-28 19:56:32 +08:00
lastrei
9230a1eaa7
add export infer model function for PET ( #2671 )
...
* Add files via upload
add export infer model for PET
* Update export_model.py
* Update export_model.py
2022-06-28 18:57:23 +08:00
吴高升
d7ae773f79
Update Evaluate while training to find the best model ( #2663 )
...
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-06-28 17:00:02 +08:00
Jiaqi Liu
0fb361753f
optimize ernie 3.0 readme, add faster tokenizer ( #2594 )
2022-06-28 15:15:11 +08:00
Zhong Hui
2710b7d454
[BugFix] Remove is_init_py of RandomGenerator ( #2658 )
2022-06-28 10:28:06 +08:00
gongenlei
c19372bca1
[CodeGen] Add CodeGen model for code generation ( #2641 )
...
* feat: add CodeGen model
* update copyright
2022-06-28 10:19:34 +08:00
sneaxiy
42311124dc
fix dir error ( #2660 )
2022-06-27 22:37:14 +08:00
Linjie Chen
a5760045d2
Add uie-mini, uie-micro and uie-nano for UIE ( #2604 )
...
* add uie-mini, uie-micro and uie-nano
* update README.md
* Update README.md
2022-06-27 19:47:46 +08:00
gongenlei
dbf57dd77a
doc: update MBartForConditionalGeneration docstring ( #2655 )
2022-06-27 18:55:43 +08:00
yujun
7e1a4332d5
override xlm's tokenize method ( #2551 )
...
Co-authored-by: gongenlei <gongel@qq.com >
2022-06-27 16:06:07 +08:00
骑马小猫
ad36a14f73
fix skep tokenizer and samefile ( #2648 )
...
* fix skep tokenizer
* change samefile to abspath
Co-authored-by: Guo Sheng <whucsgs@163.com >
2022-06-27 13:16:29 +08:00
Zhong Hui
40417bf8de
[CodeStyle] Remove some code with paddle.fluid ( #2633 )
...
* remove fluid
2022-06-27 11:48:41 +08:00
lugimzzz
08f0633296
add hierarchical text classification ( #2501 )
...
* add_hierarchical_classification
* modify_wos_dataset
* optimize_codes
* add_paddle_serving
* add_paddle_serving
* add_paddle_serving
2022-06-27 11:20:27 +08:00
Guo Sheng
38629479f5
Revert "Support more model outputs for BERT/ERNIE/RoBERTa ( #2583 )" ( #2647 )
...
This reverts commit dab5e26f3e .
2022-06-27 11:18:48 +08:00
lugimzzz
eb43ab76b4
add_cail2018_small_dataset
2022-06-27 02:50:17 +00:00
Guo Sheng
dab5e26f3e
Support more model outputs for BERT/ERNIE/RoBERTa ( #2583 )
...
* Support more model outputs for BERT.
* Make more task classed support more outputs.
* Convert list to tuple automatically in ModelOutput.
* Support more model outputs for ERNIE.
* Support more model outputs for Roberta.
* Add embedding output to all hidden states.
* Clean import in model_output.py
2022-06-27 00:34:33 +08:00
ZeyuChen
9fda199877
Update paddlenlp logo link
2022-06-26 21:38:23 +08:00
骑马小猫
7838255d9a
fix chinese bert tokenizer unexpected parameter ( #2625 )
...
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-06-26 17:20:37 +08:00
Linjie Chen
03dcbeff74
Support evaluation for each class separately ( #2626 )
...
* add batch_size for predictor and support evaluate separately
* fix typos and update README.md
* update uie_predictor
* replace separated to debug flag
* compatible with classification tasks
* update debug mode
* update debug mode
2022-06-24 18:18:26 +08:00
yingyibiao
c92810b1ff
Support resize_position_embeddings for layoutlm-models ( #2513 )
...
* support resize_position_embeddings for layoutlm-models
* modify resize_position_embeddings
2022-06-24 16:44:43 +08:00
骑马小猫
497dedd63b
add _entity_file field to LukeTokenizer ( #2631 )
...
* add _entity_file field
* remove none resouce file checking
* use with keyword to do open file operation
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-06-24 15:37:13 +08:00
Guo Sheng
14b476893c
Fix special token settings in PretrainiedTokenizer. ( #2629 )
2022-06-24 11:14:34 +08:00
liu zhengxi
0315365dba
fix gpt-3 on pdc ( #2618 )
2022-06-23 15:12:32 +08:00
LiYuRio
8dd2e2a41d
inference support amp ( #2505 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-06-23 12:20:19 +08:00
Roc
634c2e7759
[GPT-3] Fix reader of gpt-3 static graph for pipeline mode ( #2564 )
2022-06-23 10:17:33 +08:00
Linjie Chen
fc0313b3e4
fix UIE evaluation ( #2558 )
2022-06-22 20:06:56 +08:00
wawltor
761c295d25
update uie document for the probs of train and valid datasets
2022-06-22 14:36:25 +08:00
Jack Zhou
baf322f20a
Use AdamW with lr_ratio setting instead of AdamWDL ( #2576 )
...
* Use AdamW with lr_ratio setting instead of AdamWDL
* remove AdamWDL
* remove AdamWDL docs
* Add AdamWDL
* restore adamwdl docs
* Fix adamwdl bug
* Remove fluid
2022-06-21 19:58:36 +08:00
wawltor
1710fb26c4
update the Taskflow document
2022-06-21 16:28:11 +08:00
Jiaqi Liu
397319997b
fix clue chid eval bug, and add faster tokenizer for tinybert ( #2574 )
2022-06-21 14:32:03 +08:00
lugimzzz
805ecf3a23
add_cail2018_small_dataset
2022-06-21 04:01:26 +00:00
吴高升
070322f6e1
Fix default model loading bug of neural search ( #2588 )
...
* Fix default model loading bug
2022-06-20 21:46:52 +08:00
westfish
156b6761e8
add resize_token_embeddings to Class PretrainedModel ( #2423 )
...
* add resize_token_embeddings to Class PretrainedModel
* update resize_token_embeddings
* update_new_embedding_weight_setting
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-06-20 20:30:41 +08:00
骑马小猫
b3d93484e2
checking existence of file before copy ( #2578 )
...
* checking existence of file before copy
* update save_resources
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-06-20 19:41:09 +08:00
Jiaqi Liu
ae97b77778
Update CLUE result and pictures ( #2532 )
...
* add some result for ernie3.0
* update table
* update readme
* fix table
* update
* fix black
* fix img
* update picture and table for ernie 3.0 and clue
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-06-20 19:03:04 +08:00
Roc
7f5f43aa31
[Benchamrk] Fix gpt-3 TIPC script for hybrid parallel. ( #2530 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-06-20 14:44:45 +08:00
wawltor
536ab141f5
Add the WordTag-IE tool ( #2540 )
...
* add the wordtag-ie
* add the document for the wordtag ie taskflow
* add the wordtag ie document
* update the parameter for the wordtagie
* update the example for the wordtag-ie
* update the taskflow and wordtag-ie document
2022-06-20 10:35:00 +08:00
taixiurong
662ec5aaa4
[BugFix] Fix save models when reach max_steps for bert ( #2556 )
2022-06-18 11:41:59 +08:00
freeliuzc
7833edf910
Update installation.rst ( #2543 )
...
* Update installation.rst
增加“使用Docker镜像体验PaddleOCR”章节
* Update installation.rst
fix bug
2022-06-17 21:28:16 +08:00
liu zhengxi
0ebb047b98
[Benchmark] Add more bs setting for bert base ( #2563 )
2022-06-17 19:35:41 +08:00
gongenlei
222fc3154a
[FasterBART] Suppport dygraph to static and inference ( #2519 )
...
* suppport d2s and inference
* default to beam_search
* add comments
* update tokenizer usage
* rm disable_faster_encoder
2022-06-17 18:50:07 +08:00
gongenlei
5901915881
Fix sampling decoding when model without parallel ( #2561 )
...
* fix sampling error
* fix sampling error
Co-authored-by: liu zhengxi <380185688@qq.com >
2022-06-17 18:41:36 +08:00
骑马小猫
417ccafef9
Improve tokenizer ( #2521 )
...
* fix tokenizer isfile checking code
* save model_config file when calling from_pretrained
* add unittest for testing all of models & tokenziers
* add test code for from_pretrained
* add name in todo & add docstring in test method
* save tokenizer config & additional resource files
* add unit test for multprocessing writing file
* remove return
* using the class-scope method to save config file
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-06-17 18:29:04 +08:00
Guo Sheng
42bf0f78a6
Fix AddToken settings in tokenizers ( #2534 )
...
* Fix AddToken settings in tokenizers.
* Fix _build_special_tokens_map_extended
2022-06-17 16:01:44 +08:00
gongenlei
2f366e4d50
fix tokenize ( #2549 )
2022-06-17 12:40:48 +08:00
曾小健
7f7f7d09f9
Update trans_to_json.py ( #2544 )
...
Bug fix:如果不加,win报如下错误,加进去就好了。
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 45: illegal multibyte sequence
2022-06-17 00:07:48 +08:00
liu zhengxi
f10575dea9
Update fluid APIs ( #2469 )
...
* update fluid apis
* update
2022-06-16 22:25:14 +08:00
曾小健
4a23b50ade
Update evaluate.py ( #2537 )
...
fix typo of in_batch_negative evaluate.py
2022-06-16 15:57:37 +08:00
Yuang Liu
bc84454065
[Benchmark] Optimize Bert using fused_ffn and fused_attention ( #2523 )
...
* framework for fused transformer
* fused ffn and fused attention
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-06-16 14:21:10 +08:00
yujun
07bafdc688
[NEW MODEL] Add_XLM_model ( #2080 )
...
* Add-XLM-model
* use try_import
* tensor.shape -> paddle.shape
* add xlm xnli example
* add copyright
* add missing args
* en->language
* en->language
* en->language
* update xlm example readme
* update tokenizer and readme
* update xlm tokenizer
* update
* update
* codestyle
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-06-16 11:21:43 +08:00
Jiaqi Liu
d95cfc314f
Add UER-py and HFL Chinese RoBERTa models ( #2437 )
...
* Fix clue grid search bug
* fix
* fix cmrc2018 filename
* Update run_mrc.sh
* add uer-roberta
* update model name for roberta models
* update uer
* update ernie 3.0 run_qa.py
* remove useless symbols
* make tinybert support faster_tokenizer, add rbt4, UER-py/RoBERTa-6L768H
* add rbt6
* add org name
* fix table format
* Add org name for rbt
2022-06-15 15:42:20 +08:00
Zhong Hui
be6a077d59
[ERNIE] Add split args on readme. ( #2518 )
...
* Update README.md
* Update README.md
* Update run_gb512_s1m.sh
* Update run_gb512_s1m_static.sh
* Update run_gb512_s1m_trainer.sh
* Update run_gb512_s1m_static.sh
2022-06-15 15:41:42 +08:00
Zhong Hui
835aed06d8
[DOC] Update domain_adaptive_pretraining README.md ( #2522 )
2022-06-15 14:58:27 +08:00
Zhong Hui
e135626896
[ERNIE-1.0] Fix bug for load checkpoint while using amp 02 save_dtype ( #2479 )
2022-06-15 11:07:48 +08:00
Zhong Hui
a93bdffb47
[Trainer] Support constant and consine lr scheduler ( #2511 )
...
* support constant and consine lr scheduler
* fix doc
* delete
* add doc
2022-06-14 23:06:52 +08:00
Jack Zhou
6ccc0be765
Add template postprocess module for faster_tokenizer ( #2516 )
...
* Add template postprocessing
* add template json
* move template.cc to faster_tokenizers
* Add template processing pybind
Conflicts:
faster_tokenizer/faster_tokenizer/src/core/CMakeLists.txt
* tmp template pybind
* Fix template processor pybind __init__
* Fix template processing overflowing bug
* fix from_json of template piece
2022-06-14 23:05:55 +08:00
LiYuRio
1f446ff575
[GPT-3] Add GPT configs 89B and 175B ( #2504 )
...
* Add configs for 89B and 175B
2022-06-14 19:07:06 +08:00
Jack Zhou
d99b333543
Fix bert offset mapping ( #2508 )
2022-06-14 17:43:53 +08:00
Roc
b07a41787f
Fix benchmark gpt ( #2509 )
...
* update scripts
* fix dp2mp2pp2 in benchmark
2022-06-14 17:43:21 +08:00
Haohongxiang
4d384e513c
add benchmark of sharded moe ( #2507 )
2022-06-14 16:05:18 +08:00
LixinGuo
baf0247996
benchmark change hybrid_parallelism gpt N4C8 to N4C32 ( #2499 )
2022-06-14 11:17:15 +08:00
Jack Zhou
5bc1b98624
faster_tokenizers->faster_tokenizer ( #2503 )
...
* faster_tokenizers->faster_tokenizer
* update version
* FasterTokenizers->FasterTokenizer
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-06-14 10:18:50 +08:00
heliqi
5cd8fd5b29
add tokencls triton inference server for ernie-3.0 ( #2502 )
...
* add triton service for ernie-3.0
* modify triton code
* Optimize the triton server code
* Optimize the triton server code
* triton server add tokencls
2022-06-14 00:33:28 +08:00
WangXi
016db3c15c
[GPT-3] Add fused_multi_transformer for inference ( #2500 )
2022-06-13 20:58:39 +08:00
liu zhengxi
7c06b02e31
update yapf ( #2464 )
2022-06-13 20:04:14 +08:00
yeliang2258
837d06ad58
Add model_path_correction func ( #2498 )
...
* add model_path_correction
* fix bug
2022-06-13 19:56:21 +08:00
Zhong Hui
7b971c442b
fix-albert-pad-token-id ( #2495 )
2022-06-13 19:53:00 +08:00
Zhong Hui
43c6c46ae2
[Benchmark] update clue result of ernie ( #2492 )
...
* update clue result
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-06-13 15:13:10 +08:00
lidanqing
d33892863e
Add ernie-3.0 mkldnn fp32 and int8 support ( #2468 )
...
* add ernie-3.0 mkldnn fp32 and int8 support
* fix code style
* fix doc
* update
2022-06-13 12:36:50 +08:00
Jack Zhou
31deea6c98
Add faster wordpiece tokenizer ( #2297 )
...
* Add faster wordpiece model, still need to implement tokenize and construct trie.
* Add trie constructor
* Fix naming style
* implement trie constructor
* Add utils function for faster wordpiece
* Add faster wordpiece python api
* Fix reference to pointer
* FasterWordPiece TokenToId
* Add IsChineseOrPunction api
* Add Failure structre
* Add FailureVocabToken
* Add failure_array constructors
* Add FasterWordPiece Tokenize
* Implement TryHandleContinuingSubWordPrefix
* remove faster_wordpiece_tokenizer
* Fix FasterWordpiece
* add faster_wordpiece
* Fix pybind exception
* Part I: Add trie and failure array constructor of End2End faster wordpiece
* Part II: Add End2End faster wordpiece
* Fix faster wordpiece end2end version
* fix use_faster_wordpiece_with_pretokenization
* Fix save api
* Fix SetWithPretokenization
* Add copyright
* Fix Normalization update_offset; Add unittest for faster wordpiece tokenizer
* Fix the overflowing offset setting
* Fix the pair encoding truncate
* faster_tokenizers->faster_tokenizer
* Add replace normalizer json
* Add replace normalizer json unittest
* Add strip normalizer json
* Add unicode normalizer json
* Add Lowercase, Sequence json
* Fix Sequence json
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-06-10 23:31:45 +08:00
lugimzzz
79412aa3fc
add Web of Science(WOS) dataset(a hierarchical text classification dataset) ( #2467 )
...
* add_wos_dataset
* add_wos_dataset
2022-06-10 22:32:03 +08:00
吴高升
b8881b5519
fix winindows bugs ( #2482 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-06-10 22:29:26 +08:00
Linjie Chen
dbda1f50a6
revert update on predictor ( #2483 )
2022-06-10 21:58:48 +08:00
Roc
617fee64dc
add benchamrk for hybrid parallel GPT ( #2459 )
...
* update scripts
* Update run_benchmark.sh
2022-06-10 17:58:20 +08:00
Roc
681d5e21b5
调高max_iter/max_epochs, 解决benchmark性能波动问题 ( #2475 )
...
* 调高max_iter/max_epochs, 解决benchmark性能波动问题
* revert max_epochs of dp/gpt
2022-06-10 17:53:47 +08:00
liu zhengxi
d1c683dbfd
rename filename ( #2480 )
2022-06-10 17:44:44 +08:00
Linjie Chen
ce61f68323
fix bug of doccano conversion ( #2477 )
...
* fix doccano annotation
* fix predictor
2022-06-10 17:12:06 +08:00
Linjie Chen
94bb8db332
fix bug of offset overlapping ( #2453 )
...
* fix bug of prompt offset
* add comments
* add comments
* update variable name
* fix grammar
* fix dtype
* fix dtype
2022-06-10 14:13:27 +08:00
Linjie Chen
647dc69c74
Support to use doccano to label aspect-level classification task ( #2457 )
...
* add aspect cls labeling
* add aspect-level cls task
* change logger level
* remove unused comments
* Update README.md
* change logger level
* Update README.md
* resolve conflict
* resolve
* Update predictor
* Update README.md
2022-06-10 11:50:14 +08:00
wawltor
ececddb03e
Update README.md
2022-06-10 10:36:55 +08:00
liu zhengxi
b72d37f13d
Support FasterTransformer compiled with paddle inference lib with onnx ( #2463 )
...
* add onnx support
* update readme
2022-06-09 22:45:50 +08:00
tianchunfeng
80d22aafd2
a typo for PaddleNLP v2.2 release date . ( #2461 )
...
2022.12.12 **PaddleNLP v2.2**发布 => 2021.12.12 **PaddleNLP v2.2**发布
2022-06-09 22:44:49 +08:00
Haohongxiang
636e2e5efb
[MoE] Support Eager Dygraph and Group Sharded Parallel in MoE model ( #2392 )
...
* support eager moe
* support eager sharded moe
2022-06-09 15:08:33 +08:00
zche4846
0fae3067aa
【Hackathon No.77】基于ERNIE_DOC完成长文本分类任务 ( #1845 )
...
* add ernie_doc example
* add README file
* bug fix
* bug fix
* space to tabs
* trim trailing space
* trim trailing space
* trim trailing space
* trim trailing space
* end of file line
* end of file line
* end of file line
* yapf
* yapf
* yapf
* yapf
* change copyright info
* delete redundant code & modify copyright info & compatibility improvement.
* editing docstrings & rewriting memories initiation method for static mode.
* code style fix
* editing docstrings for variable 'memories'
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: Jack Zhou <zhoushunjie@baidu.com >
2022-06-09 14:55:55 +08:00
wawltor
db33f19a01
Update taskflow.md
2022-06-09 13:07:42 +08:00
Roc
e4de45f3e0
Add MOE benchmark ( #2404 )
...
* add scripts
* set --resume unreqired
* update
2022-06-09 11:18:24 +08:00
gongenlei
2027317693
fix: close file for unittest ( #2445 )
2022-06-08 21:55:27 +08:00
Beacontownfc
b34c318a5c
Add rembert to auto ( #2450 )
...
* add rembert to auto
* recover
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-06-08 19:03:09 +08:00
yeliang2258
9af11bb465
change cpu count func ( #2448 )
2022-06-08 18:01:32 +08:00
yingyibiao
9805556535
Fix RoBERTa docs ( #2446 )
...
* fix docs
* fix docs
2022-06-08 15:33:56 +08:00
Zhong Hui
cec1caf485
delete old style code for ernie hybrid parallel. ( #2429 )
2022-06-08 01:09:54 +08:00
yingyibiao
1b904b7cb0
fix deadlinks ( #2427 )
2022-06-07 18:18:24 +08:00
yingyibiao
64ac2f404b
remove Model suffix ( #2426 )
2022-06-07 16:11:02 +08:00
骑马小猫
3ec1d35f7f
fix tokenizer isfile checking code ( #2424 )
...
* fix tokenizer isfile checking code
* fix code style
2022-06-07 10:30:23 +08:00
yeliang2258
75edf33e3b
Fix datas to data ( #2410 )
...
* fix datas to data
* update code
* change all_data to texts in triton deploy
2022-06-06 21:10:45 +08:00
yingyibiao
0e76981a54
fix deadlink ( #2419 )
2022-06-06 20:18:29 +08:00
Linjie Chen
f6b3ccac92
fix data type for ddparser output ( #2422 )
2022-06-06 20:17:55 +08:00
Linjie Chen
5abaaecd93
fix bugs in doccano.py and task.py ( #2417 )
...
* optimize code
* optimize code
2022-06-06 14:03:20 +08:00
ZeyuChen
41daa257de
Remove old news
2022-06-05 13:43:33 +08:00
tianxin
7d1d6fe3ac
specify protobuf version ( #2406 )
...
* update pipeline README
* specify protobuf version
2022-06-02 20:23:38 +08:00
Guo Sheng
8fdf42d9db
Update requirements. ( #2407 )
2022-06-02 20:23:27 +08:00
Linjie Chen
6ab0ee3872
revert version control for scipy ( #2405 )
...
* revert version control for scipy
* revert
2022-06-02 19:16:25 +08:00
骑马小猫
2a6b6c6c18
fix issue: #2387 to make tokenizer more robust ( #2395 )
...
* fix issue: #2387
* format code
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-06-02 18:04:56 +08:00
Linjie Chen
0432c12691
Add version control for scipy on windows ( #2403 )
2022-06-02 17:39:49 +08:00
Roc
dc1b8238fb
add scripts ( #2398 )
2022-06-02 17:25:35 +08:00
Zhong Hui
d911bf2bf2
Change to pretrained weight to ernie-1.0-large-zh-cw ( #2400 )
...
* change to ernie-1.0-large-pp-zh
* change to ernie-1.0-large-zh-cw
2022-06-02 17:21:23 +08:00
Linjie Chen
f428a8c046
add version control for scipy ( #2396 )
2022-06-02 16:17:32 +08:00
heliqi
0a94ab4360
add triton service for ernie-3.0 ( #2350 )
...
* add triton service for ernie-3.0
* modify triton code
* Optimize the triton server code
* Optimize the triton server code
2022-06-02 16:07:31 +08:00
Severus Q
56783d90b3
update wordtag doc ( #2393 )
2022-06-02 14:39:54 +08:00
Haohongxiang
75735a8585
[MoE] Add MoE model pretrain and support MoE+DP ( #2385 )
...
* support moe+dp
2022-06-02 11:10:44 +08:00
yeliang2258
f982df890a
fix paddle2onnx postprocess bug ( #2386 )
2022-06-02 04:06:59 +08:00
Jiaqi Liu
c367f8f38e
Optimize clue grid search tools ( #2313 )
...
* optimize clue grid search
* update grid search
* update logger
* new warmup file
* fix grd search filename bug, optimize warmup, fix logger, fix logger extractor
* fix log
* update grid search tools
* add seed in argument list
* optimize
* update grid search according to comments
* avoid recomputing when running again.
* add num_proc args
* update readme
* update readme and extract script
* update grid search doc
* add index for readme
* fix index format
2022-06-01 22:05:02 +08:00
kev
058a43aae4
fix bug: 'dict_keys' object is not subscriptable when 'load_from_hf' in 'load_dataset' ( #2364 )
...
* fix bug: NPTag postprocess
* fix bug: 'dict_keys' object is not subscriptable when load_dataset(path)
Co-authored-by: wangkaifu <wamgkaifu@yinxiang.com >
2022-06-01 17:33:07 +08:00
Zhong Hui
9a80a9c303
change ernie-3.0-xbase-zh dropout to 0.1 ( #2382 )
2022-06-01 17:17:09 +08:00
吴高升
99673ad382
Fix the WR bug and recall script bug ( #2381 )
...
* Fix the WR bug and recall script bug
* Cast pad type to int64
* Cast the input type to int 64
* Cast padd to int64
2022-06-01 16:40:53 +08:00
Zhong Hui
25b41ea854
Delete pretraining_data_prepare of bert ( #2379 )
...
* delete pretraining_data_prepare
* Update README.md
2022-06-01 15:52:47 +08:00
Jiaqi Liu
3082fc07f6
Add ERNIE 3.0-Mini/Micro/Nano clue result ( #2373 )
...
* update ernie-3.0-tiny-clue-result
* black acc value
* update ernie3.0 readme
* update format of table
2022-06-01 14:32:07 +08:00
Bin Lu
e1014ee6fa
update layoutxlm/modeling.py ( #2285 )
...
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-06-01 00:31:59 +08:00
WangXi
1a8c099139
gpt fused attention and feedforward ( #2277 )
...
* gpt add fuse attn ffn
* add fuse args
* update doc
* use FusedFeedForward and FusedMultiHeadAttention from paddle
* pre-commit
2022-05-31 23:51:06 +08:00
yingyibiao
38efa7947d
Reformat XLNet modeling.py for converting to static ( #2066 )
...
* modify xlnet
* modify xlnet
* modify xlnet
* modify xlnet
2022-05-31 23:48:38 +08:00
tianxin
e608d9056a
update pipeline README ( #2366 )
2022-05-31 23:35:35 +08:00
yingyibiao
d34b51d66e
[Docs] Update names of pretrained model weights ( #2374 )
...
* modify bert
* modify distilbert
* modify electra
* modify gpt
* modify gpt
* modify roberta
2022-05-31 23:13:37 +08:00
wawltor
910da2e308
update the parameter for the wordtag ( #2375 )
...
* update the parameter for the wordtag
* update the url of new format
2022-05-31 23:13:17 +08:00
Milen
ba69fd7e9c
optimize code in ocr and mrc module ( #2377 )
...
* initial commit
* modify _calc_img_embeddings to support running without img embedding.
* remove commented code
* delete README
* refine readme.md
* change question
* modify layoutxlm to support traing without image embedding
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* refine .gitignore
* refine Rerank with pre-commit
* refine Extraction with pre-commit
* refine code and readme details
* refine coding
* refine code style about imports
* refine README
* set CUDA_VISIBLE_DEVICES 0
* refine code style
* refine readme
* refine readme
* delete ocr parsing file
* refine readme
* refine readme
* refine README.md
* refine readme
* refine readme
* refine readme
* optimize ocr and mrc module
* refine code style
* set params with argparse
* rename max_seq_length to max_seq_len
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-05-31 22:46:17 +08:00
heliqi
d5bd2d9b5a
fix token_cls postprocess bug ( #2376 )
2022-05-31 22:16:21 +08:00
Zhong Hui
3b3f09b979
add ernie-1.0-large-zh ( #2372 )
2022-05-31 20:37:28 +08:00
Linjie Chen
8c86f33dd0
Add deploy for UIE ( #2307 )
...
* Add deploy for UIE
* add paddle inference
* add infer
* add onnxruntime predictor for taskflow
* remove unused file
* Update predictor
* Update predictor
* Update README.md
* fix codestyle
* fix codestyle
* update num_threads default value
* update tokenizer
* update tokenizer
* Update README.md
* Update README.md and remove num_threads
2022-05-31 20:31:10 +08:00
Guo Sheng
d0bbb9070d
Update paddle version compare for DataLoader patch. ( #2362 )
2022-05-31 13:15:00 +08:00
Jiaqi Liu
47b32efb86
fix couplet windows dtype bug ( #2351 )
2022-05-30 13:04:10 +08:00
Milen
4a6b26c14b
refine readme ( #2310 )
...
* initial commit
* modify _calc_img_embeddings to support running without img embedding.
* remove commented code
* delete README
* refine readme.md
* change question
* modify layoutxlm to support traing without image embedding
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* refine .gitignore
* refine Rerank with pre-commit
* refine Extraction with pre-commit
* refine code and readme details
* refine coding
* refine code style about imports
* refine README
* set CUDA_VISIBLE_DEVICES 0
* refine code style
* refine readme
* refine readme
* delete ocr parsing file
* refine readme
* refine readme
* refine README.md
* refine readme
* refine readme
* refine readme
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-05-26 20:02:13 +08:00
Zhong Hui
54115c9e0f
[ERNIE-2.0] Add ernie-2.0-base-zh ernie-2.0-large-zh ( #2279 )
...
* add ernie-2.0-base-zh ernie-2.0-large-zh
* fix ernie xbase.
2022-05-26 19:59:08 +08:00
Linjie Chen
25acac7f64
fix padding for 1-D array ( #2333 )
2022-05-26 19:47:24 +08:00
ShenLiang
7c3a7e4e3b
[GPT-3][dygraph] Fix pipeline in new dygraph ( #2314 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-05-26 16:29:14 +08:00
Noel
f08ad860fe
[uie] update uie-medical-base parameter ( #2327 )
...
* [uie] update uie-medical-base parameter
* [uie] update uie-medical-base link
2022-05-26 15:28:48 +08:00
Linjie Chen
ea2925d2aa
fix typos ( #2322 )
2022-05-26 14:02:40 +08:00
yeliang2258
81bb1e7915
add onnx model support in infer.py ( #2319 )
2022-05-26 11:07:56 +08:00
Jack Zhou
3e76bb1f69
Fix the error when using AutoTokenizer to load ernie model ( #2315 )
2022-05-25 22:38:42 +08:00
Linjie Chen
1c3472a4af
fix dimension conversion ( #2312 )
2022-05-25 18:25:03 +08:00
Linjie Chen
2e1b4d2d40
Update negative examples generation strategy ( #2304 )
...
* Update negative examples generation
* remove uie-medical-base
2022-05-25 15:33:17 +08:00
yujun
aebd26eb21
[NEW Model] Add GAU-alpha model ( #2088 )
...
* add gau_alpha model
* a.shape[-2] -> paddle.shape(a)[-2]
* update token type id
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-05-25 15:20:34 +08:00
gongenlei
a1df427c5b
add ErnieMForMultipleChoice ( #2293 )
2022-05-24 23:27:18 +08:00
Jiaqi Liu
461fc20d9c
fix clue chid log bug ( #2298 )
2022-05-24 12:51:53 +08:00
Yantao
c21d13ea43
doc: fix typo in README_cn.md ( #2299 )
...
fix one typo in README_cn.md
Python百余被 -》 Python百余倍
2022-05-24 12:50:38 +08:00
lilong12
b19c8e449f
[Benchmark] Modify the batch size to consistent with other configurations ( #2296 )
2022-05-24 10:51:45 +08:00
Linjie Chen
a5f91d8c37
Update negative example generation method for UIE ( #2264 )
...
* Update negative example generation method
* Update comments
* Update doccano.md
* Update READMD.md
* Update README.md
* Update README.md
* Update README.md
* remove uie-medical-base
* Compatible with doccano >= 1.6.2
* Update args
2022-05-24 09:59:38 +08:00
liu zhengxi
5d2cfd49ac
add bs64 fp16 & fp32 benchmark ( #2291 )
2022-05-23 21:11:49 +08:00
Jiaqi Liu
76b56f3967
Make CLUE benchmark run automatically ( #2229 )
...
* make clue class auto run
* make mrc task run automatically
* fix code styke
* optimize running time
* add extract script
* add clue auto run
* add grid search readme
* fix grid search bug
* add ppminilm qa and multiple choice class
* fix cmrc launch bug
* delete useless file
* rename file name
* fix print error
* delete useless script
* fix extract result
* update readme
* update dataset process
* fix cache argmument
2022-05-23 20:58:35 +08:00
Milen
89e93cc7a1
refine readme ( #2292 )
...
* initial commit
* modify _calc_img_embeddings to support running without img embedding.
* remove commented code
* delete README
* refine readme.md
* change question
* modify layoutxlm to support traing without image embedding
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* refine .gitignore
* refine Rerank with pre-commit
* refine Extraction with pre-commit
* refine code and readme details
* refine coding
* refine code style about imports
* refine README
* set CUDA_VISIBLE_DEVICES 0
* refine code style
* refine readme
* refine readme
* delete ocr parsing file
* refine readme
* refine readme
* refine README.md
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-05-23 20:50:40 +08:00
lilong12
790cd014dc
[Benchmark] Keep the benchmark script names to be consistent with the run mode ( #2286 )
2022-05-23 16:54:00 +08:00
ZeyuChen
8bea40f836
Update README and setup.py
2022-05-23 13:27:59 +08:00
ZeyuChen
a3a8321747
Update README and setup.py
2022-05-23 13:19:10 +08:00
ZeyuChen
2a994320e3
Optimize Chinese README
2022-05-22 16:17:49 +08:00
lilong12
b02f6c615f
update ( #2278 )
2022-05-20 20:08:38 +08:00
liu zhengxi
2453f2fc5f
set shuffle false ( #2270 )
2022-05-20 20:02:06 +08:00
Jiaqi Liu
3aa2c30f2c
fix compress trainer export ( #2276 )
2022-05-20 20:01:31 +08:00
lilong12
ac08a5b7fd
Modify some benchmark configurations ( #2269 )
2022-05-20 17:05:51 +08:00
Zhong Hui
b114842121
Add ernie xbase model. ( #2262 )
2022-05-20 15:56:06 +08:00
Jiaqi Liu
4d14ab7209
add ERNIE3.0-Mini/Micro/Nano models ( #2267 )
2022-05-20 15:55:03 +08:00
gongenlei
7d48acd907
adapt to new tokenizer ( #2261 )
2022-05-20 10:48:43 +08:00
liu zhengxi
6ac63220c7
fix deploy ( #2266 )
2022-05-20 10:46:27 +08:00
WangXi
ee5aa26331
[GPT-3] Add gpt-3 dist inference demo scripts. ( #2265 )
2022-05-20 10:41:41 +08:00
Noel
5773fa2d45
Merge pull request #2263 from LemonNoel/fix_electra
...
[electra] Fix do_lower_case attribute error
2022-05-20 10:15:17 +08:00
Noel
1e18e09f8d
Merge branch 'develop' into fix_electra
2022-05-20 09:59:59 +08:00
Huijuan Wang
3e55cb4656
[electra] fix do_lower_case attribute error
2022-05-19 22:33:52 +08:00
Zeyu Chen
ad73c59af8
Update README.md
2022-05-19 20:17:13 +08:00
Zeyu Chen
6716b91220
Update README_cn.md
2022-05-19 19:07:12 +08:00
Zeyu Chen
f917e188ae
Switch to Chinese README
2022-05-19 18:48:57 +08:00
Zeyu Chen
f942c42085
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-05-19 18:39:41 +08:00
Zeyu Chen
da68bd43be
Update README
2022-05-19 18:39:36 +08:00
lilong12
e672bb4528
Add benchmark for hybrid parallelism gpt-3 in static mode ( #2222 )
...
* add hybrid benchmark for static gpt-3
* add hybrid benchmark for static gpt-3
* delete unused file
* update README
* update
* add run script
* update README
* update
* update
* update
* update
* update
* update
2022-05-19 18:27:38 +08:00
lilong12
cd43cc6f3a
[GPT-3] Typo fix update ( #2250 )
2022-05-19 17:40:51 +08:00
Linjie Chen
1de6933c99
Update doccano.md ( #2239 )
...
* Update doccano.md
* Update doccano.md
* Update doccano.md
* Update doccano.md
2022-05-19 15:51:23 +08:00
yingyibiao
1f5bc06c99
Update readthedocs API structure ( #2242 )
...
* update readthedocs API structure
* add english docs
* Delete paddlenlp.datasets.rst
* add
* delete
2022-05-19 15:51:02 +08:00
WangXi
e3aee9bd38
[GPT-3] Support tensor model parallel in static graph. ( #2245 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-05-19 15:50:25 +08:00
wawltor
83f37a17c8
Update README.md
2022-05-19 15:42:50 +08:00
qingqing01
778049750f
[GPT-3] Support generation code for GPT-3 in static graph. ( #2188 )
...
* Support GPT-3 generation in static graph
* Support batch generation and fix code style
2022-05-19 15:10:51 +08:00
yingyibiao
1fdf30828c
fix deadlinks ( #2241 )
2022-05-19 11:32:34 +08:00
Zhong Hui
1ed25f223f
[DOC] fix dead links. ( #2240 )
2022-05-19 11:26:33 +08:00
liu zhengxi
c2e5cc8dcf
update ( #2235 )
2022-05-19 10:41:52 +08:00
Milen
172389f87a
add Doc-VQA applications ( #2214 )
...
* initial commit
* modify _calc_img_embeddings to support running without img embedding.
* remove commented code
* delete README
* refine readme.md
* change question
* modify layoutxlm to support traing without image embedding
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* refine .gitignore
* refine Rerank with pre-commit
* refine Extraction with pre-commit
* refine code and readme details
* refine coding
* refine code style about imports
* refine README
* set CUDA_VISIBLE_DEVICES 0
* refine code style
* refine readme
* refine readme
* delete ocr parsing file
* refine readme
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-05-19 00:08:38 +08:00
Zeyu Chen
1d433b1cce
Update README_en.md
2022-05-18 23:39:08 +08:00
Zeyu Chen
acf3832733
Update README
2022-05-18 23:34:21 +08:00
Zeyu Chen
e0b74d18d1
Update README
2022-05-18 23:24:38 +08:00
Zeyu Chen
75922448cd
Update README
2022-05-18 23:11:20 +08:00
Linjie Chen
12f60e322b
replace deprecated params for nptag ( #2233 )
2022-05-18 22:07:50 +08:00
yingyibiao
cd0b6988db
Fix deadlinks ( #2230 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-05-18 22:07:27 +08:00
liu zhengxi
a847d88bdf
Fix deadlink ( #2231 )
...
* fix ddl
* fix link
2022-05-18 22:05:55 +08:00
Zeyu Chen
cc8134555b
Update README
2022-05-18 21:30:11 +08:00
Jiaqi Liu
52c72730a5
Add UER RoBERTa L6-H768 CLUE Result ( #2226 )
...
* add uer clue result
* fix model order in table
* fix model name
* fix dead link
* fix model name
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-05-18 21:02:48 +08:00
liu zhengxi
bac1d83c31
[Bug Fix] Fix benchmark caused by recently dir and requirements change ( #2228 )
...
* fix benchmark
* more steps for bigru crf
2022-05-18 20:58:17 +08:00
Linjie Chen
86d9837c12
Update README.md and taskflow.md for UIE ( #2217 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-05-18 19:58:27 +08:00
lilong12
bf811e1c32
use executor for mp ( #2223 )
2022-05-18 18:34:58 +08:00
Zhong Hui
ec3c633c96
[Pretrained weight] Change ernie-1.0 to ernie-1.0-base-zh ( #2224 )
...
* ernie-1.0 -> ernie-1.0-base-zh
* change name of some readme.
2022-05-18 17:40:48 +08:00
Zeyu Chen
953d17837f
Update README
2022-05-18 17:38:10 +08:00
Zeyu Chen
11e4743aad
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-05-18 17:38:02 +08:00
Zeyu Chen
a65de1d757
Update README
2022-05-18 17:36:59 +08:00
liu zhengxi
32f0aebe18
mv tp dp ( #2218 )
2022-05-18 16:28:10 +08:00
Zeyu Chen
1115a70164
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-05-18 15:35:24 +08:00
Zeyu Chen
9dac2dc5fe
Update README
2022-05-18 15:34:53 +08:00
Jiaqi Liu
928ef683a4
Fix CLUE bug ( #2215 )
...
* fix clue
* add max_steps params
2022-05-18 15:32:02 +08:00
yingyibiao
eb4a63027e
fix bugs ( #2216 )
2022-05-18 15:22:31 +08:00
Jack Zhou
78afe1d250
Add commit id when packaging ( #2211 )
2022-05-18 14:44:06 +08:00
Milen
453aa70b4b
modify _calc_img_embeddings in layoutxlm to support training without img_embeddings ( #2208 )
...
* modify layoutxlm to support traing without image embedding
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
* modify _calc_img_embeddings in layoutxlm to support training without img_embeddings
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-05-18 13:42:42 +08:00
lugimzzz
e7bb926f3c
fix bug while opening vocab.bpe on windows ( #2209 )
2022-05-18 13:32:54 +08:00
lugimzzz
db44190ab9
Add ERNIE 3.0 AI Studio tutorial ( #2196 )
...
* add_ernie3.0_tutorial_link
* add_ernie3.0_tutorial
* add_ernie_3.0_tutorials
* add_ernie_3.0_aistudio_tutorials
* add_ernie_3.0_tutorial_notebook
2022-05-18 12:53:39 +08:00
Roger
5a07b12784
[duuie] fix max_seq_len bug in duuie code ( #2207 )
...
* [duuie] fix max_seq_len bug in duuie code
* add kwargs for t5-bert-tokenizer
* use add_special_tokens=False return_token_type_ids=None for span/name encode
* [duuie] fix max_seq_len bug in duuie code
* add kwargs for t5-bert-tokenizer
* use add_special_tokens=False return_token_type_ids=None for span/name encode
* [duuie] fix max_seq_len bug in duuie code
* add kwargs for t5-bert-tokenizer
* use add_special_tokens=False return_token_type_ids=None for span/name encode
2022-05-18 12:52:32 +08:00
Jack Zhou
7ba4523395
Add decoder module for faster tokenizers ( #2204 )
...
* Add wordpiece decoder cpp impl
* Add decode api in tokenizer
* Add decode_batch and decode python api
* Add decoder property
* Fix decode, decode_batch pybind
* Add _decoder for faster_tokenizer
* Fix decoder bug
* pointer to reference
2022-05-18 12:50:21 +08:00
lilong12
d9431a8026
[GPT-3] Fix saved pp program ( #2195 )
2022-05-18 10:24:59 +08:00
Linjie Chen
7ca4114d95
fix nptag preprocess bug ( #2199 )
2022-05-18 00:24:40 +08:00
tianxin
3ff2bdf86c
fix Code Style ( #2202 )
...
* parse args from command_line
* fix Code Style
2022-05-18 00:24:18 +08:00
tianxin
63fcabed34
parse args from command_line ( #2201 )
2022-05-17 22:11:05 +08:00
Zeyu Chen
2f836d3d99
Update README
2022-05-17 21:29:29 +08:00
Zeyu Chen
ecb3abcab5
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-05-17 21:14:29 +08:00
Zeyu Chen
f1ebb09480
Update README
2022-05-17 21:13:27 +08:00
Zeyu Chen
f90a9bfdde
Update English README
2022-05-17 21:01:19 +08:00
Noel
cc4932e2da
[cblue] move cblue to ernie-health directory ( #2197 )
2022-05-17 20:27:56 +08:00
Zeyu Chen
2e1f4be8e8
switch to English README
2022-05-17 20:07:37 +08:00
Zeyu Chen
52a83248de
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-05-17 20:07:00 +08:00
Zeyu Chen
90191811dc
Update README and add language switch README
2022-05-17 20:06:33 +08:00
Zeyu Chen
853f7c1241
Update README and add language switch README
2022-05-17 20:05:41 +08:00
Zeyu Chen
9686c3bfa6
Update README and add language switch README
2022-05-17 20:05:27 +08:00
DanielYang
02ebee1e48
Update README_en.md
2022-05-17 19:35:36 +08:00
Zeyu Chen
9d8df779f8
Update README
2022-05-17 19:19:20 +08:00
Zeyu Chen
e93523da24
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-05-17 18:40:00 +08:00
Zeyu Chen
61774d5441
Update README
2022-05-17 18:39:33 +08:00
lilong12
6a36a51c53
[GPT-3] fix bug for hybrid training for gpt-3 static mode ( #2190 )
...
* fix epoch compute for pp
* add note and early_stop
2022-05-17 17:51:21 +08:00
Linjie Chen
5e2e27300d
Support export the doccano file in JSONL format ( #2187 )
...
* Support export the doccano file in JSONL format
* add uie medical base
* Update model weights
2022-05-17 17:46:01 +08:00
Jiaqi Liu
1d2f32b538
Update TinyBERT modeling and CLUE results ( #2159 )
...
* tinybert support multiple choice and questionanswering
* fix tinybert, position id
* add tinybert result
* Add roformer small clue result
* fix black
* fix black
* fix doc
* fix model name
* fix model name
* fix model name
2022-05-17 16:03:13 +08:00
Zhong Hui
33a08ed31d
[FIX] Quick fix gpt missing max_seq_len ( #2192 )
...
* fix gpt compile.
* bugfix
2022-05-17 16:01:49 +08:00
Jack Zhou
9b1584e20c
Move faster_ernie to faster_tokenizers directory ( #2189 )
...
* move faster_ernie to faster_tokenizers
* keep the faster_tokenizer performance
2022-05-17 16:01:21 +08:00
Zhong Hui
d23267adf1
fix gpt compile. ( #2191 )
2022-05-17 15:45:01 +08:00
吴高升
5ee1c6c19e
Update semantic search to faiss ( #2180 )
...
* Update semantic search to faiss
* Update semantic search
2022-05-17 11:44:34 +08:00
yeliang2258
2128037d73
remove useless title ( #2183 )
2022-05-17 10:26:03 +08:00
liu zhengxi
fbd0543df0
[Bug Fix] Fix benchmark caused by moving BERT/GPT to model_zoo ( #2166 )
...
* fix benchmark caused by model_zoo
2022-05-17 09:47:04 +08:00
Zeyu Chen
94538b3aa2
Update README.md
2022-05-16 23:44:26 +08:00
Jiaqi Liu
2b6ba44e51
Update ERNIE 3.0 readme ( #2167 )
...
* update readme
* update ernie 3.0 readme, add compress api doc
* add doc for compression api
2022-05-16 23:15:46 +08:00
Linjie Chen
27033792a4
Update README.md ( #2177 )
...
* Update README.md
* fix codestyle
* fix codestyle
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: zhoushunjie <zhoushunjie@baidu.com >
2022-05-16 23:14:52 +08:00
tianxin
e4e0baa047
Update Pipelines README ( #2175 )
...
* Update README
* Update Pipelines README
2022-05-16 22:21:09 +08:00
Zeyu Chen
f08343f586
Remove faster forlder in examples
2022-05-16 21:47:36 +08:00
Zeyu Chen
912edcadd2
remove stale changelog
2022-05-16 20:56:14 +08:00
Zeyu Chen
72d9d1ba1f
Update README.md
2022-05-16 20:34:19 +08:00
wawltor
5be65fbee8
Update README.md
2022-05-16 20:08:16 +08:00
DanielYang
841a864d84
Update README.md
2022-05-16 19:37:48 +08:00
Tong Zhu(朱桐)
9765848dbd
Optimize schema construction for UIE Task ( #2170 )
...
- remove import but unused os lib
- use `_schema_tree` attribute to displace multiple times of schema tree construction
- remove `schema_tree` arg in `_multi_stage_predict`
- add early check & return in `_multi_stage_predict`
- rename `id` var in `_multi_stage_predict` to `idx` to avoid mixing with python built-in funcs
- change `_build_tree` func to python `classmethod`
Co-authored-by: Linjie Chen <40840292+linjieccc@users.noreply.github.com >
2022-05-16 19:34:05 +08:00
Zeyu Chen
8294fb409a
Update README
2022-05-16 18:36:29 +08:00
chenxiaozeng
44659369bf
Update taskflow.md ( #2173 )
...
update group QR code.
2022-05-16 18:34:44 +08:00
tianxin
6d1a6f06f0
Update README ( #2172 )
2022-05-16 18:21:11 +08:00
tianxin
0dcf0052b2
add Pipelines into Applications ( #2108 )
...
* add Applications/experimental/pipelines
* add README.md
* Update README
* fix some review comments
* update ui/webapp_semantic_search.py
* update README
* add dense_qa README
* add utils/offline_ann.py
* Update README
* add semantic_search README
* Update README
* update sematic_search
* fix code-style
* update README
* Fix Coding Style
2022-05-16 17:51:21 +08:00
heliqi
e6dff46fc2
ERINE 3.0 deploy update ( #2169 )
...
* modify name of task
* use faster tokenizer
2022-05-16 17:49:41 +08:00
Jack Zhou
b60760d60e
Add faster tokenizers cpp demo ( #2168 )
...
* Add dependency of pybind tokenizers
* Fix some cmake
* move libcore_tokenizers.cc
* Add faster tokenizers cpp demo
* Add EncodeInputString
* Add ernie vocab file downloading for demo
* Fix version
* Add FasterTokenizers CPP Demo
* Fix the head of table
2022-05-16 17:07:28 +08:00
Zeyu Chen
89abb49635
Update README
2022-05-16 17:00:09 +08:00
Jiaqi Liu
6d62762bef
Update ERNIE 3.0 readme ( #2161 )
...
* fix table
* update config
* update readme
* update config info
* update description
2022-05-16 16:21:10 +08:00
yeliang2258
c600f74aa2
Add FP16 support in Paddle2ONNX deploy ( #2163 )
...
* paddle2onnx deploy add fp16 support
* update doc
* fix doc
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-05-16 16:20:39 +08:00
Zeyu Chen
d92f2ec1f1
add English README
2022-05-16 16:14:19 +08:00
Zeyu Chen
f2085e65d6
Update README
2022-05-16 15:25:17 +08:00
Zeyu Chen
8fee6a8c78
Update README
2022-05-16 15:20:47 +08:00
Jiaqi Liu
1b1b3b6058
Fix model table typo ( #2160 )
2022-05-16 14:33:46 +08:00
Zeyu Chen
5528ec4027
Update README
2022-05-16 13:55:56 +08:00
Jiaqi Liu
6f378fd475
Update ERNIE 3.0 README ( #2142 )
...
* update ERNIE 3.0 doc
* fix typo
* update readme, fix clue
* update README, prune precision
* update readme
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-05-16 13:09:43 +08:00
DanielYang
9028d565c1
Update README.md
2022-05-16 12:29:15 +08:00
chenxiaozeng
e806146b77
Update README.md ( #2155 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-05-16 12:18:41 +08:00
Zeyu Chen
329f6a9f6b
Update README.md
2022-05-16 12:15:23 +08:00
Zeyu Chen
3a34cce669
Add ERNIE 3.0 README
2022-05-16 12:09:45 +08:00
Zeyu Chen
ce1cc31f64
Remove community folder
2022-05-16 11:42:50 +08:00
yeliang2258
03303630a1
fix doc in paddle2onnx ( #2152 )
2022-05-16 10:32:34 +08:00
Guo Sheng
d5420e226e
Remove faster_generation demo dir from packages. ( #2154 )
2022-05-16 10:32:09 +08:00
Guo Sheng
d66c83283b
Move faster_generation to top level. ( #2150 )
...
* Move faster_generation to top level.
* Update links in README of faster_generation.
* Update README of faster_generation and PLATO-XL.
* Update plato_xl_sample.py
* Move plato-xl to model_zoo.
2022-05-16 10:21:42 +08:00
yeliang2258
f21829c4be
Paddle2ONNX deploy script ( #2149 )
...
* add paddle2onnx deploy script
* update doc
* update doc
* simplify
* update doc
* revert doc
* update doc
* update paddle2onnx doc
* update outer doc
* update paddle2onnx doc
* remove requirments in doc
* update paddle2onnx doc
* update
* paddle2onnx doc
2022-05-16 00:23:43 +08:00
heliqi
ba57969dbc
ERNIE 3.0 serving deploy update ( #2146 )
...
* optimized code
* optimized code
* optimized code2
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-05-15 16:10:20 +08:00
yeliang2258
9f00755ff7
fix python deploy ( #2148 )
...
* fix python deploy
* probs and logits
* update
* revert
2022-05-15 16:09:13 +08:00
yeliang2258
d58a221338
Ernie3.0 python deploy update dev ( #2145 )
...
* update doc and infer script
* update doc
* add toc
* update doc to remove quantize data
* update infer.py
* update doc
* udpate ernie3.0 and python deploy doc
* update ernie3.0 README.md
* update doc and ernie_predictor
* update code and doc
* add notes
* change enable tp use
2022-05-15 13:52:02 +08:00
Guo Sheng
a389a72c56
Add model parallel for PLATO ( #1987 )
...
* Add mp for plato
* Add ParallelParam in decoding_beamsearch.h
* Add parallel utils.
* Begin to add tensor parallel in decoding_sampling.
* Add seed for plato mp.
Add init wraper for plato mp.
* Make PLATO tensor parallel run correctly.
* Fix copy_data
* Use transpose_general_kernelLauncher in open_decoder.h
* Fix transpose_general_kernelLauncher when using half.
* Add function declaration for transpose.
* Add PLATO-XL model parallel example.
* Use DataCollator for plato-xl.
Make default tensor para size adapt to world size.
* Update plato-xl mp example.
* Update PLAOT-XL README.
* Update PLATO-XL example and README.
* Update PLATO-XL speed table.
2022-05-13 22:20:04 +08:00
Zeyu Chen
69a8c79586
Update README.md
2022-05-13 20:34:50 +08:00
Zhong Hui
e158e13a33
fix deaflinks ( #2137 )
2022-05-13 20:10:07 +08:00
Linjie Chen
a3ac5a95d9
Update UIE model and fix NPTag preprocess bugs ( #2138 )
...
* Update UIE model and taskflow.md
* Update taskflow.md
* Update taskflow.md
* Update README.md
2022-05-13 18:07:46 +08:00
Jack Zhou
1ab0e48862
Add faster tokenizers cpp package ( #2139 )
...
* Fix package name
* Add comment
* Add cpp lib install
* remove pybind headers
* Add ErnieFasterTokenizer
* Add third party include headers
2022-05-13 18:06:38 +08:00
Jiaqi Liu
8ee2eb9b2e
Update ERNIE 3.0 README ( #2135 )
...
* update ernie-3.0-readme
* fix dir
* update precision data
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-05-13 17:44:54 +08:00
Zeyu Chen
380a1db54b
Update README
2022-05-13 17:37:22 +08:00
Zeyu Chen
ed68f994e8
update README
2022-05-13 17:28:20 +08:00
Zeyu Chen
d0a5ea9691
move uie to model zoo
2022-05-13 16:33:18 +08:00
Zhong Hui
361d91cbcb
[BugFix] Fix model zoo relative import ( #2130 )
...
* fix as relative import
* add soft link
* refine
* copy data tools to model
* fix gpt-3
* refine gpt readme.
* delete unused dataset utils code
* delete some code.
* softlink
* move data_tools to ernie.
* fix
2022-05-13 16:14:47 +08:00
yingyibiao
6de32e519b
rename download_check command ( #2134 )
2022-05-13 15:37:03 +08:00
Noel
103241b3eb
Modify the default path of DuEE-fin ( #2132 )
2022-05-13 13:45:42 +08:00
Jiaqi Liu
63ab91783b
fix ernie 3.0 infer length bug ( #2131 )
2022-05-13 11:52:55 +08:00
Zeyu Chen
d405b2d85a
move selected model to model zoo
2022-05-13 00:10:30 +08:00
Allen Guo
d9b2e10687
fix ProgressBar quiting error ( #2123 )
2022-05-13 00:10:02 +08:00
Zhong Hui
7dde5b138e
[PreTraining] Refine ernie-1.0 document. ( #2117 )
...
* add some document for pretraining.
* refine ernie-1.0 document.
* refine ernie-1.0 document.
* remove pre-train document.
* Update README.md
* add infer script.
* refine
* remove h5py requirement
* move export to paddlenlp.transformers.export_model
* move export to paddlenlp.transformers.export_model
* fix docs.
* fix as reviews.
2022-05-12 23:39:52 +08:00
Roger
2730d3ce31
Optimize code for DuUIE Baseline ( #2120 )
...
* Clean Code for DuUIE
* Remove `DynamicMultiTaskSSIGenerator`, using DynamicSSIGenerator for all Data Collator
* Rename `negative_sampler` to `ssi_generator`and Rewrite __call__ for each Data Collator
* Read training instances from train config and add negative instance for DuIE
* Add more comments and rename variables in seq2struct/utils.py evaluation/seq2record.py for better understanding
* Remove unuse arguments and tqdm code in run_seq2struct.py, add grad_clip, change default value of some argument as README.md
* Change BaseStructureMarker as dataclass
* Clean Code for DuUIE
* Remove `DynamicMultiTaskSSIGenerator`, using DynamicSSIGenerator for all Data Collator
* Rename `negative_sampler` to `ssi_generator`and Rewrite __call__ for each Data Collator, Reduce GPU Memory to 50%
* Read training instances from train config and add negative instance for DuIE
* Add more comments and rename variables in seq2struct/utils.py evaluation/seq2record.py for better understanding
* Remove unuse arguments and tqdm code in run_seq2struct.py, add grad_clip, change default value of some argument as README.md
* Change BaseStructureMarker as dataclass
* Clean Code for DuUIE
* Remove `DynamicMultiTaskSSIGenerator`, using DynamicSSIGenerator for all Data Collator
* Rename `negative_sampler` to `ssi_generator`and Rewrite __call__ for each Data Collator, Reduce GPU Memory to 50%
* Read training instances from train config and add negative instance for DuIE
* Add more comments and rename variables in seq2struct/utils.py evaluation/seq2record.py for better understanding
* Remove unuse arguments and tqdm code in run_seq2struct.py, add grad_clip, change default value of some argument as README.md
* Change BaseStructureMarker as dataclass
* Clean Code for DuUIE
* Remove `DynamicMultiTaskSSIGenerator`, using DynamicSSIGenerator for all Data Collator
* Rename `negative_sampler` to `ssi_generator`and Rewrite __call__ for each Data Collator, Reduce GPU Memory to 50%
* Read training instances from train config and add negative instance for DuIE
* Add more comments and rename variables in seq2struct/utils.py evaluation/seq2record.py for better understanding
* Remove unuse arguments and tqdm code in run_seq2struct.py, add grad_clip, change default value of some argument as README.md
* Change BaseStructureMarker as dataclass
* Clean Code for DuUIE Baseline
* Remove `DynamicMultiTaskSSIGenerator`, using DynamicSSIGenerator for all Data Collator
* Rename `negative_sampler` to `ssi_generator`and Rewrite __call__ for each Data Collator, Reduce GPU Memory to 50%
* Read training instances from train config and add negative instance for DuIE
* Add more comments and rename variables in seq2struct/utils.py evaluation/seq2record.py for better understanding
* Remove unuse arguments and tqdm code in run_seq2struct.py, add grad_clip, change default value of some argument as README.md
* Change BaseStructureMarker as dataclass
* fix comment in uie/seq2struct/utils.py
Co-authored-by: Linjie Chen <40840292+linjieccc@users.noreply.github.com >
2022-05-12 22:37:04 +08:00
yeliang2258
d83be59378
Ernie3.0 python deploy dev ( #2077 )
...
* add python deploy scripy
* update readme
* remove useless file
* udpate code
* remove useless print
* update dynamic quantize
* update daynamic quantize func
* mv python to deploy folder
* add use_inference in infer_backend
* add optimize choice
* fix doc and add infer_cpu infer_gpu
* remove useless file
* update doc
* update doc for quantize model
* fix doc
* update docs
* fix doc and add set_dynamic_shape fuc
* update ernie_predictor and doc
* update doc and paddle2onnx api
* update ernie_predictor, use all cpu
* add quantize tool doc link
* update doc and use c api of paddle2onnx
* fix path bug
2022-05-12 20:44:28 +08:00
Zhong Hui
32ef8f84ba
[DOC] Add trainer doc on index.rst ( #2126 )
...
* Update index.rst
2022-05-12 19:09:49 +08:00
Linjie Chen
8e29ffb648
optimize model initialization for UIE ( #2119 )
...
* optimize model initialization for UIE
* Update taskflow.md
* Update taskflow.md
* Update taskflow.md
* Update README.md
* Update README.md
* Update README.md
* Update evaluation
* Update evaluation
* delete unused code
2022-05-12 19:07:27 +08:00
yujun
5ec8d131f6
update roformerv2 tokenizer's token_type_id ( #2127 )
2022-05-12 18:25:33 +08:00
Jack Zhou
a6d0fdf2d3
Improve OMP performance ( #2125 )
...
* Add condition for openmp
* Add condition of creating omp threads to improve performance
* Add comments to explain why setting condition of omp
2022-05-12 18:12:54 +08:00
yingyibiao
ac27a26a5f
Modify bert_japanese tokenizer ( #2124 )
...
* modify bert_japanese tokenizer
* modify bert_japanese tokenizer
* modify bert_japanese tokenizer
2022-05-12 15:41:09 +08:00
Jiaqi Liu
5ebb0a7c9e
Fix ernie-3.0-compress-bug ( #2113 )
...
* fix ernie-3.0-compress-bug
* infer support fp16
2022-05-11 23:21:35 +08:00
Jiaqi Liu
f1c259dafc
Add README ( #2121 )
...
* add ernie 3.0 readme
* update readme
2022-05-11 23:16:02 +08:00
heliqi
187ef1e10a
Add serving deploy for ernie 3.0 seq_cls and token_cls ( #2073 )
...
* add deploy serving for cls
* add deploy serving for cls
* add deploy serving for token
* add deploy serving for token
* Optimize code
2022-05-11 23:02:15 +08:00
Guo Sheng
3c5d7c577b
Patches for DataLoader/BatchSamper to allow using other than paddle.io.Dataset in Paddle version lower than 2.3 ( #2118 )
2022-05-11 20:07:10 +08:00
Zhong Hui
2f8f701fb2
[BugFIx] Fix ernie gen from_pretrained for exists weights. ( #2107 )
2022-05-11 18:02:44 +08:00
yingyibiao
7d21d7b3bf
Update README ( #2109 )
...
* Update README
* Update README.md
* Update README.md
2022-05-11 16:40:40 +08:00
Jack Zhou
ea837b83fe
Fix truncation and padding ( #2111 )
...
* fix truncation and padding
* Fix some padding bug
2022-05-11 16:33:43 +08:00
Guo Sheng
bef2d2bbf1
Replace logger.warn with warnings.warn. ( #2114 )
2022-05-11 15:23:44 +08:00
Noel
c481083c2a
Merge pull request #2102 from LemonNoel/speech-use_api
...
[speech] use api to calculate metric
2022-05-11 13:06:00 +08:00
Noel
6ec5afb6d6
Merge branch 'develop' into speech-use_api
2022-05-11 12:06:00 +08:00
smallv0221
cfd275ea91
freeze datasets version ( #2110 )
2022-05-11 11:31:43 +08:00
Jack Zhou
b15f5b290f
Fix return offsets mapping ( #2105 )
2022-05-11 11:17:16 +08:00
Noel
5bd04733fb
Merge branch 'develop' into speech-use_api
2022-05-11 10:26:21 +08:00
Allen Guo
a29ffed77f
[IPU] bert-base use paddle branch release/2.3 ( #2081 )
...
* use branch release/2.3
* fix readme
* update custom_nll_loss attr type
2022-05-10 21:14:37 +08:00
yingyibiao
24a0abb654
Update readthedocs ( #2099 )
...
* update readthedocs
* Update paddlenlp.datasets.rst
* fix jinja2 version to 3.0.3
2022-05-10 21:12:54 +08:00
yujun
df18bd1f76
update roformer_v2_chinese_char_base tokenizer url ( #2103 )
2022-05-10 21:10:43 +08:00
Jack Zhou
d2a4ca5cc3
fix faster_tokenizers setup problem ( #2104 )
2022-05-10 21:10:16 +08:00
Huijuan Wang
1ed1693842
[speech] remove preprocess for cls
2022-05-10 21:04:55 +08:00
Linjie Chen
4014cb3c4f
fix bug: UIE model cannot be load twice in one process ( #2098 )
2022-05-10 19:21:40 +08:00
yujun
8a424df650
[NEW Model] Add RoFormerV2 ( #2056 )
...
* add roformer v2 model
* add max_position_embeddings
* support static export model
* fix typo and update seqlen
* update RoFormerv2Model doc
* only support 2D attention mask
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-05-10 19:03:22 +08:00
smallv0221
8bf21c1b35
Fix Prophetnet model ( #1885 )
...
* temp add word ids
* fix prophetnet model
* minor fix
* fix prophetnet
* minor fix
* minor fix
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-05-10 18:45:40 +08:00
Jack Zhou
f7aad8893c
Support Auto FasterTokenizer ( #2097 )
...
* Add is_faster_tokenizers_available
* add tokenizer_utils_faster and convert_slow_tokenizer
* update comments
* Add Ernie&Bert FasterTokeizer
* Fix batch_enocde
* Support FasterTokenizer
* update naming style
* EncodingFast->FasterEncoding;TokenizerFast->FasterTokenizer
* remove useless statements
2022-05-10 18:29:31 +08:00
Zhong Hui
57a286188f
[BugFix] Fix ernie gen mode load ( #2092 )
...
* fix ernie gen
2022-05-10 18:18:16 +08:00
smallv0221
140ce172a9
fix file requirements for community tokenizers ( #2101 )
2022-05-10 18:11:01 +08:00
Huijuan Wang
70137aada4
[speech] use api to calculate metric
2022-05-10 17:47:23 +08:00
Jiaqi Liu
e18121c59e
Support NER & QA Inference ( #2076 )
...
* support ner
* support ner
* support ner
* support qa
* update infer
* update infer
* remove hard code
* update clue readme
* update token classification
2022-05-10 16:50:55 +08:00
Jiaqi Liu
63bf2d5149
Update ERNIE 3.0 data collator usage ( #2086 )
...
* update data collator
* remove useless var name
* support models don't have token_type_ids
* support models don't have token_type_ids
* update ner fine tuning script
* Fix arg code style
2022-05-10 16:33:20 +08:00
yujun
c7369d4b21
update roformer ( #2089 )
...
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-05-10 16:14:14 +08:00
Jack Zhou
f47f430388
Improve the encode_batch performance in faster tokenizers ( #2094 )
...
* Add truncation
* Add is_pretokenized
* Remove OMP
2022-05-10 15:42:16 +08:00
Jiaqi Liu
4cf13bd9ed
Update CLUE README ( #2096 )
...
* add bert, ernie result
* update table
2022-05-10 13:31:47 +08:00
Linjie Chen
24aff87513
Add UIE ( #1986 )
...
* add uie
* fix codestyle
* Update README.md
* Update README.md
* Update README.md
* Update parser
* Add tqdm for doccano convertion
* fix build prompt
* Update relation label construction
* Update README.md
* Update metric
* Update doccano file
* Update doccano converter
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update arguments
* Update README.md
* Update doccano converter
* Update comments
* Update README.md
* Update doccano for cls task
* Update README.md
* Update README.md
* Update uie finetune example
* Update README.md
* Update doccano.md
* Update doccano.md
* Update doccano.md
* Update taskflow.md
* Update taskflow.md
* Update README.md
2022-05-10 13:07:12 +08:00
Zeyu Chen
3b1d096e22
update setup.py
2022-05-09 23:26:33 +08:00
Zeyu Chen
a27afd0d45
remove education folder
2022-05-09 23:17:39 +08:00
Jack Zhou
f8f6294342
Add faster tokenizers cpp source code ( #2075 )
...
* Add faster tokenizers cpp source code
* rename tokenizers->faster_tokenizers
* Add serialize, deserialize of tokenizer
* Fix deserialize
* Add __init__.py
* Add getstate for bert normalizer
* update wordpiece
2022-05-09 23:16:39 +08:00
Jiaqi Liu
68ea6dd5c9
Add ernie-gram-zh, mengzi-bert-base clue acc ( #2087 )
2022-05-09 22:25:37 +08:00
Zhong Hui
44663b9d0c
Fix ernie-1.0 typo ( #2091 )
2022-05-09 22:19:32 +08:00
吴高升
60e03a0b4a
fix output_emb_size set to zero bug ( #2090 )
2022-05-09 21:15:18 +08:00
Zhong Hui
e387e70e7a
[Trainer] Trainer opt part1 and part2 ( #2040 )
...
* refine some trainer import
* optimize some code of trainer.
* fix doc
2022-05-09 20:43:06 +08:00
yingyibiao
e91253d865
Add pre-trained model downloads logging ( #2085 )
...
* add model download statistics
* add model download statistics
* add model download statistics
2022-05-09 17:23:52 +08:00
kev
80d1136e0d
fix bug: NPTag postprocess ( #2070 )
...
Co-authored-by: wangkaifu <wamgkaifu@yinxiang.com >
2022-05-08 23:04:59 +08:00
Linjie Chen
39432a2ace
Update README.md ( #2079 )
2022-05-08 17:51:45 +08:00
smallv0221
8cb27ad829
fix compatibility for ppnimilm, skep, unifiedtransformer, gpt2 ( #2063 )
...
* upgrade tokenizer
* upgrade tokenizer
* upgrade datacollator
* minor fix
* minor fix
* fix mbart tokenizer
* minor fix
* minor fix
* minor fix
* fix compatity for autotokenizer
* fix offset mapping
* fix tokenizer doc
* fix doc
* fix tokenizer
* fix ppminilm tokenizer
* fix offset mapping
* fix tokenizer warning
* fix get_input_ids for compatibility
* add doc
* minor fix
Co-authored-by: Jiaqi Liu <709153940@qq.com >
2022-05-07 15:48:29 +08:00
Jiaqi Liu
f7b7d52e39
fix infer bug ( #2072 )
2022-05-07 12:59:29 +08:00
Zeyu Chen
cdd68258a4
Update setup.py
2022-05-06 17:40:22 +08:00
WJJ1995
caa386f297
Add ONNX Export ( #2061 )
...
* Add ONNX Export
* deal with comments
* deal with comments
* deal with comments
2022-05-06 13:10:11 +08:00
Jiaqi Liu
fa8fe0ef25
Add ERNIE 3.0 ( #1995 )
...
* add ernie-3.0
* remove useless import
* move compress api from paddlenlp
* support ner, qa
* move ernie 3.0 compress dir
* remove update in __init__
* remove ernie 3.0 compress dir
2022-05-05 17:29:46 +08:00
Jiaqi Liu
5765fbeb9d
rename ernie 3.0 model name ( #2057 )
2022-05-05 13:01:35 +08:00
Jiaqi Liu
3a81aee3a9
Fix c3 predict bug ( #2060 )
...
* fix c3 predict bug
* fix c3 predict bug
2022-05-05 12:36:46 +08:00
smallv0221
793eee08ee
fix tokenizer warning ( #2043 )
...
* upgrade tokenizer
* upgrade tokenizer
* upgrade datacollator
* minor fix
* minor fix
* fix mbart tokenizer
* minor fix
* minor fix
* minor fix
* fix compatity for autotokenizer
* fix offset mapping
* fix tokenizer doc
* fix doc
* fix tokenizer
* fix ppminilm tokenizer
* fix offset mapping
* fix tokenizer warning
Co-authored-by: Jiaqi Liu <709153940@qq.com >
2022-05-02 20:02:47 +08:00
Zeyu Chen
a0eac8e6b1
add transformer pretrained model zoo in root folder
2022-04-30 17:33:22 +08:00
Linjie Chen
61685f0e50
add uie-medical ( #2042 )
...
* Update schema
* add uie-medical-base
2022-04-29 19:32:08 +08:00
wawltor
5d2904a108
Merge pull request #2018 from ZHUI/ernie_dygraph_opt
...
[Pretraining] Optimize some log info for ernie-1.0 pretraining.
2022-04-29 19:00:42 +08:00
wawltor
862bf6e9ee
Merge pull request #2041 from ZHUI/ehealth_opt
...
[Trainer] eHealth opt
2022-04-29 18:58:03 +08:00
Zhong Hui
3b019a6a42
ehealth opt
2022-04-29 18:52:05 +08:00
Jiaqi Liu
078dd64f8f
update ernie base iflytek ( #2038 )
2022-04-29 18:50:11 +08:00
smallv0221
04cb1adfe2
fix offset mapping ( #2039 )
...
* upgrade tokenizer
* upgrade tokenizer
* upgrade datacollator
* minor fix
* minor fix
* fix mbart tokenizer
* minor fix
* minor fix
* minor fix
* fix compatity for autotokenizer
* fix offset mapping
* fix tokenizer doc
* fix doc
* fix tokenizer
* fix ppminilm tokenizer
* fix offset mapping
2022-04-29 18:27:14 +08:00
smallv0221
346a1c070e
fix ppminilm tokenizer ( #2037 )
...
* upgrade tokenizer
* upgrade tokenizer
* upgrade datacollator
* minor fix
* minor fix
* fix mbart tokenizer
* minor fix
* minor fix
* minor fix
* fix compatity for autotokenizer
* fix offset mapping
* fix tokenizer doc
* fix doc
* fix tokenizer
* fix ppminilm tokenizer
2022-04-29 18:17:59 +08:00
liu zhengxi
676ad02714
Fix encoder & optimize performance of encoder ( #1748 )
...
* fix & promote ft encoder
* update
* rm some useless option
* refine encoder codes
* delete useless import
* update according to above comments
2022-04-29 17:29:59 +08:00
Zhong Hui
9fd7364426
Merge branch 'develop' into ernie_dygraph_opt
2022-04-29 17:29:58 +08:00
Guo Sheng
a2a8817254
Use functools to replace importlib_metadata.functools to avoid extra dependency. ( #2034 )
2022-04-29 16:51:55 +08:00
Jiaqi Liu
916791aee4
update clue result ( #2033 )
2022-04-29 15:56:58 +08:00
smallv0221
6d61877140
Fix tokenizer compatibility for taskflow ( #2032 )
...
* upgrade tokenizer
* upgrade tokenizer
* upgrade datacollator
* minor fix
* minor fix
* fix mbart tokenizer
* minor fix
* minor fix
* minor fix
* fix compatity for autotokenizer
* fix offset mapping
* fix tokenizer doc
* fix doc
* fix tokenizer
2022-04-29 15:22:20 +08:00
smallv0221
eeb9a5a322
Upgrade tokenizer to align with HF tokenizer ( #1993 )
...
* upgrade tokenizer
* upgrade tokenizer
* upgrade datacollator
* minor fix
* minor fix
* fix mbart tokenizer
* minor fix
* minor fix
* minor fix
* fix compatity for autotokenizer
* fix offset mapping
* fix tokenizer doc
* fix doc
2022-04-29 13:34:52 +08:00
wawltor
619b94c1e8
Merge pull request #2026 from luyaojie/develop
...
[DuUIE] encoding fixing for windows
2022-04-29 13:24:03 +08:00
Yaojie Lu
0e4b2cab34
[DuUIE] ignore entity type dev relation evaluation same as online evaluation
2022-04-29 12:03:23 +08:00
Yaojie Lu
3f46723c55
[DuUIE] using set for dev evaluation same as online evaluation
2022-04-29 11:38:50 +08:00
Yaojie Lu
f7487a45f1
[DuUIE] fix task_scorer_dict
2022-04-28 22:26:25 +08:00
wawltor
fcd3d1a3c6
Merge pull request #2027 from LemonNoel/speech
...
[speech-cmd] add speech command analysis application
2022-04-28 21:13:56 +08:00
Huijuan Wang
3ee4b23553
[speech-cmd] fix problems in comments
2022-04-28 20:30:40 +08:00
Huijuan Wang
55122d2b67
[speech-cmd] fix bug brought by reorganization
2022-04-28 15:02:07 +08:00
wawltor
2fe82d8ba6
Merge pull request #1952 from linjieccc/add_uie
...
Add UIE for Taskflow
2022-04-27 22:34:49 +08:00
Huijuan Wang
4ab25251b9
[speech-cmd] reorganize the code
2022-04-27 21:09:56 +08:00
Linjie Chen
d02b797595
Merge branch 'develop' into add_uie
2022-04-27 20:58:18 +08:00
Jiaqi Liu
db7aecf3cd
Add RBT6 CLUE result ( #2025 )
...
* add rbt6 clue result
* fix expression
2022-04-27 19:45:59 +08:00
Huijuan Wang
d4d530d998
[speech-cmd] add demo screenshot
2022-04-27 19:45:36 +08:00
Huijuan Wang
45e1587ce3
[speech-cmd] add speech command analysis application
2022-04-27 19:35:35 +08:00
Yaojie Lu
6bd7d6e6ee
[DuUIE] encoding fixing for windows
2022-04-27 19:29:21 +08:00
Yaojie Lu
61cb9bce2e
[DuUIE] encoding fixing for windows
2022-04-27 19:20:02 +08:00
Yaojie Lu
7d47e0961e
[DuUIE] encoding fixing for windows
2022-04-27 18:20:05 +08:00
linjieccc
0b18f4c271
fix decoding for cls task
2022-04-27 09:38:46 +00:00
linjieccc
68e4827ff8
fix decoding for cls task
2022-04-27 09:37:52 +00:00
linjieccc
321f45c729
fix decoding for cls task
2022-04-27 09:04:34 +00:00
linjieccc
04a6ca3ea4
fix cls decoding
2022-04-27 08:33:29 +00:00
linjieccc
ae2ddbfea8
Update README.md
2022-04-27 07:58:14 +00:00
linjieccc
e2ffdd4dbc
fix construction of relations
2022-04-27 07:48:48 +00:00
linjieccc
26a7b0417c
Update README.md
2022-04-27 07:02:34 +00:00
Linjie Chen
fb2ed84560
fix nptag decode bugs ( #2023 )
...
* fix nptag decode bug
* fix nptag decode bug
2022-04-27 11:47:55 +08:00
Zhong Hui
51d335dd36
delete finetune script.
2022-04-27 10:51:12 +08:00
Zhong Hui
d6c1f91498
[Trainer] eHealth pretraining with trainer ( #1996 )
...
* first version for ehealth
* update ehealth trainer.
* delete trainer script.
2022-04-27 10:36:51 +08:00
linjieccc
b8b87dd919
Update README.md
2022-04-26 16:21:46 +00:00
linjieccc
bafcfb1539
Update README.md
2022-04-26 14:36:17 +00:00
linjieccc
d47c3cf31e
Update README.md
2022-04-26 14:35:20 +00:00
linjieccc
49eedeee32
Update README.md
2022-04-26 14:33:03 +00:00
linjieccc
0928e7e03f
Update Taskflow README.md
2022-04-26 14:30:15 +00:00
Noel
226ca51cea
Merge pull request #2014 from LemonNoel/fix_epoch
...
[ehealth] fix epoch problem when max_steps is not setted
2022-04-26 21:58:52 +08:00
Noel
adb1ef41dc
Merge branch 'develop' into fix_epoch
2022-04-26 21:46:27 +08:00
Zhong Hui
fc63c1116f
refine some code.
2022-04-26 20:26:07 +08:00
Roger
70a55a3f14
Update README.md ( #2021 )
...
* Update README.md
* Update README.md
* Highlight sign up information
2022-04-26 20:21:02 +08:00
gmm
d315620465
[benchmark] 更改benchmark模型配置 ( #2020 )
2022-04-26 19:57:12 +08:00
wawltor
b42754e466
Merge pull request #2019 from luyaojie/develop
...
add split-test command in CCKS README.md
2022-04-26 19:20:08 +08:00
Roger
52e1ab4e17
add split-test in README.md
2022-04-26 18:58:32 +08:00
wawltor
c08984cf13
Merge pull request #2012 from luyaojie/develop
...
DuUIE baseline for CCKS 2022
2022-04-26 18:52:22 +08:00
Roger
17ce404571
Fix config path in README.md
2022-04-26 18:40:35 +08:00
linjieccc
810be72609
Update backbone
2022-04-26 10:12:16 +00:00
Zhong Hui
d099228b42
delete comments.
2022-04-26 17:53:20 +08:00
Zhong Hui
8154b118bf
optimize some log info for ernie-1.0 pretraining.
2022-04-26 17:48:15 +08:00
Roger
fb68158e46
Add uie-char-small
2022-04-26 17:19:43 +08:00
Yaojie Lu
3461c2b123
Update Test Name
2022-04-26 16:56:26 +08:00
yingyibiao
662d29bf18
update luke tokenizer ( #2016 )
2022-04-26 16:46:26 +08:00
Noel
e9a8903431
Merge branch 'develop' into fix_epoch
2022-04-26 16:34:19 +08:00
yingyibiao
d35bdecef3
Update transformers __init__.py ( #2015 )
...
* update transformers __init__.py
* update transformers __init__.py
* update transformers __init__.py
2022-04-26 16:24:50 +08:00
yingyibiao
ebcb565ba4
update auto tokenizer ( #2007 )
2022-04-26 15:53:40 +08:00
Huijuan Wang
5d349ad14c
[ehealth] fix epoch problem when max_step is not setted
2022-04-26 15:03:53 +08:00
Linjie Chen
44896d10ef
Merge branch 'PaddlePaddle:develop' into add_uie
2022-04-26 14:48:12 +08:00
Huijuan Wang
90dd690e17
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into ehealth
2022-04-26 14:46:14 +08:00
smallv0221
b2bb385418
add __init__.py for hf_dataset ( #2013 )
2022-04-26 14:44:26 +08:00
Linjie Chen
e186b1fba5
Merge branch 'develop' into add_uie
2022-04-26 14:40:54 +08:00
Yaojie Lu
8bcc7b8c39
Update Readme for run_seq2struct.py
2022-04-26 12:59:17 +08:00
Yaojie Lu
4b1ffa4797
Add CCKS 2022 baseline DuUIE
2022-04-26 12:45:46 +08:00
Yaojie Lu
aca133e621
Add CCKS 2022 baseline DuUIE
2022-04-26 12:38:44 +08:00
Zhong Hui
d1c68094ce
[Trainer] ernie-1.0 pretrain with trainer. ( #1956 )
...
* ernie-1.0 pretrain with trainer.
* fix oom bug of dataloader useage.
* fix resume from chechpoint epoch display.
2022-04-26 11:15:47 +08:00
linjieccc
08deaab0e3
update auto joiner
2022-04-25 14:10:59 +00:00
Noel
fda3d82a3f
[Ehealth] fix bug for fp32 ( #2003 )
...
* [ehealth] unify quotes in pretraining model
* [ehealth] fix bug for fp32
* [ehealth] rename directory of ernie-health
2022-04-25 20:01:37 +08:00
gongenlei
da3614d935
fix: remove padding_idx ( #2006 )
2022-04-25 18:56:45 +08:00
27182812
ce7c1538dc
新增gpt转换权重更新and预训练权重表格格式统一化 ( #2001 )
...
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-04-25 18:28:28 +08:00
linjieccc
bb0c8ccd3b
Update README.md
2022-04-25 07:34:48 +00:00
linjieccc
ecc3788409
update set_schema method
2022-04-25 07:17:56 +00:00
吴高升
46a268dde0
Add faq finance solution ( #1997 )
...
* Add faq finance solution
* Upgrade tokenizer,Model to Auto
* Update Readme
* Update readme
2022-04-25 14:45:10 +08:00
linjieccc
9ba16d98c9
fix bug of prompt construction
2022-04-25 06:20:45 +00:00
Huijuan Wang
a50633db94
[ehealth] rename directory of ernie-health
2022-04-25 14:05:32 +08:00
Huijuan Wang
746da81c5c
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into ehealth
2022-04-25 13:15:55 +08:00
Huijuan Wang
a4369aae52
[ehealth] fix bug for fp32
2022-04-25 13:14:59 +08:00
Noel
20d1734c79
Merge pull request #1999 from LemonNoel/ehealth
...
[Ehealth] Fix num_epochs setting
2022-04-24 20:04:38 +08:00
Huijuan Wang
8ce1a71c2d
[ehealth] unify quotes in pretraining model
2022-04-24 20:03:06 +08:00
Huijuan Wang
1ae624dadc
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into ehealth
2022-04-24 17:42:02 +08:00
Huijuan Wang
78f034f862
[ehealth] fix num_epochs and unify quotes
2022-04-24 17:41:40 +08:00
Noel
bb272f4e71
Merge pull request #1960 from LemonNoel/ehealth
...
[Ehealth] Add pretraining model of EHealth
2022-04-24 16:07:41 +08:00
Noel
8d75ff2895
Merge branch 'develop' into ehealth
2022-04-24 16:05:36 +08:00
Jiaqi Liu
9b227f2c4b
Add ERNIE 3.0-Base CLUE result ( #1998 )
...
* add ernie3.0-base clue result
* update iflytek
* update avg
2022-04-24 15:27:44 +08:00
Allen Guo
2749e3428a
[IPU] add pod4 support for bert-base model on ipu ( #1966 )
...
* add pod4 support for bert-base on ipu
* clean scripts
* update seed
2022-04-24 14:21:03 +08:00
27182812
69bf4b4d22
预训练模型部分文档初次修改提交 ( #1989 )
...
* 预训练模型部分文档初次修改提交
* Transformer预训练模型文档修改完善
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-04-24 11:07:03 +08:00
Yaozong Shen
d0f2c551da
fix bugs ( #1977 )
...
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-04-22 15:23:11 +08:00
Jiaqi Liu
006c4d9837
Add ERNIE 3.0 Medium CLUE result ( #1985 )
...
* update ernie-3.0-tiny result
* add ernie-3.0-medium result
* rename models
* add a commit
2022-04-22 13:02:27 +08:00
Jiaqi Liu
af18ef2156
rename ernie-3.0 ( #1991 )
2022-04-22 11:12:27 +08:00
linjieccc
0a4f75decb
add schema format check
2022-04-21 12:57:45 +00:00
tianxin
2922af4eef
rename RGL ( #1988 )
2022-04-21 18:46:42 +08:00
Noel
40cf839105
Merge branch 'develop' into ehealth
2022-04-20 22:41:14 +08:00
Huijuan Wang
c086026d76
[ehealth] add ##- for all chinese tokens and update readme
2022-04-20 22:32:54 +08:00
gmm
d35eec378e
fix benchmark ( #1981 )
2022-04-20 20:02:33 +08:00
Jiaqi Liu
905fc554ff
Update run_clue_classifier.py ( #1979 )
...
* update run_clue_classifier.py
* update input check
2022-04-20 14:47:28 +08:00
Huijuan Wang
cda988311d
[ehealth] fix organization and problems in comments
2022-04-20 11:41:57 +08:00
linjieccc
dac0ccff49
adapt auto_joiner
2022-04-19 08:38:28 +00:00
Jiaqi Liu
390acb902a
Add ernie-3.0-large clue result, update csl hyper-param ( #1973 )
...
* add ernie-3.0-large result, update csl hyper-param
* uppercase
* add avg score
2022-04-19 14:48:44 +08:00
gmm
69f098a365
fix benchmark ( #1974 )
2022-04-19 13:55:46 +08:00
linjieccc
c9ddd0cac3
fix bugs
2022-04-19 05:42:56 +00:00
Huijuan Wang
b9a1011491
[ehealth] change initialization as random
2022-04-19 01:38:00 +08:00
Noel
2afc6062f9
Merge pull request #1972 from LemonNoel/duee_fix
...
[duee] fix encoding problem for windows
2022-04-18 16:33:29 +08:00
Huijuan Wang
3608dc3651
[duee] fix encoding problem for windows
2022-04-18 15:17:10 +08:00
Jiaqi Liu
4b8f092fcb
Add ERNIE 3.0 ( #1955 )
...
* add ernie-3.0-base
* add ernie-3.0 large
* add ernie tiny
2022-04-18 11:15:41 +08:00
linjieccc
f2e421e7ff
remove comments
2022-04-18 02:35:54 +00:00
linjieccc
c068cff507
add return prob
2022-04-18 02:30:47 +00:00
Huijuan Wang
378d139db5
Merge branch 'ehealth' of https://github.com/LemonNoel/PaddleNLP into develop
2022-04-18 09:32:59 +08:00
Huijuan Wang
ff34f94b6a
[ehealth] align model for pretraining
2022-04-18 09:30:25 +08:00
Zeyu Chen
a09dba168f
Update setup.py
2022-04-16 19:08:04 +08:00
yingyibiao
5dd1ba6e1a
Replace try_import sentencepiece with direct import sentencepiece ( #1961 )
...
* direct import sentencepiece
* direct import sentencepiece
2022-04-15 18:19:47 +08:00
linjieccc
f6236d4db1
update schema
2022-04-15 07:22:28 +00:00
linjieccc
845dfd8ad0
rename func
2022-04-15 06:35:43 +00:00
wawltor
519f552730
Merge pull request #1958 from linjieccc/op_path
...
Optimize task path for Taskflow
2022-04-15 13:11:59 +08:00
linjieccc
a0eea3c0c4
add set_schema func
2022-04-15 03:57:09 +00:00
linjieccc
4c3e73c16d
add set_schema func
2022-04-15 03:56:24 +00:00
Linjie Chen
7394ddf6c0
Merge branch 'PaddlePaddle:develop' into add_uie
2022-04-15 11:10:08 +08:00
linjieccc
ca92e6324a
Update text_correction task name
2022-04-15 02:41:55 +00:00
Huijuan Wang
45e14c2463
Merge remote-tracking branch 'ppnlp/develop' into ehealth
2022-04-15 09:58:44 +08:00
Huijuan Wang
ca63ba8897
[ehealth] draft version of pretraining
2022-04-15 09:57:28 +08:00
yingyibiao
e99e41b905
Update auto modeling & auto tokenizer ( #1902 )
...
* Update auto class
* update
* Add sentencepiece to package requirements
* add more detailed AttributeError information
* add more detailed AttributeError information
* add more detailed AttributeError information
* add more detailed AttributeError information
* add more detailed AttributeError information
2022-04-14 22:11:09 +08:00
linjieccc
af89ed9cca
fix
2022-04-14 11:57:09 +00:00
Linjie Chen
efde6145c9
Merge branch 'develop' into op_path
2022-04-14 17:27:15 +08:00
linjieccc
7c19d5914b
Update README.md
2022-04-14 09:15:41 +00:00
linjieccc
6cdd4259f8
optimize taskflow download
2022-04-14 08:55:50 +00:00
Beacontownfc
70649b1bf8
Add model Rembert ( #1701 )
...
* add rembert
* add rembert
* Update tokenizer.py
* update rembert
* modify
* modify according to gongel
* Update tokenizer.py
* Update tokenizer.py
* Update modeling.py
* fix bug
Co-authored-by: gongenlei <gongel@qq.com >
2022-04-14 16:36:39 +08:00
Zhong Hui
3021098cac
[Trainer] Add clue benchmark script with trainer. ( #1909 )
...
* add clue for trainer.
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-04-14 15:42:06 +08:00
Linjie Chen
20bed38555
Merge branch 'develop' into add_uie
2022-04-14 12:52:53 +08:00
linjieccc
4769d92baf
update usage
2022-04-14 04:51:02 +00:00
linjieccc
d815ceb133
update usage
2022-04-14 04:49:11 +00:00
linjieccc
4e2802b3e7
add uie for taskflow
2022-04-14 03:59:48 +00:00
smallv0221
7eb0c7a431
Host hf datasets and upgrade examples ( #1910 )
...
* hosting squad dataset
* fix squad no answer metric
* fix DataCollatorForSeq2Seq
* hosting hf datasets
* enhence import warning
2022-04-13 14:54:15 +08:00
liu zhengxi
f9fab9430c
Merge prepare.benchmark.sh and prepare.sh ( #1938 )
...
* merge prepare benchmark
* update
* delete export BENCHMARK_ROOT
* rename ips tp ips_total, ips_per_cars to ips
* pre-commit issue
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2022-04-13 12:15:56 +08:00
Yaozong Shen
7a5b0028c8
More accurate score ( #1940 )
...
* match tokens to get accurate score
* fix bugs
* fix code style
2022-04-13 12:15:33 +08:00
吴高升
73d5318048
Fix the feature extraction bug ( #1942 )
2022-04-13 12:14:45 +08:00
Zhong Hui
f089a1816c
add more detail for code source. ( #1947 )
2022-04-13 12:11:20 +08:00
Guo Sheng
99804a2426
Fix MPI related issue in GPT model parallel ( #1894 )
...
* Add mpi include dir into cmake.
Support more MPI environment vars.
Fix HOST confict of MPI and Paddle.
* Fix pointer convert in gpt_op.
2022-04-13 11:45:42 +08:00
Zhong Hui
01d2c2a9ea
[BugFix] fix reload gpt ( #1945 )
2022-04-12 21:12:56 +08:00
smallv0221
b2e98d8d2d
fix DatasetTuple identifier bug ( #1941 )
2022-04-12 15:45:59 +08:00
liu zhengxi
44569cc868
fix xlnet bug ( #1937 )
2022-04-12 12:06:49 +08:00
tianxin
61b51ea9e6
add RGL README ( #1936 )
2022-04-12 10:55:51 +08:00
smallv0221
164f0f6db1
upgrade AddedToken class ( #1933 )
...
* read addedtoken from config
* upgrade AddedToken class
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-04-11 17:22:12 +08:00
Guo Sheng
dc26828139
To avoid recursive import temporarily ( #1896 )
...
* To avoid recursive import temporarily.
* To avoid recursive import temporarily.
Co-authored-by: Jiaqi Liu <709153940@qq.com >
2022-04-11 15:53:30 +08:00
liu zhengxi
86489d8809
Paddle benchmark ( #1827 )
2022-04-11 14:48:52 +08:00
smallv0221
ac6fc3a643
read addedtoken from config ( #1930 )
2022-04-11 14:40:21 +08:00
吴高升
1ff5954481
Update SimCSE predict file ( #1918 )
...
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-04-08 23:05:04 +08:00
Noel
2e236dbe9c
Merge pull request #1919 from LemonNoel/fix_star
...
[ehealth] fix syntax for python 3.9
2022-04-08 17:35:04 +08:00
Huijuan Wang
11881bc071
[cblue] fix encoding in json for python 3.9
2022-04-08 13:13:03 +08:00
Huijuan Wang
671f0f3898
[ehealth] fix usage of star for python 3.9
2022-04-08 11:26:52 +08:00
Zhong Hui
4ba301bb54
[BugFix] Update parallel.py ( #1905 )
2022-04-07 19:58:24 +08:00
Jack Zhou
67d93b1f06
Fix hyp dataset loading ( #1900 )
2022-04-07 17:41:56 +08:00
Jiaqi Liu
6f0535a14d
Calc CHID acc by considering the global probability ( #1891 )
...
* compute acc by considering the global probability
* remove debug var
* remove debug var
* update readme results
* fix cmrc2018 max answer length
* update readme
* add lr,bs in readme
2022-04-07 15:02:28 +08:00
tianxin
07c0085608
add paddlefsl into requirements.txt ( #1907 )
2022-04-07 00:11:26 +08:00
Zhong Hui
adb2478427
[Trainer] update trainer usage with data collator ( #1892 )
...
* update trainer usage with data collator
2022-04-06 20:35:45 +08:00
Allen Guo
2000ea2ea8
[IPU] add bert-base model for ipu ( #1793 )
...
* add bert-base model for ipu
* use hdf5 dataset
* add enable_engine_caching param
* use HF dataset for squad task
* update readme
2022-04-02 18:18:51 +08:00
smallv0221
7ff492bad9
fix data collator for stsb ( #1888 )
2022-04-01 20:00:51 +08:00
smallv0221
2ace3f1974
fix HF load_dataset hack ( #1886 )
...
* fix HF dataset hack
* minor fix
2022-04-01 16:59:48 +08:00
Guo Sheng
82cccba33d
Update in_dygraph_mode to in_dynamic_mode. ( #1884 )
2022-04-01 13:09:05 +08:00
tanhanzhuo
02d762c0a5
[PreTraining] Add RoBERTa pre-train and finetune ( #1780 )
...
* data collator for masked language modeling
* tokenize data via HF datasets
* add RoBERTa Model
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-04-01 11:40:55 +08:00
Noel
437c926dfc
Merge pull request #1879 from LemonNoel/deploy
...
[ERNIE-Health] add max_steps and fix readme
2022-03-31 22:42:20 +08:00
Noel
6c0e1bb4c4
Merge branch 'develop' into deploy
2022-03-31 20:56:35 +08:00
Huijuan Wang
1bc96a0180
[ehealth] remove del data_loader
2022-03-31 20:55:57 +08:00
Milen
ee157d6f8b
Supporting processing data from doccano platform. ( #1866 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
* refine readme
* load ppminilm in transformers.PPMiniLMModel, not load in ErnieModel
* use model in transformers, not implement it personally
* refine style with pre-commit
* set paddlenlp version == 2.2.2
* refine readme
* refine readme
* refine readme
* fix bug, make sure that length of input_text and label is equal when deocding
* fix bug, make sure that the length of input_text and label is equal
* fix some mistakes in readme
* refine procedure
* refine readme
* set dtype=64 to fix dtype problem in windows
* set dtype=64 to fix dtype problem in windows
* set 2 max_seq_len for ext_ and cls_ model
* refine readme
* fix dtype problem in windows
* refine readme
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-31 20:16:14 +08:00
Huijuan Wang
6641d3ca57
[cblue] remove warning in CMeIE
2022-03-31 19:41:17 +08:00
Zhong Hui
9fb0148a30
refine some code as reviews. ( #1880 )
2022-03-31 18:38:44 +08:00
tianxin
b1d5b530a6
Remove FewCLUE CLUEWSC unlabeled.json ( #1881 )
...
issue #1854
2022-03-31 18:14:11 +08:00
gongenlei
561f114eb8
fix: change dtype:generator-->list ( #1877 )
...
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2022-03-31 15:58:58 +08:00
yingyibiao
79126042d6
set default value for num_classes ( #1867 )
2022-03-31 15:12:48 +08:00
Guo Sheng
c541f4ba1f
Add model parallel for FasterGPT. ( #1755 )
...
* Add model parallel for FasterGPT.
* Make GPT model parallel runable
* Make FT model parallel optional.
* Fix _write_setup_file when kwargs is not empty.
* Fix ext_utils.load
* Add file lock for model parallel.
* Fix model_parallel.flag in CMakeLists.txt.
* Use a separated lib for model parallel.
* Make from_pretrained get partial model.
* Make model parallel support layer group in python.
* Fix fit_partial_model when model having keys state not including.
Add api docs for model parallel.
* Fix the default world_size when mpi is not available.
* Add demo for GPT model parallel.
* Fix default global ft_para_conf.
* Fix GPTModel state_dict wrapper for layer parallel.
* Set seed for tensor parallel.
* Fix location of gpt.h in cmake.
* Fix seed in gpt.h
* Fix NV FT GPT embedding.
* Add more cases in gpt_mp_sample.py
* Fix seed in ker_curand_setupLauncher.
Put build dir of FG in PPNLP_HOME with digest of current path.
* Refine gpt_mp_sample.py
2022-03-31 15:08:41 +08:00
smallv0221
f2506c37c9
Add special token mask switch ( #1878 )
...
* add switch for offset mapping
* add switch for offset mapping
* minor fix
* fix offsets mapping
* upgrade chinese qa eval
* add special token switch
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-31 13:32:46 +08:00
Huijuan Wang
9aac8b6a0c
[ehealth] fix README for CHIP-STS
2022-03-31 11:33:57 +08:00
smallv0221
2bb8bf5f31
upgrade chinese qa eval ( #1874 )
...
* add switch for offset mapping
* add switch for offset mapping
* minor fix
* fix offsets mapping
* upgrade chinese qa eval
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-31 10:59:57 +08:00
Huijuan Wang
b373d98080
[ehealth] add max_steps parameter
2022-03-30 22:34:02 +08:00
smallv0221
316b14a55b
fix offset mapping ( #1871 )
...
* add switch for offset mapping
* add switch for offset mapping
* minor fix
* fix offsets mapping
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-30 20:50:46 +08:00
smallv0221
30b4ca575d
add switch for offset mapping ( #1856 )
...
* add switch for offset mapping
* add switch for offset mapping
* minor fix
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-30 20:11:21 +08:00
吴高升
95885249ef
Update WR&faq readme by QA ( #1863 )
...
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-30 20:10:30 +08:00
chenxiaozeng
9a124efe31
Add learning materials of Taskflow API ( #1869 )
...
* Add learning materials of Taskflow API
For promotion activities.
* fix code style err
* Add learning materials of Taskflow API
2022-03-30 19:06:41 +08:00
Zhong Hui
44a290e94d
[Trainer] Add init version of paddlenlp trainer and apply finetune for ernie-1.0 pretraining. ( #1761 )
...
* add some datasets for finetune.
* support fine tune for all tastks.
* add trainer prototype.
* init verison for paddlenlp trainer.
* refine trainer.
* update for some details.
* support multi-cards training evaluation.
* support load from ckpt.
* support for export inference model.
* first version of trainer.
* seq cls support clue.
* trainer support for token classification and question answersing tasks.
* fix as reviews.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-03-30 17:38:10 +08:00
wawltor
00af227211
Merge pull request #1844 from LemonNoel/deploy
...
[ERNIE-Health] Add export_model examples
2022-03-30 10:09:50 +08:00
Huijuan Wang
4a9a3dbec9
[ehealth] fix README
2022-03-29 21:13:52 +08:00
Noel
fd52aff878
Merge branch 'develop' into deploy
2022-03-29 21:10:54 +08:00
Huijuan Wang
a1e7dfff9c
[ehealth] fix annotation and README
2022-03-29 21:09:52 +08:00
Yaozong Shen
a6e56e3b6b
Fix broken path ( #1862 )
...
* fix bugs
* fix bugs
* fix code style
2022-03-29 20:30:15 +08:00
Huijuan Wang
832e8a7f99
[ehealth] add reference to doc
2022-03-29 20:20:14 +08:00
Noel
a132cc1561
Merge branch 'develop' into deploy
2022-03-29 19:01:48 +08:00
Huijuan Wang
a2960792a7
[ehealth] add ernie-health-chinese to doc
2022-03-29 18:58:36 +08:00
Huijuan Wang
4f8c69641f
[ehealth] change link of ERNIE-Health
2022-03-29 18:07:41 +08:00
chenxiaozeng
77e5192d55
Fix the readthedocs display error ( #1859 )
...
Fix the readthedocs display error caused by lacking of main heading H1.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-03-29 18:06:28 +08:00
Linjie Chen
1f4a5075b1
Update README.md ( #1858 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2022-03-29 18:05:38 +08:00
Huijuan Wang
249227fe58
[ehealth] fix bug in export_model
2022-03-29 17:36:12 +08:00
Huijuan Wang
623d65e377
[ehealth] update README
2022-03-29 16:20:02 +08:00
smallv0221
d0d20678f2
add new datacollator upgrade examples ( #1816 )
...
* upgrade predict_glue.py
* test doc api
* revert
* update collator
* revert dureader_robus
* minor fix
* add glue sample
* stash
* stash
* upgrade examples for new datacollator
* fix squad sample
* add token classification collator
* fix doc
* fix collator for squad
* minor fix
* upgrade msra_ner predict
* add some doc
* add more check
2022-03-29 16:10:08 +08:00
Huijuan Wang
241b9e04a0
[ehealth] update parameters
2022-03-29 15:22:59 +08:00
chenxiaozeng
1df66439dc
Update taskflow.md ( #1847 )
...
Change the aistudio tutorial link.
2022-03-29 10:03:16 +08:00
Jiaqi Liu
07a25b286b
Add clue benchmark (cmrc2018, chid, c3) ( #1810 )
...
* update chid, c3
* update chid, c3
* update chid
* update train c3 script
* update train and test
* fix chid data process
* fix readme error
2022-03-28 21:04:41 +08:00
Huijuan Wang
b7f9949871
[ehealth] add export_model
2022-03-28 20:35:52 +08:00
yingyibiao
3351ab0405
Upgrade Roberta tokenizer ( #1821 )
...
* update roberta
* update roberta tokenizer
* update roberta tokenizer
* update
* update
2022-03-28 18:55:17 +08:00
smallv0221
46cbe60018
Add finetuned ernie gram ( #1814 )
...
* add finetuned ernie-gram model
* add finetuned ernie-gram model
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-28 17:53:30 +08:00
wanghuijuan03
919f7ed29c
[ehealth] rename ehealth as ernie-health and add draft export_model
2022-03-28 16:44:58 +08:00
yingyibiao
0a2988970e
update readthedocs requirements ( #1842 )
2022-03-28 16:25:17 +08:00
gongenlei
b69d56f513
Refactor dataset xnli/cnn_dailymail ( #1838 )
...
* refactor: add name error for xnli
* add default language
* use name not version
2022-03-28 16:00:21 +08:00
gongenlei
c4fc6eafa2
fix: rename ernie-gen tokenizer name ( #1841 )
2022-03-28 15:43:36 +08:00
wawltor
5463a3ea62
Merge pull request #1839 from linjieccc/fix_bugs
...
fix textcnn inference and text_classification distributed training bugs
2022-03-28 15:02:34 +08:00
wawltor
2682d3c9d2
Merge pull request #1828 from LemonNoel/cblue
...
[EHealth] Add examples of NER and SPO tasks
2022-03-28 14:20:01 +08:00
Linjie Chen
bb7916bee3
Merge branch 'develop' into fix_bugs
2022-03-28 13:53:54 +08:00
linjieccc
11c568c4fd
fix ci
2022-03-28 05:40:13 +00:00
linjieccc
4829631d7d
fix textcnn inference and text_classification distributed training bugs
2022-03-28 05:30:17 +00:00
Huijuan Wang
85a3a252bb
[ehealth] add annotation for batchify_fn
2022-03-28 12:10:50 +08:00
Huijuan Wang
aa82dc0666
[ehealth] fix problems for dynamic2static
2022-03-28 11:09:44 +08:00
smallv0221
5f3ab326f9
fix tokenizer doc for __call__() ( #1815 )
...
* fix tokenizer doc for __call__()
* fix tokenizer doc for __call__()
* fix tokenizer doc for __call__()
* fix_doc
* fix_doc
* update doc
* minor fix
2022-03-28 11:02:31 +08:00
Huijuan Wang
630e21ef00
[ehealth] update readme
2022-03-26 10:39:51 +08:00
Huijuan Wang
4aa9bb8c07
[ehealth] fix bug in spo metric
2022-03-26 00:45:01 +08:00
Huijuan Wang
93b2a0c2ce
Merge remote-tracking branch 'ppnlp/develop' into cblue
2022-03-25 22:08:59 +08:00
Huijuan Wang
f2239e3b6f
[ehealth] optimize examples
2022-03-25 22:06:36 +08:00
Yaozong Shen
93cae49c0c
Add NLP model interpretation ( #1752 )
...
* upload NLP interpretation
* fix problems and relocate project
* remove abandoned picture
* remove abandoned picture
* fix dead link in README
* fix dead link in README
* fix code style problems
* fix CR round 1
* remove .gitkeep files
* fix code style
* fix file encoding problem
* fix code style
* delete duplicated files due to directory rebuild
* fix CR round 2
* fix code style
* fix ernie tokenizer
* fix code style
* fix problem from CR round 1
* fix bugs
* fix README
* remove duplicated files
* deal with diff of old and new tokenizer results
* fix CR round 4
* fix code style
* add missing dependence
* fix broken import path
* move some data file to cloud
* MRC upper case to lower case
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: binlinquge <xxx>
Co-authored-by: Guo Sheng <guosheng@baidu.com >
2022-03-25 21:11:52 +08:00
Linjie Chen
edcd9a4750
Update README.md ( #1835 )
...
* Update README.md
* Update README.md
* Update README.md
2022-03-25 18:30:12 +08:00
Huijuan Wang
02f0e210c1
[ehealth] add spo example
2022-03-25 15:08:06 +08:00
Zhong Hui
1d930169e1
[Pre-training] Optional for nsp task, support multi-datasets in ERNIE-1.0 pre-training ( #1621 )
...
* add no nsp training.
* support for multi-dataset
* fix test sample nums.
2022-03-25 11:21:48 +08:00
Linjie Chen
3b675575cb
Update README.md ( #1832 )
2022-03-24 20:45:09 +08:00
Zeyu Chen
c11a1465e1
Update README.md
2022-03-23 23:25:34 +08:00
chenxiaozeng
97da5e0dc6
update taskflow readme ( #1824 )
2022-03-23 23:24:55 +08:00
Huijuan Wang
203232a21c
Merge remote-tracking branch 'ppnlp/develop' into cblue
2022-03-23 21:37:17 +08:00
Huijuan Wang
b66d14d9bf
[ehealth] update script for ner
2022-03-23 21:33:20 +08:00
吴高升
6864ac37ee
Add FAQ system ( #1785 )
...
* Add faq solution
* Update faq readme
* Update readme
* Update readme
2022-03-23 21:26:10 +08:00
Huijuan Wang
55ac7fbdbd
[ehealth] fix evaluator for ner
2022-03-23 21:17:35 +08:00
Jiaqi Liu
c50cf7207f
fix clue readme ( #1822 )
2022-03-23 16:57:35 +08:00
Huijuan Wang
b0fa3ce47b
[cblue] fix diff in encoding overlapped entities
2022-03-23 14:10:53 +08:00
Linjie Chen
6d102f5b97
Update README.md ( #1820 )
...
* Update README.md
* Update README.md
2022-03-23 14:03:36 +08:00
Zhong Hui
fe06274910
try import paddle.distribute to aviod failed when import paddlenlp. ( #1818 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-03-23 10:46:29 +08:00
Linjie Chen
8b68c74755
Update README.md ( #1812 )
...
* Update README.md
* Update README.md
* Update README.md
2022-03-22 23:10:37 +08:00
Huijuan Wang
b137a35db7
[ehealth] align LinearDecayWithWarmup
2022-03-22 16:30:20 +08:00
Jiaqi Liu
b570fd11fd
Add RocketQA ranking model ( #1783 )
...
* add rocketqa ranking model
* Update ranking class
* fix filepath
* fix apply
* delete ErnieRanking
2022-03-22 14:43:05 +08:00
smallv0221
b260c8fa50
Fix tokenizer and datasets compatibility issue ( #1809 )
...
* Fix tokenizer and datasets compatibility issue
* minor fix
* minor fix
* minor fix
* fix squad predict
2022-03-22 12:32:13 +08:00
liu zhengxi
5637b5f15c
Simplify xl sample to use float16 FT ( #1808 )
2022-03-22 12:13:36 +08:00
QingshuChen
08a22758b1
fix bug that FLAGS_selected_xpus can't work ( #1811 )
2022-03-21 19:06:01 +08:00
Huijuan Wang
01a0c1fca3
[ehealth] fix bug in NER
2022-03-21 16:50:54 +08:00
吴高升
6ff5eabb8f
Fix bert dead link ( #1807 )
2022-03-21 14:51:33 +08:00
gongenlei
8fecd6b648
[BUGFIX] fix hang when training and evaluation in multi-gpus model ( #1681 )
...
* fix: fix hang in multi-gpus
* rm del dataloader
2022-03-21 12:25:42 +08:00
wawltor
eb5cf37cea
Merge pull request #1782 from LemonNoel/ner_spo_debug
...
[EHealth] Finetune examples of Classification, NER and SPO
2022-03-21 10:29:35 +08:00
Zhong Hui
83743ccb63
[BUGFIX] fix gpt benchmark. ( #1787 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-03-20 18:06:50 +08:00
Linjie Chen
36a8f5056f
Simplify replacement of pretrained models ( #1788 )
2022-03-19 17:35:53 +08:00
Zhong Hui
43ce0713d8
[PRETRAIN] Add ernie-1.0 dygraph training script. ( #1744 )
...
* add ernie-1.0 dygraph training.
* modify readme.
* fix as reviews.
* fix script
* typo fix.
2022-03-18 23:08:49 +08:00
Jiaqi Liu
d6d77ecf03
Upload dualencoder params to bos ( #1795 )
...
* upload dual encoder params to bos
* update example code
* fix model name
* update rocketqa model name
* remove useless blank line
2022-03-18 23:02:40 +08:00
smallv0221
87f342c3df
fix roberta tokenizer ( #1798 )
2022-03-18 22:53:24 +08:00
yingyibiao
5bcc708b82
Update readthedocs ( #1776 )
...
* Update readthedocs
* delete doctree
* update
* update
* update
* update
* update
* update
* update
* update
2022-03-18 22:51:07 +08:00
wawltor
783ac715dc
Merge pull request #1800 from chenxiaozeng/update_doc
...
update group QR code
2022-03-18 21:01:49 +08:00
chenshuo07
631aaed007
update group QR code
2022-03-18 20:56:54 +08:00
Noel
40f45e2d10
Merge branch 'develop' into ner_spo_debug
2022-03-18 17:54:29 +08:00
Huijuan Wang
5126f82586
[ehealth] modify NER code according to comments
2022-03-18 17:41:26 +08:00
yingyibiao
7c47b62d37
fix deadlinks ( #1797 )
2022-03-18 17:39:39 +08:00
tanhanzhuo
1a9a48ebe9
Add cls_token_id ( #1777 )
...
cls_token_id = input_ids[0][0] is not safe, add cls_token_id as initialization parameter for embedding class
Co-authored-by: Jack Zhou <zhoushunjie@baidu.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-03-18 16:41:53 +08:00
smallv0221
e93f899a02
upgrade predict_glue.py ( #1779 )
...
* upgrade predict_glue.py
* test doc api
* revert
2022-03-18 11:36:20 +08:00
Jiaqi Liu
bdd703b257
remove useless config ( #1789 )
2022-03-18 11:10:44 +08:00
Jiaqi Liu
aa63b68971
Add clue benchmark classification ( #1732 )
...
* fix inference bug
* add clue benchmark classification
* add cmrc, chid, c3
* update readme
* add ernie-3.0-base
* update reamde data
* update readme
* update readme
* update readme result
* add predict script
* remove chid, c3, cmrc2018
* fix readme syntax error
* fix predict script
* fix readme
* remove loggng, update readme
* fix readme
* Fix readme
* Fix readme
* update readme
2022-03-18 10:50:59 +08:00
吴高升
c6d7c7c26b
Update albert link ( #1786 )
2022-03-17 21:04:30 +08:00
Huijuan Wang
ff027096cf
[ehealth] draft version of ner and spo tasks
2022-03-17 15:14:33 +08:00
Jiaqi Liu
684e90745c
Add semantic indexing model ( #1771 )
...
* Add ernie matching
* fix doc
* fix tokenizer
* upload params to bos
* update semantic indexing model
* rename class
* update model name
* fix useless argument
* fix useless argument
2022-03-17 12:57:42 +08:00
Linjie Chen
e91dc7858c
disable use_pos for segmented inputs ( #1778 )
2022-03-17 11:34:55 +08:00
smallv0221
549d9a5310
upgrade text_classification example ( #1767 )
...
* ungrade text_classification example
* add msra example
* minor fix
2022-03-16 15:34:36 +08:00
liu zhengxi
1a5695a18b
Support UNIMOText dy2sta ( #1769 )
2022-03-16 10:34:28 +08:00
gongenlei
e728f037d9
fix: update model name ( #1770 )
2022-03-15 23:50:50 +08:00
liu zhengxi
afd326da4b
Make autolog alternative ( #1672 )
...
* make autolog alternative
* minor fix
* update
2022-03-15 16:56:06 +08:00
Linjie Chen
1e2ee01dad
Update Taskflow word_segmentation and ner tasks ( #1666 )
...
* Add AutoSplitter & AutoJoiner
* codestyle fix
* unify auto joiner
* add comments
* add sentence split mode
* update params
* add paddle version check
* add wordtag for word_segmentation
* add wordtag for word_segmentation
* add ner-lac and word_segmentation-jieba
* add return entities only for ner
* fix ci
* fix ci
* fix ci
* fix ci
* fix ci
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* fix bugs of dataloader
* remove guard
* use fast mode for rnn example
* Update README.md
* Update README.md
2022-03-15 14:38:43 +08:00
smallv0221
5d69c9f2e5
Upgrade luke examples and require datasets ( #1765 )
...
* change squad to HF
* update tokenizer
* update squad metric
* minor fix
* debugging
* minor fix
* minor fix
* update_mpnet_example
* add dureader example
* fix readme
* minor fix
* add requirements
2022-03-14 10:44:22 +08:00
Baibaifan
cf7c855955
[BUGFIX] Sharding: Fix fp32 group sharded ( #1764 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-03-13 15:17:28 +08:00
Beacontownfc
48dee51548
Add model MegatronBert ( #1678 )
...
* add megatronbert
* fix link
* Mormalized code
* add doc string
* update modeling
* recover
* recover
* Modify according to Steffy
* delete prefix
* Update modeling.py
* Modifiy according to Zhui
* Modify gelu_new
* Update tokenizer.py
* Update modeling.py
* update modeling
* update megatronbert
* recover
* Update modeling.py
* Update README.md
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-03-13 13:24:35 +08:00
smallv0221
ac29416211
Using HF Dataset on squad example ( #1713 )
...
* change squad to HF
* update tokenizer
* update squad metric
* minor fix
* debugging
* minor fix
* minor fix
* update_mpnet_example
* add dureader example
* fix readme
* minor fix
2022-03-11 21:51:37 +08:00
liu zhengxi
a9cf35e08a
Add FAQ about FT compiling ( #1750 )
...
* add faq
* pre-commit
* bold
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-03-11 21:48:30 +08:00
Steffy-zxf
503940fdb1
Simplify RNN data preprocessing ( #1723 )
...
* refine the data preprocessing
* refine readme
* update prediction example
* add stopwords for example
* remove redudant code
* fix typos
2022-03-11 21:47:31 +08:00
吴高升
653ca9635b
Enhance SimCSE by Word Repetition strategy ( #1747 )
...
* Add WR strategy
* Update readme
* Update bash file
* Update Readme
* fix the format error
* Update readme
* rm english dataset results
* Add colon
2022-03-11 19:33:47 +08:00
Guo Sheng
3ee73ac8f7
Update FasterGeneration convert_param ( #1757 )
...
* Fix jit.to_static/jit.save when deleting unfused qkv weights.
* To allow convert_params be called more than once.
2022-03-11 14:17:26 +08:00
Baibaifan
9da1bb6284
[GPT-3] Sharding, fix group sharded api ( #1754 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-03-11 12:07:11 +08:00
DanielYang
43e798916c
Merge pull request #1756 from chenxiaozeng/update_doc
...
Prepose group QR code
2022-03-11 11:38:51 +08:00
chenshuo07
54bede7c2d
update group QR code
2022-03-11 10:44:37 +08:00
chenshuo07
b554cbef59
update group QR code
2022-03-11 10:17:23 +08:00
Zhong Hui
7ff22597e0
Update transformers.rst ( #1753 )
2022-03-10 18:36:43 +08:00
yingyibiao
7a8e95d369
rename community model weights ( #1749 )
2022-03-10 17:29:28 +08:00
Beacontownfc
30ab2533de
Add model LUKE ( #1677 )
...
* add luke
* update example
* Update README.md
* Update README.md
* normalized code
* fix error
* add doc string
* Update modeling.py
* delete entity_vocab.py
* Modify according to Steffy
* fix format
* fix format
* update luke
* Update modeling.py
* Update run_squad.py
* update luke
* update luke
2022-03-10 12:44:27 +08:00
Guo Sheng
bf0b18d0ae
Optimize memory usage for faster generation. ( #1640 )
...
* Optimize memory usage for faster generation.
* Support FT transfer params from cpu and fp16 for big model loading.
* Fix get_default_dtype in _build_faster.
* Refine on FasterGPT params transfer.
* Support to convert to static graph.
* Make place string compatible with paddle develop and 2.2
* Fix converting to static graph in fp16 and mark todo
* Fix qkv concat weight setting.
Add doc for convert_param.
* Add load_state_as_np as a keyword argument of PretrainedModel.from_pretrained.
* Update plato-xl configuration.
* Make FasterUnifiedTransformer dy2static adapt to memory optimization.
* Fix InferUnifiedDecoding __init__
* Fix convert_params call in InferUnifiedDecoding.
* Update according to comments.
2022-03-09 17:16:40 +08:00
liu zhengxi
d767381445
refine codes and docs ( #1733 )
2022-03-07 17:26:30 +08:00
liu zhengxi
ebd6859ab7
Original Generate API supports role ( #1727 )
...
* generate support role
2022-03-07 16:40:43 +08:00
Huijuan Wang
ba3ea1cffa
[cblue] support converting labels of multi-tasks
2022-03-07 16:10:50 +08:00
Huijuan Wang
205e5001f1
[ehealth] merge and move create_dataloader to utils.py
2022-03-07 14:14:53 +08:00
d294270681
4871622621
Add model Prohetnet ( #1698 )
...
* add Prohetnet model
* update prohetnet
* update format
* pre commit
* add prophetnet example
* update tokenizer.py,run_train.sh,train_prophetnet.py
* remove evaluate/gigaword/__init__.py
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2022-03-07 10:30:23 +08:00
Zeyu Chen
92d82a859b
Merge branch 'develop' into cblue
2022-03-05 15:08:16 +08:00
Huijuan Wang
61bfdd54ee
[ehealth] fix metric and ehealth name
2022-03-04 14:10:20 +08:00
yujun
81398635cf
update MultiHeadAttentionWithConv ( #1643 )
...
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-03-04 10:59:26 +08:00
turkeymz
7b8dd49ad4
[Robert] support 2D attention_mask from tokenizer ( #1676 )
...
* [Robert] support 2D attention_mask from tokenizer
* format code style for yapf
* format code style for yapf
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-03-04 10:58:41 +08:00
Zhong Hui
1e14c2a92d
[DOC] Update GPT Readme ( #1718 )
...
* [DOC] Update GPT Readme
Update GPT Readme
* Update README.md
2022-03-04 09:06:33 +08:00
chenxiaozeng
0782e912c9
Update README.md ( #1725 )
...
update QR code
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2022-03-03 18:06:44 +08:00
smallv0221
a99f82f947
Merge branch 'develop' into update_doc
2022-03-03 18:06:29 +08:00
chenxiaozeng
f71b7d8f20
Update README_en.md ( #1726 )
2022-03-03 18:05:04 +08:00
chenxiaozeng
bc3a10885f
Update README.md
...
update QR code
2022-03-03 17:52:46 +08:00
Noel
dc933f3dde
Merge branch 'develop' into cblue
2022-03-03 17:20:32 +08:00
Huijuan Wang
66ccc0e06a
[ehealth] fix problems in sequence classification
2022-03-03 17:13:13 +08:00
liu zhengxi
d4f0fa4e77
fix dy2sta ( #1724 )
2022-03-03 16:09:06 +08:00
liu zhengxi
dbd26feb80
Add PLATO-XL example ( #1708 )
2022-03-03 15:48:36 +08:00
liu zhengxi
4c36ef9e41
FasterUnifiedTransformer/PLATO support dy2sta ( #1717 )
...
* support ut dy2sta
* use jit load
2022-03-03 11:04:09 +08:00
liu zhengxi
4a9106570b
FT support context forward acceleration ( #1559 )
...
* context acceleration support
2022-03-01 21:20:34 +08:00
chenxiaozeng
8801dc0643
Update doc ( #1715 )
...
* update QR code
* update QR code
* update doc
2022-03-01 16:34:06 +08:00
吴高升
4a1b98b939
Update Readme and Update Mivus feature extraction module ( #1699 )
...
* add recall inference similarity
* update examples
* updatea readme
* update dir name
* update neural search readme
* update milvus readme
* update domain adaptive pretraining readme
* fix the mistakes
* update readme
* add recall Paddle Serving Support
* update readme
* update readme and format the code
* reformat the files
* move the files
* reformat the code
* remove redundant code
* update changes
* Add C++ Paddle Serving
* Update Readme and Update Mivus feature extraction module
* check formats
* update serving config
* deleted redundant code
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-03-01 10:17:13 +08:00
QingshuChen
d5db194ea2
transformer support kunlun ( #1712 )
...
* transformer support kunlun
2022-02-28 13:15:34 +08:00
Aganlengzi
655df0b47a
[NPU] support bowadding npu device configure ( #1704 )
2022-02-28 12:28:21 +08:00
Zhong Hui
090e636db5
[DOC] Update GPT README.md ( #1710 )
2022-02-25 18:24:10 +08:00
Guo Sheng
d329c802f6
Make NV FT support more size_per_head settings. ( #1581 )
...
* Make NV FT support more size_per_head settings.
* Delete debug printf.
* Fix masked_multihead_attention when THREADS_PER_BLOCK is not divisible by THREADS_PER_VALUE.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2022-02-24 15:32:07 +08:00
Damonpkl
f6fca874b1
Fix deprecation warning: Use collections.abc to replace collections ( #1707 )
...
* 弃用警告:从collections中导入ABCs已被弃用,并在python3.8中将停止工作,可使用collections.abc代替它进行使用
* 弃用警告:从collections中导入ABCs已被弃用,并在python3.8中将停止工作,可使用collections.abc代替它进行使用
Co-authored-by: DamonBit <728004952@qq.com >
2022-02-24 13:18:41 +08:00
Huijuan Wang
15f0aa8f45
[ehealth] add sequence classification example
2022-02-23 20:40:07 +08:00
Jiaqi Liu
26fe221a06
fix inference bug ( #1702 )
2022-02-23 10:47:51 +08:00
Jiaqi Liu
b03753726e
fix dir in readme ( #1696 )
2022-02-21 12:26:51 +08:00
Tony An
b1807db9bb
fix bash typo ( #1675 )
...
the bash is --logdir instead logdir.
2022-02-21 01:02:07 +08:00
chenxiaozeng
3e0ff9af3f
update QR code ( #1693 )
2022-02-19 22:13:02 +08:00
Baibaifan
09b4d17d41
[GPT] GPT-3 dygraph update sharding api usages ( #1689 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-02-18 11:36:18 +08:00
Jack Zhou
557f109ed4
Fix load_dataset args ( #1687 )
2022-02-17 19:32:44 +08:00
Jiaqi Liu
9ac1714ea1
Supports serving for PPMiniLM ( #1620 )
...
* supports serving
add copyright for serving
reorganize
* fix dir
* add readme
* update readme
* update serving readme
* fix some expression in serving readme
* fix serving readme
2022-02-17 16:25:10 +08:00
吴高升
eddc21d558
Add C++ Paddle Serving Support of neural search ( #1667 )
...
* add recall inference similarity
* update examples
* updatea readme
* update dir name
* update neural search readme
* update milvus readme
* update domain adaptive pretraining readme
* fix the mistakes
* update readme
* add recall Paddle Serving Support
* update readme
* update readme and format the code
* reformat the files
* move the files
* reformat the code
* remove redundant code
* update changes
* Add C++ Paddle Serving
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-02-17 13:38:54 +08:00
Jack Zhou
cae02abed9
add task embedding for ernie ( #1628 )
2022-02-17 11:27:59 +08:00
smallv0221
d5bdcfeeca
fix gpt attention bug ( #1685 )
2022-02-16 15:41:10 +08:00
Zhong Hui
93647290d2
[BUGFIX] Update openwebtext2 dataset link. ( #1684 )
2022-02-16 14:31:43 +08:00
Zeyu Chen
8b713d28b3
Update README.md
2022-02-13 23:12:42 +08:00
Zeyu Chen
ce8dc9da62
Update README.md
2022-02-13 23:11:39 +08:00
Jiaqi Liu
029ec79ad7
Add more experimental data for PP-MiniLM ( #1632 )
...
* update ppminilm qa perf result
* add hardware info for perm data
add precision info for perf testing
fix punctuation
* fix readme
* add some exps
* modify some expressions
* Fix typo
* update paddleslim version info in readme
* update readme
* fix expression
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-02-13 23:10:26 +08:00
chenxiaozeng
1559f3b5c4
update group QR code ( #1669 )
2022-02-11 16:22:06 +08:00
smallv0221
059dd28696
fix generate api dont take 2d attention mask bug ( #1641 )
...
* fix generate api dont take 2d attention mask bug
* minor fix
Co-authored-by: gongenlei <gongel@qq.com >
2022-02-08 10:38:54 +08:00
chenxiaozeng
cff9a2585b
update group QR code ( #1662 )
2022-02-03 10:18:04 +08:00
Huijuan Wang
275e62a9f1
[ehealth] add parameters of ehealth
2022-01-30 12:00:34 +08:00
Jiaqi Liu
9adaf58920
fix infer.py when use_faster_tokenizer == False ( #1659 )
2022-01-29 10:56:07 +08:00
liu zhengxi
3e9ee57bfe
Fix Generation expand_inputs_for_generation when corresponding param is None ( #1656 )
2022-01-28 15:17:44 +08:00
yujun
c577cb4636
update T5Model Example doc ( #1652 )
...
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-01-27 20:38:51 +08:00
Huijuan Wang
7153318373
[cblue] add datasets for sequence classification
2022-01-27 19:29:50 +08:00
chenxiaozeng
0fa78717c2
Update group QR code ( #1651 )
...
* update group QR code
* update group QR code
* fix format bug
2022-01-27 16:05:37 +08:00
Baibaifan
c728cabd3a
[Sharding] Fix gpt3 sharding hybrid parallel ( #1648 )
2022-01-27 13:37:04 +08:00
Baibaifan
c720cf6254
[GPT-3] Support sharding stage2, stage3 for gpt-3 dygraph training ( #1636 )
...
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2022-01-26 20:43:34 +08:00
Linjie Chen
3e68984baa
Fix WordTag decode bug ( #1642 )
...
* fix wordtag decode
* Update README.md
* Update README.md
* Update codestyle
2022-01-26 17:41:30 +08:00
yingyibiao
28734abddb
Add mengzi models ( #1638 )
...
* add mengzi models
* add mengzi models
* add mengzi models
2022-01-26 14:10:19 +08:00
Jack Zhou
8e94a979fc
Fix batchify function of token classification task of FasterErnie. ( #1583 )
...
* fix token cls
* fix faster tokenizer pad_to_max_seq_bug
* Fix batch_max_seq
2022-01-26 14:03:17 +08:00
gongenlei
2197402037
[BUGFIX] Cnn_dailymail and xnli raise error when downloading in multi-gpus mode ( #1587 )
...
* fix: multi-gpus count file_num
* fix: update xnli
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
2022-01-26 12:05:51 +08:00
smallv0221
1c10abadb7
Integrate HF Datasets and add DatasetTuple ( #1612 )
...
* fix bart perf
* update fastergeneration doc
* add img
* add img
* change img
* update img
* fix img
* update docs
* fix readme
* update readme
* fix perf
* fix perf
* fix modelling
* fix perf and sample code
* fix perf
* fix perf
* fix seq_len for gpt_sample
* add forced eos token id for faster
* upgrade perf and add forced eos token id
* chenge stack to gather
* add auto perf
* minor fix
* remove encoder change
* Update bart_perf.py
* Update bart_perf.py
* 1. Integrate HF Datasets
2. return all splits by default
3. load_dataset returns DatasetTuple now
* add HF Dataset example
* add kwargs for HF load_dataset
* change datasets to alternative
* remove experimental
2022-01-26 12:05:07 +08:00
gongenlei
32d01fa103
[BUGFIX] BART and mBART support 2D attention mask from tokenizer ( #1637 )
...
* fix: bart and mbart support 2d attention mask
* fix: bart and mbart support 2d attention mask
2022-01-26 11:28:41 +08:00
Zhong Hui
82b1cc421c
[BugFix] [Pre-training] Fix mlm label of dataset_utils ( #1633 )
2022-01-25 16:39:53 +08:00
liu zhengxi
2455ec2cd0
Fix Transformer amp ( Fix #1574 ) ( #1635 )
2022-01-25 14:33:27 +08:00
yujun
8993c321ad
support 2D attention_mask from tokenizer ( #1634 )
2022-01-25 11:15:49 +08:00
Zeyu Chen
f20539d80b
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-01-24 16:43:29 +08:00
hysunflower
078758e192
Merge pull request #1629 from hysunflower/drop_benchmark_models
...
drop gpt fp32 in benchmark
2022-01-24 11:28:51 +08:00
hysunflower
075423cfee
drop gpt fp32 in benchmark
2022-01-24 03:15:06 +00:00
gongenlei
7b455cce47
feat: add conll2002 dataset ( #1561 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-01-22 14:54:17 +08:00
Jiaqi Liu
22a497cb30
Update PPMiniLM performance result tested by QA ( #1602 )
...
* update ppminilm qa perf result
* add hardware info for perm data
add precision info for perf testing
fix punctuation
* fix readme
2022-01-22 14:52:02 +08:00
Zeyu Chen
31b6fd99b2
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2022-01-22 14:40:19 +08:00
Zeyu Chen
48a226f953
Update issues template
2022-01-21 17:00:55 +08:00
smallv0221
ed11f1f5f5
Fix roberta tokenizer ( #1618 )
...
* fix truncation_strategy for tokenizer
* fix roberta tokenizer
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
2022-01-21 11:26:47 +08:00
Zeyu Chen
eb22a182c3
Update README
2022-01-21 10:31:01 +08:00
smallv0221
83b96f4e84
fix truncation_strategy for tokenizer ( #1615 )
2022-01-20 19:50:11 +08:00
Jack Zhou
eb1dd6d366
fix min_sub_graph ( #1606 )
2022-01-20 15:41:34 +08:00
Linjie Chen
df48dea129
fix typos ( #1609 )
2022-01-20 15:41:15 +08:00
chenxiaozeng
2986c930c7
Update README.md ( #1603 )
2022-01-19 15:18:02 +08:00
Jiaqi Liu
27d87b6caf
Update shape range setting method ( #1599 )
...
* update shape range setting method
* fix readme
* fix readme
* update readme
2022-01-17 19:19:50 +08:00
吴高升
0334963bd4
Add ErnieForMultipleChoice ( #1597 )
...
* add recall inference similarity
* update examples
* updatea readme
* update dir name
* update neural search readme
* update milvus readme
* update domain adaptive pretraining readme
* fix the mistakes
* update readme
* add recall Paddle Serving Support
* update readme
* update readme and format the code
* reformat the files
* move the files
* reformat the code
* remove redundant code
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-01-17 15:46:23 +08:00
Jiaqi Liu
22cee265ab
Fix ppminilm export bug ( #1596 )
...
* fix ppminilm export bug
* update export script
* update readme
2022-01-17 12:44:32 +08:00
Zhong Hui
a5f8a3ec9d
[Pre-Training] Add tutorial for clue small 14g dataset ( #1555 )
...
* add tutorial for clue small 14g.
* add pre-train weight to community.
* fix typos.
* fix typo.
* add dataset link.
* change name to ernie-1.0-cluecorpussmall
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-01-15 21:08:38 +08:00
Zeyu Chen
cf51c8ae4c
Update README.md
2022-01-15 09:51:49 +08:00
gongenlei
60608d3906
fix: fix windows dtype to int64 ( #1588 )
2022-01-13 16:12:26 +08:00
吴高升
6213573384
Update neural search readme and Add Paddle Serving Support ( #1558 )
...
* add recall inference similarity
* update examples
* updatea readme
* update dir name
* update neural search readme
* update milvus readme
* update domain adaptive pretraining readme
* fix the mistakes
* update readme
* add recall Paddle Serving Support
* update readme
* update readme and format the code
* reformat the files
* move the files
* reformat the code
* remove redundant code
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
2022-01-13 14:08:23 +08:00
liu zhengxi
2a620ba2f2
update paddle version in readme when using amp training ( #1586 )
2022-01-13 10:55:53 +08:00
Jiaqi Liu
e321e092a0
update ppminilm readme ( #1584 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-01-12 22:19:33 +08:00
Jack Zhou
b0c35d5e1f
Fix the attention mask for fp16 ( #1585 )
2022-01-12 22:11:26 +08:00
gongenlei
b3130851db
[CI] Add max_steps for pointer_summarizer and ernie-gen ( #1556 )
...
* feat: add max_steps for pointer_summarizer
* fix: read encoding
* feat: add max_steps for ernie-gen
* style: enable yapf
2022-01-12 14:27:34 +08:00
yingyibiao
82e4316df8
add pretrained model url ( #1575 )
2022-01-12 11:34:10 +08:00
Jiaqi Liu
85f4cc0ec1
Fix PPMiniLM quantization bug ( #1580 )
...
* update ppminilm, support export faster tokenizer
* supoprts pruning
* update quantation code
* fix quant generator for text pair dataset
* pad_to_max_seq_len defaults to False
* update ppminilm readme data
* update readme
* update readme
* remove save_inference_model_with_tokenizer arg
* update modeling
* update export
* update modeling
update export
delete useless code
* fix quant input bug
2022-01-12 10:51:15 +08:00
zhangbo9674
1e4975d426
[amp] refine transformer fp16 train ( #1574 )
2022-01-12 10:38:37 +08:00
Jiaqi Liu
4ac2811533
Add FasterTokenizer on PPMiniLM ( #1542 )
...
* update ppminilm, support export faster tokenizer
* supoprts pruning
* update quantation code
* fix quant generator for text pair dataset
* pad_to_max_seq_len defaults to False
* update ppminilm readme data
* update readme
* update readme
* remove save_inference_model_with_tokenizer arg
* update modeling
* update export
* update modeling
update export
delete useless code
2022-01-11 17:34:32 +08:00
Jack Zhou
bdda90143b
Fix faster_tokenizer default args ( #1571 )
...
* fix args
* delete convert_bin_npz.py
2022-01-11 15:41:56 +08:00
Linjie Chen
c1d5241d58
Unified customization for Taskflow ( #1517 )
...
* Add custom model inferface for lac & user dict interface for wordtag
* Update README.md
* Update term-linking
* Update README.md
* Update README.md
* add custom method
* Update README.md
* Update README.md
* Unified custom interface for Taskflow
* Update model inference
* Add config files
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* remove unused code
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update main cls
2022-01-11 14:50:19 +08:00
Milen
24ac65d7c6
fix dtype problem when performing quantization function in windows ( #1577 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
* refine readme
* load ppminilm in transformers.PPMiniLMModel, not load in ErnieModel
* use model in transformers, not implement it personally
* refine style with pre-commit
* set paddlenlp version == 2.2.2
* refine readme
* refine readme
* refine readme
* fix bug, make sure that length of input_text and label is equal when deocding
* fix bug, make sure that the length of input_text and label is equal
* fix some mistakes in readme
* refine procedure
* refine readme
* set dtype=64 to fix dtype problem in windows
* set dtype=64 to fix dtype problem in windows
* set 2 max_seq_len for ext_ and cls_ model
* refine readme
* fix dtype problem in windows
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2022-01-11 13:19:23 +08:00
HJHGJGHHG
737e4fa0e8
Add FNet ( #1499 )
...
* Upload FNet model files
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update modeling.py
* Update tokenizer.py
Co-authored-by: yingyibiao <yyb0576@163.com >
2022-01-11 11:05:45 +08:00
hysunflower
719485c674
Merge pull request #1573 from hysunflower/fix_scripts
...
fix scripts
2022-01-10 10:57:36 +08:00
hysunflower
33d960b23a
fix scripts
2022-01-10 02:34:49 +00:00
Steffy-zxf
e80b4c17a7
process data when required avoid occupied too much memory ( #1550 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2022-01-08 23:30:27 +08:00
GT-Zhang
7fea9ffd97
修复Readthedocs文档显示问题 ( #1570 )
...
[https://paddlenlp.readthedocs.io/zh/latest/data_prepare/dataset_list.html ](https://paddlenlp.readthedocs.io/zh/latest/data_prepare/dataset_list.html )处文本生成文档图表显示异常,增加一次换行即可解决问题
2022-01-08 22:39:26 +08:00
gongenlei
be5299ef0e
fix: add args.min_target_length ( #1560 )
2022-01-07 19:43:21 +08:00
Milen
54f2f0694a
refine readme and fix dtype problem in windows ( #1568 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
* refine readme
* load ppminilm in transformers.PPMiniLMModel, not load in ErnieModel
* use model in transformers, not implement it personally
* refine style with pre-commit
* set paddlenlp version == 2.2.2
* refine readme
* refine readme
* refine readme
* fix bug, make sure that length of input_text and label is equal when deocding
* fix bug, make sure that the length of input_text and label is equal
* fix some mistakes in readme
* refine procedure
* refine readme
* set dtype=64 to fix dtype problem in windows
* set dtype=64 to fix dtype problem in windows
* set 2 max_seq_len for ext_ and cls_ model
* refine readme
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2022-01-07 19:40:57 +08:00
hysunflower
b15382b9b7
Merge pull request #1567 from hysunflower/update_benchmark_scripts
...
[benchmark] update gpt benchmark scripts
2022-01-07 16:51:29 +08:00
hysunflower
5163ae67b2
update gpt scripts, test=document_fix
2022-01-07 08:21:48 +00:00
hysunflower
2a4b8ee382
update gpt scripts, test=document_fix
2022-01-07 07:44:48 +00:00
hysunflower
9e74b50c15
update gpt scripts, test=document_fix
2022-01-07 07:41:08 +00:00
hysunflower
a7d8fc1212
update gpt scripts, test=document_fix
2022-01-07 07:32:46 +00:00
hysunflower
1333d435e6
update gpt scripts, test=document_fix
2022-01-07 07:31:34 +00:00
hysunflower
0317a5c403
update_benchmark_scripts
2022-01-07 07:00:41 +00:00
chenxiaozeng
72e242ff0b
Update README_en.md ( #1563 )
2022-01-06 21:32:38 +08:00
chenxiaozeng
5bef34ae49
Update README.md ( #1562 )
...
Replace QQ QR code with wechat QR code.
2022-01-06 21:32:21 +08:00
Jack Zhou
3d3bc82c85
use paddle.einsum instead of paddlenlp.ops.einsum ( #1557 )
2022-01-04 21:49:45 +08:00
smallv0221
809bb57eee
fix t5 tokenizer ( #1543 )
...
* Update FG doc
* update doc
* update tokenizer
* add add_token for tokenizers
* upgrade t5 tokenizer
* upgrade other tokenizers
* reset roberta
* minor fix
* upgrade
* minor fix
* fix t5
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-31 21:00:17 +08:00
yingyibiao
b27c647f51
Fix albert tokenizer ( #1535 )
...
* Fix albert tokenizer
* Update albert tokenizer
* update keyword args
2021-12-31 19:43:32 +08:00
smallv0221
51793e8f15
Upgrade tokenizer ( #1496 )
...
* Update FG doc
* update doc
* update tokenizer
* add add_token for tokenizers
* upgrade t5 tokenizer
* upgrade other tokenizers
* reset roberta
* minor fix
* upgrade
* minor fix
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-31 18:48:28 +08:00
liu zhengxi
e8c7474d04
Fix FasterTransformer when export float16 model ( #1539 )
2021-12-31 14:31:32 +08:00
yujun
4911fe49d5
Fix ctrl tokenizer vocab link ( #1541 )
...
* update
* ctrl max_len = none
2021-12-31 14:04:45 +08:00
wawltor
128a7e5df8
Merge pull request #1515 from joey12300/fix_some_error
...
Fix the usage of nltk bug
2021-12-30 19:40:07 +08:00
Yanxing Shi
e1842d749f
fix the ips of Bert in the static graph ( #1518 )
...
* fix_ips and data sampler
* fix train_batch_sampler
* fix train_batch_sampler
* fix batch_sampler
* fix bug
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-30 19:29:23 +08:00
Milen
a8242221b6
fix bug: make sure that the length of input_text and label is equal ( #1540 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
* refine readme
* load ppminilm in transformers.PPMiniLMModel, not load in ErnieModel
* use model in transformers, not implement it personally
* refine style with pre-commit
* set paddlenlp version == 2.2.2
* refine readme
* refine readme
* refine readme
* fix bug, make sure that length of input_text and label is equal when deocding
* fix bug, make sure that the length of input_text and label is equal
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-12-30 18:31:48 +08:00
zhoushunjie
05e80c0e85
refine doc
2021-12-30 16:45:37 +08:00
gongenlei
7c8dd35955
[ERNIE-M] Add ernie-m ( #1510 )
...
* feat: add ernie-m
* docs: update docstring
* add copyright
* update tokeizer: load_vocab->load_vocabulary
* getting length of dataset automatically
* add result to doc
* docs: update result
* docs: del some res
* docs: update doc
* feat: ernie_m supports auto
* feat: add dropout
* docs: update res
* docs: update params
2021-12-30 11:15:49 +08:00
liu zhengxi
cc9dc322ef
Add transformer tipc ( #1472 )
...
* add transformer tipc
* update
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-29 23:49:02 +08:00
吴高升
4b50fdb885
update neural search readme ( #1530 )
...
* add recall inference similarity
* update examples
* updatea readme
* update dir name
* update neural search readme
* update milvus readme
* update domain adaptive pretraining readme
* fix the mistakes
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-29 23:40:49 +08:00
Milen
a42800c408
set paddlenlp version == 2.2.2 ( #1533 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
* refine readme
* load ppminilm in transformers.PPMiniLMModel, not load in ErnieModel
* use model in transformers, not implement it personally
* refine style with pre-commit
* set paddlenlp version == 2.2.2
* refine readme
* refine readme
* refine readme
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-12-29 23:39:58 +08:00
liu zhengxi
65334b5472
fix paddlenlp import issues ( #1536 )
2021-12-29 23:38:53 +08:00
gongenlei
49f7f0d4da
[XNLI] Add xnli dataset ( #1474 )
...
* feat: add xnli dataset
* feat: add xnli dataset
* refactor: update
* docs: add dataset doc
* fix: remove empty data
* fix: mv xnli to xnli_cn
* refactor: simplify code
* fix: use paddle.utils.download
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-29 21:26:36 +08:00
yingyibiao
39cbfeda2a
add t5-v1_1 checkpoints ( #1534 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-29 20:48:50 +08:00
Jiaqi Liu
032677e95b
Add ppminilm inference ( #1503 )
...
* add use_faster_tokenizer arg
* add infer.py
* add chnsenticorp support, upddate infer using faster tokenizer
* update infer
* update fasterPPminiLM
* update performance test data, and fix general readme
* update readme
* remove ppminilm
* update prune.py
* update readme
* update run_clue
* update shell command
2021-12-29 19:57:54 +08:00
wawltor
6277abfedb
Merge pull request #1519 from TmengT/TmengT-patch-1
...
Update knowledge_mining.py
2021-12-29 15:24:44 +08:00
Milen
dcabd4f999
use suitable models for PP-MiniLM and SKEP ( #1531 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
* refine readme
* load ppminilm in transformers.PPMiniLMModel, not load in ErnieModel
* use model in transformers, not implement it personally
* refine style with pre-commit
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-12-29 14:42:53 +08:00
chenxiaozeng
4070783a5b
Update README.md ( #1523 )
...
add news: applications
2021-12-28 20:56:43 +08:00
Jack Zhou
ec7fb3da42
Fix return_mask bug in squad for ernie, bert model ( #1522 )
...
* fix return_mask bug in squad for ernie, bert model
* add position_ids, attention_mask for BertForQuestionAnswering
2021-12-28 18:56:14 +08:00
Jiaqi Liu
d82766be1d
pdate general distill in ppminilm ( #1520 )
2021-12-28 16:01:32 +08:00
Jiaqi Liu
a16c4bce16
Add PPMiniLM class ( #1512 )
...
* add ppminilm class
* update copyright
* add ppminilm tokenizer to __init__
* update ppminilm
* remove useless comments, remove ernie
* remove useless readme, remove ernie
2021-12-28 15:25:23 +08:00
蒙虒
588e5de602
Update knowledge_mining.py
...
一句话 word_tag后, 最后一个词未被标识出来。
2021-12-28 14:20:21 +08:00
Zeyu Chen
806ff6f998
Update citation tittles
2021-12-27 23:59:58 +08:00
Zeyu Chen
191f6aba40
Update README.md
2021-12-27 23:45:24 +08:00
zhoushunjie
c848db5344
move nltk initialization to __init__
2021-12-27 18:06:21 +08:00
Zeyu Chen
3043717f0b
Update application folders
2021-12-27 17:25:35 +08:00
zhoushunjie
a1d27c3051
avoid import nltk==3.6.6 bug
2021-12-27 17:24:48 +08:00
Milen
a93a047b02
Sentiment Analysis Application ( #1505 )
...
* sentiment analysis initializing
* modify README.md
* sentiment analysis initializing
* modify data_ext and data_cls link in README.md
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete unuseful info.
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* sentiment analysis initializing
* delete sentiment_system.png
* add sentiment_system.png
* refine readme.md
* sentiment analysis intializing
* mv data and checkpoints in sub_dir to parent_dir
* refine readme.md
* refine readme
* refine readme.md, modify requirements
* refine readme.md
* refine readme.md
* refine readme.md
* mv run_export.sh to run_export_model.sh
* refine readme.md
* remove some
* remove some unnecessary packages
* delete unuseful compute_md5 method
* sentiment analysis initializing
* sentiment analysis initializing
* refine readme.md
* set CUDA_VISIBLE_DEVICES=0
* refine style with pre-commit
* use ppminilm in ernie instead of offline ppminilm
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-12-27 11:28:01 +08:00
吴高升
843c69af49
Add recall inference similarity ( #1507 )
...
* add recall inference similarity
* update examples
* updatea readme
* update dir name
2021-12-25 13:01:26 +08:00
Linjie Chen
3012065e8c
Update README.md ( #1508 )
...
* Update README.md
* Update README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-24 18:25:19 +08:00
smallv0221
4359f6b8d5
Fix multiprocess dataset map ( #1511 )
...
* fix multiprocess in dataset.map
* minor fix
2021-12-24 18:24:45 +08:00
Zeyu Chen
7fb53ae735
Update application forlder name
2021-12-24 15:40:48 +08:00
zzz2010
74f9fae19b
funnel transformer ( #1419 )
...
* first version
* add funnel to init.py and run_squad.py
* add attention_mask
* rename FunnelTokenizerFast to FunnelTokenizer
* revised based on the PR comments
* further clean up function description section
* further clean up
* pre-commit check
* pre-commit check
* pre-commit check
Co-authored-by: chfhf <544062970@qq.com >
2021-12-23 22:35:23 +08:00
Zhong Hui
a8b1956050
[BUGFIX] Fix ln link of files in gpt-3. ( #1500 )
2021-12-23 14:06:41 +08:00
Zhong Hui
09f18731a2
[ERNIE] Add parameter converter from static to dygraph. ( #1478 )
2021-12-23 14:05:28 +08:00
liu zhengxi
f631d3edb9
Delete confusing parameter to make FT JIT easy to activate ( #1495 )
...
* fix need build of faster generation
* update
* update
2021-12-22 17:04:59 +08:00
Jiaqi Liu
8aa407e700
update ernie tiny acc ( #1494 )
2021-12-21 14:40:41 +08:00
yingyibiao
b089b21e66
Windows support for LayoutXLM model ( #1489 )
2021-12-20 19:44:58 +08:00
Jiaqi Liu
d94b6283b4
fix ppminilm scripts bug ( #1490 )
2021-12-20 19:40:32 +08:00
smallv0221
55130a9c35
Update FG doc ( #1488 )
...
* Update FG doc
* update doc
2021-12-20 17:08:41 +08:00
Jiaqi Liu
50f71b3f73
update readme, csl and uer wsc tinybert wsc ( #1487 )
...
update
update
2021-12-20 13:57:56 +08:00
Zeyu Chen
b3b05581e0
Update examples and README
2021-12-18 22:37:33 +08:00
Zeyu Chen
e44a5672da
Update README.md
2021-12-18 13:12:23 +08:00
Zeyu Chen
01c6bfafa4
Update taskflow.md
2021-12-18 12:55:01 +08:00
Linjie Chen
9dc70b423f
Update README.md ( #1481 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-17 20:41:11 +08:00
Zeyu Chen
69faee4375
Update README.md
2021-12-17 19:34:21 +08:00
wawltor
f56e4291a6
Merge pull request #1483 from PaddlePaddle/update-faster-tokenizer-map
...
Support ppminilm in FasterTokenizer
2021-12-17 17:41:44 +08:00
Jiaqi Liu
10fc6a6272
Support ppminilm in FasterTokenizer
2021-12-17 17:38:08 +08:00
吴高升
374d31b7da
Add neural search application codes ( #1463 )
...
* add semantic indexing files
* update indexing code
* update milvus config
* update readme
* update readme
* update readme
* update readme
* add code
* add export model
* add base model
* add inference code
* fix the inference bug
* rename dir
* add ernie matching code
* update ernie matching code
* update readme
* update readme
* update readme
* rename dir
* update ernie 1.0
* update ernie readme
* add simcse
* update simcse readme
* add inbach negative code
* update readme
* add batch neg train code
* update readme
* add experimental results
* update readme
* update readme
* update milvus files
* update readme
* add missing codes
* add requirements
* add inbatch negative
* add inbatch negative code
* update batch negative
* update code
* update
* add simcse codes
* update the readme
* update simcse readme
* add simcse infer code
* add simcse inference
* update model
* update readme
* update ernie matching readme
* update readme
* remove redundant code
* update readme
* update inbatch readme
* update readme
* update recall set
* update readme
* update readme
* updatea bash
* update inbatch negative readme
* update readme
* update readme
* delete anne files
* update baseline
* update cpu support
* update readme
* update readme
* update readme
* update readme
* rename readme
* update
* update readme
* update files
* update files
* update readme
* update readme
* add simcse codes
* delete files
* update simcse
* update readme
* add updates
* update readme
* update readme
* update cpu setting
* add text matching
* update bash
* update export module
* update
* update readme
* update files ernie 1.0
* update files
* add updates
* update readme
* update readme
* delete reduntant code
* update readme
* update readme
* update readme
* move dir
* update readme
* update readme
* update readme
* update readme
* update readme
* update
* update readme
* update readme
* update readme
* update files
* update readme
* update readme
* update readme
* update img
* update readme
* update readme
* update readme
* update names
* update requirements
* adjust the directory
* update readme
* update readme
* update readme
* update readme
* update readme
* update
* Tiny Fix
Updata
* update readme
* update readme
* update readme
* update readme
* update
* adjust the readme format
* update readme
* update readme
* add RocketQA
* update readme
* Update
* update readme
* update data sample
* Update README.md
Co-authored-by: mls1999725 <546278509@qq.com >
Co-authored-by: tianxin <tianxin04@baidu.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-12-17 15:34:55 +08:00
Linjie Chen
7336d52dc5
Fix windows dtype ( #1480 )
...
* fix variable name
* fix windows dtype
2021-12-17 12:13:21 +08:00
liu zhengxi
fa1fa7565b
Transformer decoding support fuse qkv ( #1455 )
...
* decoding support fuseqkv ! ! !
* update force version
* fp16
* alternative
* force decoding support global cublashandle and cublaslthandle
* update
* update
* update
* rm ref
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: Guo Sheng <whucsgs@163.com >
2021-12-17 11:54:38 +08:00
Linjie Chen
5f2862a347
Add plato-mini for taskflow ( #1383 )
...
* Add plato-mini for taskflow
* Update README.md
* Update README.md
* Update README.md
* Update model generation
* Update task display
* Update interactive mode
* Update usage
2021-12-17 11:20:10 +08:00
Zhong Hui
1ecff72d07
[PRETRAIN] Change some hyper parameters of ernie-1.0 ( #1344 )
...
* fix ernie, Normal->TruncatedNormal, smaller steps.
* fix by set attn_mask to -1e4
2021-12-17 10:56:38 +08:00
Jiaqi Liu
868e7a234d
Add PP-MiniLM ( #1403 )
...
* # This is a combination of 2 commits.
# The first commit's message is:
update inference
# This is the 2nd commit message:
update
* solve conflicts
fix infer perf
remove useless comments
* update readme
* update readme
update readme
* delete useless char
* update reamde
update code and readme
update readme
Add serial number to readme
update readme
Added a catalog
fix a catalog bug
fix a catalog bug
* update reamde
update reamde
update readme
update reamde
update readme
* update readme, add general readme, remove 'ofa'
* remove infe_perf
* Update README
* Update README
* remove blank space between Chinese characters and numbers
* add blank space
fix director
* update data in readme
* add blank space
* update readme
Co-authored-by: tianxin <tianxin04@baidu.com >
2021-12-16 22:40:14 +08:00
smallv0221
cc58a2390f
Fix diversity rate bug ( #1477 )
...
* update perf
* fix doc and constrains for FasterGeneration
* update readme
* fix diversity rate bug
2021-12-16 21:53:15 +08:00
smallv0221
4e59ce0212
Fix docs and constrains for FasterGeneration ( #1471 )
...
* update perf
* fix doc and constrains for FasterGeneration
* update readme
2021-12-16 21:23:19 +08:00
tianxin
f580332a2e
Tiny Fix ( #1470 )
2021-12-16 00:43:46 +08:00
Steffy-zxf
4d06421908
simpify codes and fix dtype bug in win ( #1469 )
2021-12-15 17:07:18 +08:00
huhuiwen99
b4542fa638
New doc updata 12 ( #1459 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* xfund
* update
* update
* fix errors
* add layoutlm
* add t5
* update
* updat4e
2021-12-15 15:09:51 +08:00
Linjie Chen
7fab504d30
fix bugs on windows ( #1465 )
2021-12-15 15:04:12 +08:00
wawltor
87fa30b62e
Add the tokeniers version in fastertokenizer ( #1461 )
2021-12-14 15:41:49 +08:00
smallv0221
eb5385bc96
update perf ( #1457 )
2021-12-14 14:43:44 +08:00
yingyibiao
e35f1ee58c
Update package_data ( #1454 )
2021-12-13 20:25:06 +08:00
Zhong Hui
72d6590eca
fix max_steps of msra_ner. ( #1451 )
2021-12-13 18:05:39 +08:00
chenxiaozeng
292ac62568
Update index.rst ( #1453 )
...
Fix a bug. Keep consistent with the main readme later when the readme updated.
2021-12-13 18:05:08 +08:00
yingyibiao
c612049f92
Update url ( #1452 )
2021-12-13 15:21:35 +08:00
Steffy-zxf
583f7246e3
fix c_ops compatibility ( #1450 )
...
* fix c_ops compatibility with initial breakdowns and track and signalling compatibility issues under paddle 2.2.1
2021-12-13 11:06:56 +08:00
Linjie Chen
d1140bb15d
fix typo and update version info ( #1449 )
2021-12-11 22:43:44 +08:00
wawltor
449b939d96
Merge pull request #1448 from Steffy-zxf/upstream-develop
...
update paddle verion requires
2021-12-11 14:19:59 +08:00
Steffy-zxf
ff1103e8c8
update paddle verion requires
2021-12-11 14:06:01 +08:00
wawltor
5a3e2c04cd
Update README.md
2021-12-11 13:21:09 +08:00
wawltor
26ad5ebc1a
Update README.md
2021-12-11 13:18:00 +08:00
wawltor
09a43edcbe
Merge pull request #1444 from wawltor/faster_tokenizer_cp
...
update document for the FasterTokenizer
2021-12-11 13:07:55 +08:00
wawltor
7a438f43ba
Update README.md
2021-12-11 05:01:59 +00:00
wawltor
ad06f37c18
Update README.md
2021-12-11 13:00:04 +08:00
Guo Sheng
9d9bd67f29
Add use_faster to faster_gpt sample. ( #1443 )
2021-12-11 00:12:23 +08:00
liu zhengxi
0720afe814
Transformer supports ft faster encoder ( #1430 )
...
* transformer support ft encoder
Co-authored-by: Guo Sheng <whucsgs@163.com >
2021-12-10 23:13:05 +08:00
tianxin
3a24b612ae
tiny fix of README ( #1440 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-10 23:02:28 +08:00
smallv0221
4b870be191
Update readme and fix expand for FasterGPT and FasterMbart ( #1436 )
...
* add attn_mask input for encoder-decoder
* update readme and fix expand for FasterGPT and FasterMbart
* add image
* fix image size
* fix image
* fix expand for attention mask
* remove paddlenlp perf
* fix doc
* remove attention mask in expand
Co-authored-by: Guo Sheng <whucsgs@163.com >
2021-12-10 22:58:39 +08:00
yingyibiao
6cac0aced7
fix typo ( #1442 )
2021-12-10 21:21:36 +08:00
Guo Sheng
40f39fd065
Restrict size_per_head in GPT to use FT. ( #1441 )
...
* Restrict size_per_head to use FT.
* Fix GPT chinese detokenizing for FasterGPT samples.
2021-12-10 21:04:00 +08:00
tianxin
6a3f295ac9
tiny fix ( #1439 )
2021-12-10 19:43:50 +08:00
tianxin
aec3119907
add attn_mask input for encoder-decoder ( #1431 ) ( #1438 )
2021-12-10 19:20:41 +08:00
yingyibiao
f079f91c48
update bos url ( #1437 )
2021-12-10 18:37:04 +08:00
huhuiwen99
21e61b5b07
Docs Update ( #1432 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* init layoutlm model
* modify layoutlmmodel
* test
* fix errors
* add layoutlmformaskedlm
* modify tokenizer
* update
* update
* add layoutlm example
* add example
* update
* update
* delete data
* update
* modify preprocess
* update
* modify loss
* modify example
* find error
* fix errors
* fix errors
* update
* update
* update
2021-12-10 16:33:12 +08:00
smallv0221
e468e19e5e
add attn_mask input for encoder-decoder ( #1431 )
2021-12-10 16:23:17 +08:00
wawltor
10ac335ccd
Merge pull request #1420 from linjieccc/up_wordtag
...
Update usage of wordtag
2021-12-10 16:14:50 +08:00
yingyibiao
072b9ff086
fix model_id ( #1433 )
2021-12-10 15:59:02 +08:00
27182812
5af122b71c
Chinese bert ( #1429 )
...
* add docs
* add docs
* Update tokenizer.py
try import pypinyin
* update pypinyin
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-10 15:05:51 +08:00
huhuiwen99
beed3da7db
Modify Layoutlm example ( #1418 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* init layoutlm model
* modify layoutlmmodel
* test
* fix errors
* add layoutlmformaskedlm
* modify tokenizer
* update
* update
* add layoutlm example
* add example
* update
* update
* delete data
* update
* modify preprocess
* update
* modify loss
* modify example
* find error
* fix errors
* fix errors
2021-12-10 14:50:20 +08:00
Jiaqi Liu
8268726456
Update distill_utils to support PP-MINILM ( #1426 )
...
* update distill utils to support PP-MiniLM
update function name
update
remove ununsed import
* update doc for loss_fct
* add description for loss_fct
2021-12-10 14:38:53 +08:00
linjieccc
d3fcc6181e
Update README.md
2021-12-10 06:25:34 +00:00
Penghui Zhao
41ab2653cb
[PaddlePaddle Hackathon] 55题 提交 ( #1133 )
...
* add roberta model
* rollback
* .
* upd roberta convert
* upd
* upd
* upd compare
* upd unitest
* upd unnitest
* upd roberta convert
* clean code
* upd tokenizer config
* upd model_config
* add pretrain weight file json
* upd pretrained_model_rst
* rename pretrain model name
* upd tokenizer pretrained_resource_files_map
* upd tokenizer pretrained_resource_files_map
* upd tokenizer info
* unify tokenizer
* unify tokenizer
* Update tokenizer.py
* Update README.md
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-10 11:58:27 +08:00
wawltor
91c1a49c49
Merge pull request #1425 from linjieccc/update_url
...
Update URL for datasets
2021-12-10 11:03:26 +08:00
liu zhengxi
4d9f920521
Fix sampling randomly fail in FasterTransformer ( #1427 )
...
Fix sampling randomly fail in FasterTransformer
2021-12-10 10:35:19 +08:00
linjieccc
aea393eb7a
Update URL for datasets
2021-12-09 14:10:55 +00:00
liu zhengxi
b37d218243
fix paddle.sum ( #1422 )
2021-12-09 21:45:18 +08:00
linjieccc
d19ad50ad4
Update README.md
2021-12-09 13:08:44 +00:00
linjieccc
18f3a7c356
Update usage of wordtag
2021-12-09 13:03:05 +00:00
27182812
0287e5475d
add model chinesebert ( #1100 )
...
* add model chinesebert
add model chinesebert
paddle model weights:
https://drive.google.com/file/d/1Cze9mZGX9_1btGCCYTdb7PA2PNPvw2is/view?usp=sharing
* 修改完善
* update
* delete logs
* delete datasets
* delete
* update
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-09 19:24:39 +08:00
Linjie Chen
e27ac6a046
Support segmented inputs for ddparser ( #1351 )
...
* Support segmented inputs for ddparser
* Update usage
* Update ddparser segmode
* Update README.md
* Update README.md
* Update taskflow.md
2021-12-09 17:28:21 +08:00
huhuiwen99
570685fd43
Add LayoutLMModel ( #1362 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* init layoutlm model
* modify layoutlmmodel
* test
* fix errors
* add layoutlmformaskedlm
* modify tokenizer
* update
* update
* add layoutlm example
* add example
* update
* update
* delete data
* update
* modify preprocess
2021-12-09 17:02:17 +08:00
wawltor
0ba12057b1
Merge pull request #1414 from wangxicoding/fix_static_bert_amp_nan
...
fix static bert amp nan
2021-12-09 16:24:36 +08:00
wawltor
f3010d9fc5
Merge pull request #1411 from Steffy-zxf/upstream-develop
...
fix skep data type on the win
2021-12-09 16:21:17 +08:00
liu zhengxi
208e8803b0
fix gpt dy2sta ( #1416 )
2021-12-09 15:42:35 +08:00
yingyibiao
d4075ff0ad
Add layoutlmv2 model ( #1415 )
...
* add layoutlmv2 modeling
* add layoutlmv2 tokenizer
* update
* update
2021-12-09 14:46:23 +08:00
tianxin
aa3ae6264d
Update FasterTransformer Encoder Performance ( #1413 )
2021-12-09 12:26:59 +08:00
WangXi
97e51ffceb
fix static bert amp nan
2021-12-09 03:33:31 +00:00
Linjie Chen
8ef9979639
Update URL for Taskflow and transformers ( #1402 )
...
* Update URL for taskflow and transformers
* Update md5
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-08 23:45:07 +08:00
smallv0221
eea2d98bd9
change default use_faster to False ( #1410 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-08 23:40:12 +08:00
Penghui Zhao
ae02c319a4
add mobilebert model ( #1160 )
...
* upd mobilebert
* upd mobilebert
* add docstring.
* add docstring.
* upd docstring
* add license
* Update tokenizer.py
* Update modeling.py
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-08 21:18:45 +08:00
Steffy-zxf
c43df37410
fix skep data type on the win
2021-12-08 17:46:04 +08:00
smallv0221
1dc67bcb98
Add MBart FasterGeneration sample ( #1409 )
...
* add mbart FasterGeneration sample
* minor fix
Co-authored-by: gongenlei <gongel@qq.com >
2021-12-08 16:19:26 +08:00
gongenlei
6039c90292
[FasterMBART] Add FasterMBART ( #1367 )
...
* feat: add FasterMBART
* refactor: rm debug
* refactor: rm unused import
* refactor: rm pdb
* refactor: rm debug file
* feat: expose temperature arg. for sampling
* feat: use global CublasHandle
* refactor: mv decode_strategy from __init__ to forward
* fix: fix decode_strategy
2021-12-08 16:12:29 +08:00
Guo Sheng
235cc509f0
Refine transfer_param in FT ( #1405 )
...
* Optmize the cost for fp16 init in FT.
* Remove reserve_data argument in FT
* Remove unused import
2021-12-08 14:55:16 +08:00
tianxin
c3a467b053
support AMP for In-batch Negatives ( #1374 )
2021-12-08 14:39:49 +08:00
liu zhengxi
9f79af12b2
cuda11 support ( #1408 )
2021-12-08 14:01:58 +08:00
liu zhengxi
17517fe0d8
Fix FasterGPT dy2sta ( #1407 )
2021-12-08 13:50:17 +08:00
smallv0221
c443ffa498
fix perf and sample code ( #1395 )
...
* fix bart perf
* update fastergeneration doc
* add img
* add img
* change img
* update img
* fix img
* update docs
* fix readme
* update readme
* fix perf
* fix perf
* fix modelling
* fix perf and sample code
* fix perf
* fix perf
* fix seq_len for gpt_sample
* add forced eos token id for faster
* upgrade perf and add forced eos token id
* chenge stack to gather
* add auto perf
* minor fix
* remove encoder change
* Update bart_perf.py
* Update bart_perf.py
2021-12-08 13:36:47 +08:00
tianxin
96cf4dc342
add max_step for ernie_matching ( #1404 )
2021-12-08 12:24:54 +08:00
liu zhengxi
0bed1f1b35
fix encoder patch ( #1406 )
2021-12-08 09:43:34 +08:00
tianxin
bd3fae29e8
Optimize FT Encoder performance ( #1373 )
...
use global CublasHandle for fusion_decoding_op
uncomment encoder gemm not found warning
add MUTE_OPEN_ATTENTION_COMMAND for open_attention.h
add decoding_lib parameter for enable_faster_encoder function to prevent rebuilding
2021-12-08 00:21:56 +08:00
yujun
2fbd04f752
fix ( #1399 )
...
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-12-07 16:59:01 +08:00
liu zhengxi
b1ba31be0d
fix on infer ( #1400 )
2021-12-07 16:09:57 +08:00
yujun
794b116b1d
Add Reformer Model ( #870 )
...
* update __init__
* rm easydict package
* update
* format & use gather nd
* update docs
* rename past past_buckets_states to cache
* rename PreTrained -> Pretrained
* tokenizer return token_type_ids=False attention_mask=True
* add generate demo
Co-authored-by: Jack Zhou <zhoushunjie@baidu.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-12-07 11:38:59 +08:00
Guo Sheng
0e5185210c
Support hf beam search for any beam size when is_fuse_topk_softMax_ is false ( #1397 )
...
* Support hf beam search for any beam size when is_fuse_topk_softMax_ is false.
* Fix topk_stage_2_opt3_update when finishing
2021-12-07 11:11:05 +08:00
liu zhengxi
93e40c642e
refine custom op codes to avoid compling error ( #1398 )
2021-12-07 10:50:31 +08:00
liu zhengxi
0a880fd849
Fix GPT fp16 attention mask dtype ( #1396 )
...
* fix gpt fp16
* user input
2021-12-06 20:46:36 +08:00
liu zhengxi
d8b2ce8029
Refine some remain issue in hf beam search ( #1392 )
...
* fix id in the last position
* fix
Co-authored-by: Guo Sheng <whucsgs@163.com >
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-12-06 15:54:14 +08:00
Guo Sheng
1bd462a96c
Fix add_bias_input in FT. ( #1393 )
2021-12-06 14:53:45 +08:00
huhuiwen99
48a2de375d
Doc Update ( #1391 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* update readme
* modify rst
2021-12-06 14:46:03 +08:00
huhuiwen99
f7933424f5
Update AutoModel Docs ( #1389 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* first modify
* modify auto
* modify automapping
* modify automapping
* modify baseautomodel
* add tokenizer file
* add tokenizer
* update tokenizer
* modify tokenizer
* update
* modify auto modeling
* test modeling
* update
* modify automodel
* test auto
* update
* test tokenizer
* add diffs
* update
* fix errors
* test
* update
* modify some errors
* fix errors
* update
* updat4e
* add task_choice
* update
* update
* update
* add causal lm mapping
* remove dir
* update
* update
* add models
* delete print
* task para
* task para
* task para
* fix errors
* update
* ernie-gen
* update
* update
* doc update
* modify auto docs
* update docs
* update
* update
* update
* update
2021-12-06 13:09:52 +08:00
huhuiwen99
e03f8352eb
Update AutoModel Doc ( #1387 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* first modify
* modify auto
* modify automapping
* modify automapping
* modify baseautomodel
* add tokenizer file
* add tokenizer
* update tokenizer
* modify tokenizer
* update
* modify auto modeling
* test modeling
* update
* modify automodel
* test auto
* update
* test tokenizer
* add diffs
* update
* fix errors
* test
* update
* modify some errors
* fix errors
* update
* updat4e
* add task_choice
* update
* update
* update
* add causal lm mapping
* remove dir
* update
* update
* add models
* delete print
* task para
* task para
* task para
* fix errors
* update
* ernie-gen
* update
* update
* doc update
2021-12-04 11:27:41 +08:00
Zeyu Chen
cf38e199a9
Move tipc to tests
2021-12-03 21:00:10 +08:00
Zeyu Chen
dc5b6a817b
Move experimental to faster
2021-12-03 20:42:10 +08:00
liu zhengxi
4f4036f6a0
Fix FasterGPT ( #1384 )
...
* fix gpt
* update attn mask
* update
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
Co-authored-by: Guo Sheng <whucsgs@163.com >
2021-12-03 17:20:56 +08:00
liu zhengxi
57ff4870fd
Add hf beam search in FT and fix Generation API beam search ( #1378 )
...
* add beam search v3 for ft
* fix generation utils and update algo in ft
* alternatives
* update
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-12-03 15:50:28 +08:00
Linjie Chen
863127ca0a
Support vocabulary customization for lac ( #1364 )
...
* add custom vocab for lac
* Update README.md
* Update decode
* Support custom vocab for lac
* Update README.md
* Update README.md
2021-12-03 10:56:19 +08:00
Jack Zhou
673ecd4a40
Fix mac doc ( #1376 )
...
* fix typo; linux->mac
* fix typo; linux->mac
2021-12-02 18:29:38 +08:00
yingyibiao
edc57c1a7c
Remame Langboat weights ( #1386 )
...
* remame weights
* remame weights
2021-12-02 18:09:25 +08:00
Jack Zhou
8200fd8c96
Add ernie seqeuence classification doc ( #1382 )
...
* add some desc
* add logging steps, saving steps
2021-12-02 14:53:50 +08:00
Zhong Hui
e79822d7c2
[NER] Support ernie and peoples_daily_ner. ( #1361 )
2021-12-01 20:43:59 +08:00
huhuiwen99
8f0a0b6a47
Add AutoModel ( #1191 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* first modify
* modify auto
* modify automapping
* modify automapping
* modify baseautomodel
* add tokenizer file
* add tokenizer
* update tokenizer
* modify tokenizer
* update
* modify auto modeling
* test modeling
* update
* modify automodel
* test auto
* update
* test tokenizer
* add diffs
* update
* fix errors
* test
* update
* modify some errors
* fix errors
* update
* updat4e
* add task_choice
* update
* update
* update
* add causal lm mapping
* remove dir
* update
* update
* add models
* delete print
* task para
* task para
* task para
* fix errors
* update
* ernie-gen
* update
* update
2021-12-01 19:11:18 +08:00
Jack Zhou
8c7f4ec7e3
Add mac tipc scripts ( #1375 )
2021-11-30 18:23:40 +08:00
yulangz
462f080fd3
Add End-to-End Memory Network example ( #1046 )
...
* add end_to_end_memory_networks
* add end_to_end_memory_networks
* upload big file to cloud storage, change README
* Perfect code style
* Adjust annotation style
* chenage directory
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-11-29 20:17:41 +08:00
Jack Zhou
d934e9ddee
Add tipc readme ( #1369 )
...
* add README
* update readme
* update readme
* add win test_train_inference_python.md; add results
* add trt usage
* delete int8
* add fp16 fp32 results
* add fp16 fp32 results
* fix compare reuslts script
* fix fp16 ground truth
2021-11-29 19:42:32 +08:00
gongenlei
9f6634f57a
fix: fix ci ( #1370 )
...
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-11-29 18:39:13 +08:00
zhangbo9674
d49b6b1af8
[AMP] Support pure fp16 for gpt-3 static ( #1353 )
...
Amp level O2 for pure fp16.
2021-11-29 17:20:02 +08:00
renmada
2afd760d0e
PaddlePaddle Hackathon 57 提交 ( #1128 )
...
* xlnet downstream
* return_dict
* 更新权重说明
* 更新权重说明
* fix error
* Update doc
* Remove unused
* Update doc
* Update doc
* update
* Remove num_classes
* Update
* Update
Co-authored-by: xly <imxly2@126.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-11-29 15:38:24 +08:00
Linjie Chen
eec798a941
Add text similarity task for Taskflow ( #1345 )
...
* Add text matching task for Taskflow
* Update README.md
* Update input check
* Update README.md
* Update taskname
* Update usage
* Optimize var name
* Update simbert
* Update README.md
* Update README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-29 11:39:36 +08:00
Guo Sheng
27503e754a
Fix apply_logits_mask_kernelLauncher in decoding_sampling.h ( #1363 )
2021-11-29 09:34:43 +08:00
liu zhengxi
5d5e4dd4df
Upgrade FasterTransformer base on nccl_dependent_refine branch ( #1264 )
2021-11-26 19:05:14 +08:00
Jack Zhou
666dcfc41d
Add test tipc ( #1354 )
...
* Add test_tipc directory
* Add lac full chain scripts
* Add predict output of lac
* add training seed
* fix gru input
2021-11-25 21:10:13 +08:00
smallv0221
c54226bb78
Update FasterGeneration doc ( #1355 )
...
* fix bart perf
* update fastergeneration doc
* add img
* add img
* change img
* update img
* fix img
* update docs
* fix readme
* update readme
2021-11-25 21:09:01 +08:00
wawltor
f81c3b9066
Merge pull request #1356 from linjieccc/fix_wordtag
...
Fix bug of WordTag on windows
2021-11-24 15:21:40 +08:00
Linjie Chen
588c997504
fix bug of wordtag on windows
2021-11-24 15:15:26 +08:00
gongenlei
8681300253
Fix download bar's unit ( #1349 )
2021-11-22 20:34:18 +08:00
yujun
ac9d6f9cc8
Add T5 model ( #916 )
...
* add t5 model
* update
* add glue demo
* update
* rename PreTrained -> Pretrained
* tokenizer return token_type_ids=False attention_mask=True
* update
* update T5EncoderModel
* rm t5encoderblock
* Update modeling.py
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-11-22 19:59:51 +08:00
smallv0221
74b1bb8d25
fix bart perf ( #1348 )
2021-11-22 18:51:37 +08:00
Linjie Chen
ffc9190b9a
Update WordTag and TermTree ( #1329 )
...
* Updata WordTag
* Update README.md
* Update README.md
* Update README.md
* Add custom TermTree
* Update README.md
* Update termtree_type.csv
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-21 17:35:29 +08:00
smallv0221
f14bf99ef4
Add readthedocs for FasterGeneration ( #1338 )
...
* add faster generate sample and perf
* minor fix
* add license
* fix model_kwargs
* add use fp16 args
* minor fix
* minor fix
* Add readme
* minor fix
* update all faster example and readme
* minor fix
* delete huggingface
* fix readme
* Add readthedoc for faster generation
* minor fix
* fix doc
* add more doc
* change use_fast to use_faster
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-20 15:56:33 +08:00
Zhong Hui
65d33d4310
typo quick fix. ( #1343 )
2021-11-20 00:05:11 +08:00
Zhong Hui
fc880b0e7a
Add xnli dataset ( #1336 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-19 23:32:10 +08:00
gongenlei
ea62431c01
[MBART] Add mbart and mbart50 ( #1289 )
...
* feat: add mbart and mbart50
* feat: add model and vocab's bos link
* refacor: try_import sentencepiece
* refactor: integrate MBartTokenizer and MBart50Tokenizer
2021-11-19 18:02:39 +08:00
smallv0221
56f1a69a02
Add faster generate sample and perf ( #1317 )
...
* add faster generate sample and perf
* minor fix
* add license
* fix model_kwargs
* add use fp16 args
* minor fix
* minor fix
* Add readme
* minor fix
* update all faster example and readme
* minor fix
* delete huggingface
* fix readme
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-19 09:37:17 +08:00
Linjie Chen
7c78894b8f
Update taskflow README.md and fix typos ( #1333 )
...
* Update README.md for taskflow and fix typos
* Update README.md for taskflow and fix typos
2021-11-18 20:27:43 +08:00
huhuiwen99
fd415f0368
Add Mengzi-Bert weights ( #1320 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* mengzi-bert-base
* add weights
* add mengzi-bert
* fix errors
* modfiy model numbers
* modify names
* modify examples
* modify examples
2021-11-18 17:11:25 +08:00
Jack Zhou
5b092c3bd5
add --init_from_ckpt for token cls ( #1330 )
2021-11-18 11:54:34 +08:00
Jack Zhou
827b18c4b5
Fix windows dtype for faster ernie ( #1327 )
...
* fix windows dtype for faster ernie
* fix some doc typos
* fix token cls cpp deploy
* fix seq cls README
* fix seq cls README
* checkpoint -> checkpoints
2021-11-17 20:46:50 +08:00
Jack Zhou
26c1f07385
Add benchmark output for ernie and faster ernie ( #1324 )
...
* add benchmark output for ernie and faster ernie
* fix review
2021-11-17 20:44:17 +08:00
Jack Zhou
450e784992
Add amp for ERNIE task( #1321 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-17 19:38:56 +08:00
Jiaqi Liu
54bef3dd03
Support ofa export for bert ( #1326 )
...
* fix ofa export bug
* support bert export
2021-11-17 13:06:29 +08:00
Jiaqi Liu
168f05856d
fix ofa export bug ( #1322 )
2021-11-17 11:58:48 +08:00
yingyibiao
492b040666
Update layoutxlm ( #1318 )
...
* update layoutxlm
* update layoutxlm
2021-11-16 22:21:02 +08:00
Zeyu Chen
471a8a0333
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2021-11-16 18:44:19 +08:00
Zeyu Chen
b07d60f16f
Remove py2 compatible import
2021-11-16 18:44:10 +08:00
Zeyu Chen
0ea5fd43a1
Remove py2 compatible import
2021-11-16 18:43:54 +08:00
Linjie Chen
64954f06cd
Update Taskflow REAME.md and enable download logs ( #1319 )
...
* Update Taskflow REAME.md and enable download logs
* Enable download log for Taskflow
2021-11-16 16:54:53 +08:00
yingyibiao
2a08c1425f
Update package requirements and example README.md of LayoutXLM model ( #1315 )
...
* Add yacs and numpy to requirements; Update LayoutXLM README.md
* try_import yacs
2021-11-16 14:28:59 +08:00
wawltor
3f2756757b
Merge pull request #1314 from joey12300/fix_import
...
Fix paddle.incubate.nn import error
2021-11-15 21:46:11 +08:00
yingyibiao
46374d8ab1
Add LayoutXLM model ( #1310 )
...
* add VisualBackbone and modeling files
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* Delete feature_extractor.py
* Delete processor.py
* update
* update
* update
* update
* update
* update
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-15 20:14:01 +08:00
zhoushunjie
87a552fce1
put FusedTransformerEncoderLayer in local scope
2021-11-15 16:47:40 +08:00
Jack Zhou
946195be8a
Fix faster tokenizer doc ( #1313 )
...
* fix faster tokenizer doc
* add tokenize list, tuple of string
* move to_tensor to dygraph
2021-11-15 16:08:14 +08:00
smallv0221
0c921010fb
Fix GPT to_static and add unimo-text-1.0-lcsts-new ( #1295 )
...
* Fix to_static and add unimo-text-1.0-lcsts-new
* minor fix
* minor fix`
* fix kwargs bug
* fix GPT static bug
* update model zoo doc
* update model zoo doc
* minor fix
Co-authored-by: liu zhengxi <380185688@qq.com >
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-15 15:39:26 +08:00
huhuiwen99
57b58520f4
Api doc ( #1301 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* update rst
* update
* update
* add model
* add blenderbot
* fix errors
* add blenderbotsmall
* update
* udpate
* Update transformers.rst
* add ctrl
* add ctrl, squeezebert
* check numbers
* add bert-chinese
* add bert-japa
* add bert-japa
* fix errors
2021-11-15 11:52:59 +08:00
Jack Zhou
064f1258cc
Add lac perf statics ( #1293 )
...
* add lac perf statics
* fix some description
2021-11-15 10:29:56 +08:00
Zeyu Chen
500e5e90a5
Remove legacy folder and update README
2021-11-13 23:32:03 +08:00
Jack Zhou
e1148b9eea
Add amp for FasterERNIE token classification task ( #1309 )
2021-11-13 21:38:50 +08:00
Jack Zhou
2d7e781dbe
Upgrade faster ernie by using fused transformers ( #1308 )
...
* add faster-ernie-1.0 model params
* add amp for faster ernie seq cls task
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-13 18:02:57 +08:00
Zeyu Chen
30eb43ce3e
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2021-11-13 16:01:36 +08:00
Zeyu Chen
5aee8c73f3
Update documents for Faster PaddleNLP
2021-11-13 16:00:11 +08:00
Felix Hao
3c83d18b9f
Fix compiling faster transformer with cuda 11 ( #1234 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-13 15:34:16 +08:00
smallv0221
af6e432ce8
Add more args for generate API ( #1297 )
...
* Add more args for generate API
* Revert "Add force decoding in FasterTransformer (#873 )"
This reverts commit 94f2651890 .
* minor fix
* Revert "Revert "Add force decoding in FasterTransformer (#873 )""
This reverts commit 35fc972d21 .
* add more logit prosessor
* minor fix
* fix doc
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-13 14:53:53 +08:00
yingyibiao
8f9690c4f9
modify benchmark scripts ( #1304 )
2021-11-13 13:13:13 +08:00
骑马小猫
8d513aa2b3
Fix import issues in gpt/test_modeling ( #1306 )
2021-11-13 12:00:02 +08:00
Zhong Hui
307de58dc3
Fix gpt inference problem with paddle.expand_as . ( #1303 )
2021-11-12 17:43:42 +08:00
Zhong Hui
b9ee142d5f
Add more pretrained weights for GPT ( #1302 )
...
* add hf pretrained weights gpt2-en gpt2-large-en gpt2-xl-en for gpt
* add doc
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-12 16:02:02 +08:00
Baizhou Huang
a30552ab40
Add MultiLabelsMetric ( #1282 )
...
* 1.Add MultiLabelsMetric class in metrics/glue.py
2.Add unit test
* add unit test for binary classification
* Add notes about zero division
* fix error in example code
2021-11-12 15:36:01 +08:00
liu zhengxi
799b33875f
fix sampling fd ( #1299 )
2021-11-11 22:15:15 +08:00
Linjie Chen
7e415cf3a1
delete unused code for NPTag ( #1298 )
2021-11-11 20:04:47 +08:00
yujun
755ccf02c2
add CTRL Model ( #921 )
...
* add ctrl
* add space
* update
* update
* update
* update docs
* add ctrl generate demo
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-11-11 16:34:57 +08:00
Steffy-zxf
8b8921899a
Add FasterErnieForTokenClassification demo ( #1284 )
...
* 1. add FasterTokenizer model in experiment
2. add demo with FasterTokenizer usage in experiment
* add cpp deploy demo
* add test time script
* add example
* mv python_deploy location
* optimize cpp demo
* add faster model
* add faster tokenizer export model
* 1. rename to_string_tensor to to_tensor
2. rename to_vocab_tensor to to_vocab_buff
3. add to_static() api to FasterModel
* 1. add text cls example with FasterModelForSequenceClassification
2. remove some redudant code
* update cpp deploy
* 1. rename text_cls with seq_cls
2. suuport from_pretrained() with given a local directory
* add experimental.model_utils.py
* update seq_cls cpp demo, drop to print the label string
* add FasterTokenizer.from_pretrained() api
* use FasterTokenizer.from_pretrained() api
* add FasterErnieForTokenClassification
* 1. add token cls demo scripts
* add seq cls cpp deploy scripts as paddlenlp 2.1
* update tokenizer impletation
* remove debug code
* merge tokenizer and seq_cls_infer implementation
* tiny seq_cls_infer and token_cls_infer code
* remove push_back with emplace_back
* simplify FasterErnieForSequenceClassification demo code
* simplify FasterErnieForTokenClassification demo code
* upadte 2.1 cpp deploy demo for seq cls
* remove debug code
* update batch_size as 1 as default when predicting
* add readme for Faster Tokenizer
* pass embedding_eltwise_layernorm_fuse when using inference
* update faster tokenizer reademe
* update docs
* recover text_cls/pretrained_models/deploy/python/predict.py
* update docs
* update docs
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-11 14:33:50 +08:00
Linjie Chen
c235c06c43
Update README.md and FAQ for Taskflow ( #1294 )
...
* Update README.md
* Update README.md
2021-11-11 14:32:52 +08:00
huhuiwen99
db707a1e73
Api doc update ( #1285 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* update rst
* update
* update
2021-11-10 19:01:45 +08:00
Jack Zhou
80f62d3a4c
Upgrade paddlenlp.layers.crf.ViterbiDecoder to paddle.text.ViterbiDecoder compatibly ( #1291 )
...
* remove unnecessary import
* add compare_version tools
* upgrade paddlenlp.layers.crf.ViterbiDecoder to paddle.text.ViterbiDecoder
* remove with_start_stop_tag args
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-10 18:05:07 +08:00
Jack Zhou
1f3af8b515
add tokenizer perf scripts ( #1280 )
...
* add tokenizer perf scripts
* fix some review comments
2021-11-10 15:38:49 +08:00
xiongkun
26bc36e629
Upgrade Transformer to_static ( #1290 )
...
* Add to_static support for transformer-base
and bert-large
* refine
* fix
* remove build_strategy
2021-11-10 15:26:51 +08:00
smallv0221
65c772c475
Add Diverse Beam Search and Integrate FT into generation api ( #1153 )
...
* Add offset mapping doc
* fix eval hang because of unique endpoint
* generate api support encoder-decoder
* Add lightseq beam_search
* optimize performence
* add blockroughk kernel
* optimize
* minor fix
* Fix generate api bug and add diverse sibling search
* minor fix
* Add Diverse Beam Search
* Integrate FT into generation api
* add fastergpt support
* FasterGenerate support gpt unimo-text and unified transformer
* update faster examples
* avoid recursive build
* fix faster examples
* minor fix
* add some constrains
* minor fix
* add constrains for faster generate
* Align GPT output
* Optimize user experience
* minor fix
* minor fix
* minor fix
* minor fix
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-10 13:31:58 +08:00
linjieccc
06bf0e49fc
Add NPTag ( #1246 )
...
* add nptag
* support static mode
* Update modeling
* Update comments for nptag
* add nptag finetune example
* Update NPTag finetune example
* Update nptag taskflow
* Update task name
* Update finetune example readme
* Update NPTag
* Update NPTag example
* Update NPTag example
* Update NPTag example
* Update README.md
* Update README.md
* Update taskflow static mode
* Update README.md
* Update README.md
* Update static mode inference
* Update static mode
* Update README.md
* Update README.md
* Update README.md
* Update NPTag code format
* Update README.md
* Update README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-10 12:55:33 +08:00
gongenlei
839bc1d9ec
fix: change approximate_gelu to gelu ( #1288 )
2021-11-09 19:44:06 +08:00
yujun
844f24ce67
PaddlePaddle Hackathon 56 提交 ( #1088 )
...
* update
* update
* remove community/junnyu
* Update test_modeling.py
* suggestion from ZHUI
* add community/junnyu
* rm gpt link
* update
* update readme
* add large medium
* 更新权重个数
* update gpt compare
* update docs
* add msra ner example
Co-authored-by: yingyibiao <yyb0576@163.com >
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-09 15:52:13 +08:00
Jack Zhou
a5ef06cde0
fix some conner case in text correction decode ( #1273 )
2021-11-08 14:47:42 +08:00
yingyibiao
f207fde89f
Update code license and authors ( #1279 )
2021-11-05 19:35:47 +08:00
smallv0221
287e0beab9
Update SQuAD README ( #1278 )
...
* update squad readme
* minor fix
* add answer sample
* fix readme
* Update SQuAD README
2021-11-05 18:44:10 +08:00
huhuiwen99
6977ccf73f
Update API docs ( #1275 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* docs update
* update docs
* docs update
* tokenizer docs update
2021-11-05 15:48:24 +08:00
smallv0221
2e3ed68f90
Update SQuAD readme ( #1276 )
...
* update squad readme
* minor fix
* add answer sample
* fix readme
2021-11-05 14:20:20 +08:00
yingyibiao
e2c6c2d492
Modify xlnet benchmark scripts ( #1271 )
...
* modify xlnet benchmark scripts
* modify xlnet benchmark scripts
* modify xlnet benchmark scripts
2021-11-05 09:53:49 +08:00
Steffy-zxf
05cc10b1e5
Add cpp deploy demo for seq cls with ernie ( #1269 )
...
* 1. add FasterTokenizer model in experiment
2. add demo with FasterTokenizer usage in experiment
* add cpp deploy demo
* add test time script
* add example
* mv python_deploy location
* optimize cpp demo
* add faster model
* add faster tokenizer export model
* 1. rename to_string_tensor to to_tensor
2. rename to_vocab_tensor to to_vocab_buff
3. add to_static() api to FasterModel
* 1. add text cls example with FasterModelForSequenceClassification
2. remove some redudant code
* update cpp deploy
* 1. rename text_cls with seq_cls
2. suuport from_pretrained() with given a local directory
* add experimental.model_utils.py
* update seq_cls cpp demo, drop to print the label string
* add FasterTokenizer.from_pretrained() api
* use FasterTokenizer.from_pretrained() api
* add FasterErnieForTokenClassification
* 1. add token cls demo scripts
* add seq cls cpp deploy scripts as paddlenlp 2.1
* update tokenizer impletation
* remove debug code
* merge tokenizer and seq_cls_infer implementation
* tiny seq_cls_infer and token_cls_infer code
* remove push_back with emplace_back
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-04 14:58:36 +08:00
liu zhengxi
94f2651890
Add force decoding in FasterTransformer ( #873 )
2021-11-04 14:32:59 +08:00
Zhong Hui
d436ab797d
[Benchmark] Quick fix for benchmark script ( #1268 )
2021-11-03 22:25:05 +08:00
wawltor
a6094c40ea
Update copyright for the some examples ( #1270 )
...
* add the copyright for the some module
* update the order of copyright
* format the some copyright
2021-11-03 22:24:42 +08:00
Zeyu Chen
630792e44c
Update README and add acknoledge
2021-11-03 22:16:42 +08:00
Zeyu Chen
9fecb86f6a
Update README and add acknoledge
2021-11-03 22:15:33 +08:00
Jack Zhou
ad941bb6f4
Add FasterTokenizer performance test ( #1267 )
...
* add tf_tokenizer performance test
* fix some comments of perf.py
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-03 19:39:49 +08:00
Jack Zhou
d0633e3550
fix evaluate error when detect_pos=0 and correct_pos=0 ( #1265 )
...
* fix evaluate error when detect_pos=0 and correct_pos=0
* nan -> 0
2021-11-03 15:47:07 +08:00
Zhong Hui
82e46cf305
Refine GPT benchmark fixes v3 ( #1266 )
...
* fix ips
* refine model name.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-03 12:12:43 +08:00
renmada
a77af2ef23
Add SqueezeBERT ( #937 )
...
* Add squeezebert
* Add doc and remove empty files
* 更新pytorch glue结果
* fix bug
* 增加cpu速度测试
* delete example
Co-authored-by: username@email.com <imxly2@126.com >
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-02 11:26:09 +08:00
Guo Sheng
44fadbf9f5
Fix length penalty in beam search v2. ( #1263 )
2021-11-01 21:44:50 +08:00
Steffy-zxf
9e198d0eb2
Add FasterTokenizer model in experiment ( #1220 )
...
* 1. add FasterTokenizer model in experiment
2. add demo with FasterTokenizer usage in experiment
* add cpp deploy demo
* add test time script
* add example
* mv python_deploy location
* optimize cpp demo
* add faster model
* add faster tokenizer export model
* 1. rename to_string_tensor to to_tensor
2. rename to_vocab_tensor to to_vocab_buff
3. add to_static() api to FasterModel
* 1. add text cls example with FasterModelForSequenceClassification
2. remove some redudant code
* update cpp deploy
* 1. rename text_cls with seq_cls
2. suuport from_pretrained() with given a local directory
* add experimental.model_utils.py
* update seq_cls cpp demo, drop to print the label string
* add FasterTokenizer.from_pretrained() api
* use FasterTokenizer.from_pretrained() api
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-11-01 15:32:26 +08:00
Zeyu Chen
31c6e0802d
Fix README typo
2021-11-01 00:38:42 +08:00
Zeyu Chen
a2d6f375f8
Update README and examples README
2021-11-01 00:28:35 +08:00
wawltor
2b794ebf4a
remove the paddlefsl in requirements ( #1254 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-30 21:52:14 +08:00
yingyibiao
bf052acda1
Add benchmark for xlnet model ( #1258 )
...
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
* add xlnet benchmark
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-30 21:50:27 +08:00
Zhong Hui
9d7027f9ff
[GPT] Update GPT README for sentencepiece version requirements ( #1248 )
...
* Update README.md
sentencepiece >= 0.1.94
* Update README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-29 14:00:25 +08:00
liu zhengxi
5ececbbe95
bug fix ( #1251 )
2021-10-29 11:50:19 +08:00
Aganlengzi
92208643d0
[NPU] support ernie-1.0 predict and xlnet ( #1249 )
...
* [NPU] support ernie-1.0 predict and xlnet
* [NPU] support ernie-1.0 predict and xlnet
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-28 22:29:06 +08:00
Erwin Gao
d07e2376bd
[PaddlePaddle Hackathon] 第53题 ( #1114 )
...
* finish develop bigbird
* add bigbird unitest
* fix doc
* remove BigBirdLMhead
* remove BigBirdLMhead and fix bugs
* remove BigBirdForQuestionAnsweringHead class
* add doc
* update document tables
* 删除未使用字段
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-10-28 16:49:19 +08:00
Zhong Hui
0a3faeea7a
gpt benchmark fix v2 ( #1244 )
2021-10-28 14:59:48 +08:00
Erwin Gao
48e58f01ac
[PaddlePaddle Hackathon] 第51题 ( #1115 )
...
* add bert japanese
* fix model-weight files position
* add weights files url
* create package: bert_japanese
* update weights readme
* update weights files
* update config pretrain weights https
* 修复权重配置文件
* retest CI
* update
* update
* fix docstring
* update
* 预训练权重更新
* update weights readme
* remove weights url in codes
* update...
* update...
* update weights readme
* update
* update
* update docstring
* 清理冗余代码
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-10-28 13:03:41 +08:00
Guo Sheng
20acd1614d
Integrate FT into generation api ( #1154 )
...
* Add the first draft for integrating FT into generation api.
* Add try-catch in FT using of generation api.
* Refine FasterTransformer integration into generation api.
* Update some checks in FT integration.
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-10-27 22:20:57 +08:00
liu zhengxi
27e0c3468c
Transformer t2t beam search supports force decoding in dygraph ( #1237 )
...
* paddle t2t beam search support force decoding
2021-10-27 21:34:47 +08:00
Zhong Hui
f59de0f1b3
[GPT] fix small problems in benchmark. ( #1233 )
...
* fix small problems as QA
* Add profile for gpt-2/3
* Add reader cost.
* fix dygraph sync.
2021-10-26 19:30:48 +08:00
gongenlei
6060d7a0c4
fix: broadcast needs np.array ( #1229 )
2021-10-25 19:07:09 +08:00
linjieccc
d65d1587a4
Delete unused calculation of metric.accumulate()
...
Delete unused calculation of metric.accumulate()
2021-10-25 14:30:10 +08:00
Zeyu Chen
0f427aabdf
Merge branch 'develop' into fix_eval
2021-10-25 13:55:44 +08:00
Jack Zhou
385e55da1a
fix text correction max_seq_len ( #1225 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-25 12:06:02 +08:00
tianxin
61ec0b1414
Update README.md of text_matching ( #1228 )
2021-10-25 11:46:14 +08:00
Kevin吴嘉文
6427591dd8
add blenderbot_small, blenderbot ( #868 )
...
* add blenderbot_small, blenderbot
* adjust code comment
* config info formating; update activation dropout config information
* update final logit bias init dtype
* add init weight dtype constrain
* Updata comment and file formating
* update use_cache relavent for ConditionalGeneration model
* Update class comment, reorgainze BlenderbotSmallTokenizer using GPTTokenizer , Fix BLenderbotModel use cache bug
* Adjust pos embed generating, comment, use_cache loading, specify method key, add blenderbot public tokenize
* update CausalLM
* update .generate() sample
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-10-25 11:00:23 +08:00
huhuiwen99
99e3b593f5
Modify Ops Doc ( #1171 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* delete changes
* modify adamwdl
* modify adanwdl
* fix errors
* update
* modify parallel
2021-10-25 10:56:48 +08:00
huhuiwen99
8833ee34f8
Metrics ( #1151 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify chunk
* modify glue
* modify bleu
* modify rouge
* modify perplexity
* update distinct
* update
* update rouge
* modify rouge
* update rouge
* fix errors
* modify encoder
* fix errors
* update
* test
* test1
* test2
* test
* center
* modify dureader
2021-10-25 10:56:03 +08:00
yujun
723becfafe
PaddlePaddle Hackathon 54 提交 ( #1086 )
...
* update
* add community/junnyu
* update electra docs
* update electra docs
* update
* update
* add import
* update
* update md
* fix attention_mask bug
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-10-25 10:50:03 +08:00
linjieccc
8b13058a16
fix evaluation
2021-10-25 02:34:47 +00:00
yujun
089f8aee59
support 2D attention mask ( #1226 )
2021-10-25 10:31:02 +08:00
tianxin
0a338ccb53
fix #1204 ( #1223 )
2021-10-24 17:01:27 +08:00
AI-Mart
4ace4ff7b1
Update train.py for msra-ner( #1206 )
...
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
2021-10-24 04:38:33 +08:00
Aganlengzi
418a8dabfe
[NPU] npu support modification for bert and ernie-1.0 ( #1214 )
...
* [NPU] npu support modification for bert and ernie-1.0
* [NPU] revert cumsum related changes
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-22 13:34:59 +08:00
Jiaqi Liu
80ac7dce3e
Fix pad usage bug for seq2seq ( #1216 )
2021-10-22 11:00:57 +08:00
Zeyu Chen
a4c1dce24c
Add question matching context to baseline
2021-10-21 23:17:20 +08:00
Jiaqi Liu
f4969098f6
Fix seq2seq windows dtype bug ( #1198 )
...
* fix seq2seq windows dtype bug
* fix
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-21 18:19:14 +08:00
tianxin
f9f553702c
Add max_steps for SimCSE ( #1207 )
2021-10-21 18:17:39 +08:00
yujun
c862e9c3a4
PaddlePaddle Hackathon 52 提交 ( #1085 )
...
* update
* update
* add community/junnyu
* update bert docs
* rm tokenizer links
* fix typo
* update TestBertForMaskedLM
* update
* 删除多余的attention mask判断
* update readme
* update docs
* add
* Revert "update docs"
This reverts commit 79169c2613 .
* update docs/model_zoo
* update modelzoo rst
* replace tab with space
* fix typo
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-10-20 21:48:42 +08:00
yujun
7d0d89d480
update run squad & modifiy mpnet docs ( #1205 )
2021-10-20 21:25:11 +08:00
wawltor
27917453b5
Merge pull request #1201 from wawltor/check_release_2.1
...
update the code for the download_file and document
2021-10-20 10:58:36 +08:00
wawltor
93ce1f49d4
update the code for the download_file and document
2021-10-20 02:51:26 +00:00
wawltor
47430dc3c9
Merge pull request #1181 from linjieccc/fix_taskflow_senta
...
Add confidence score for sentiment analysis tasks
2021-10-20 10:26:30 +08:00
wawltor
00ef7def67
Merge pull request #1190 from wawltor/taskflow_install_dependency
...
specify the install dependency in the Taskflow
2021-10-20 10:26:13 +08:00
Haohongxiang
f04322f5bf
[GPT-3] Add support for pure fp16 in dygraph mode ( #1176 )
2021-10-19 14:47:35 +08:00
wawltor
812ebb1afe
specify the install dependency in the taskflow
2021-10-18 13:27:30 +00:00
yingyibiao
41bad63429
Correct community contrib doc typo ( #1185 )
2021-10-18 15:06:00 +08:00
wawltor
d128292b2c
Fix text matching document typo ( #1186 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-18 15:05:12 +08:00
gongenlei
313fbb611b
[FT Decoder] Add JIT and bug fix ( #1173 )
...
* fix&feat: gelu-->relu and add jit
* docs: update yaml
2021-10-18 14:12:29 +08:00
liu zhengxi
433ef99c96
refine sampling code ( #1184 )
2021-10-18 14:02:55 +08:00
linjieccc
c43a7229ed
update readme
2021-10-18 03:05:06 +00:00
linjieccc
7b32b3d6f6
add confidence score for sentiment analysis
2021-10-17 10:23:45 +00:00
Zeyu Chen
a34f68915a
Update English docs
2021-10-17 01:50:58 +08:00
wawltor
e51e699a60
Merge pull request #1166 from wawltor/taskflow_download_check
...
update the download check for the Taskflow
2021-10-14 19:22:00 +08:00
Zhong Hui
1b4821bb43
Add training benchmark for gpt / gpt-3. ( #1091 )
2021-10-14 18:00:37 +08:00
wawltor
6feb45a621
remove the ununsed code
2021-10-14 07:36:29 +00:00
wawltor
b244d245dc
update the download check for the Taskflow
2021-10-14 07:29:27 +00:00
yingyibiao
baec4d7683
Update readthedocs with new feature TaskFlow ( #1164 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-14 15:21:35 +08:00
Jack Zhou
86aea017d9
Update README for ERNIE-CSC ( #1165 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-14 15:20:30 +08:00
liu zhengxi
7d2f50e4f2
Refine cpp demo flags vocab_dir to vocab_file ( #1150 )
2021-10-14 14:52:42 +08:00
Zeyu Chen
0f2d8a6343
Update README.md
2021-10-14 10:54:52 +08:00
huhuiwen99
021faa67cd
Doc update ( #1159 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* add macbert
* first update
* add convbert and mpnet model
* update
* updat4e
* add model number
2021-10-13 21:17:03 +08:00
Guo Sheng
873a93a62b
Refine SM description in FT docs. ( #1158 )
...
* Refine SM description in FT docs.
* Refine jit build warning condition.
* Refine fastertransformer.rst
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-13 18:51:22 +08:00
yingyibiao
f02435aee1
Update pretrained weights contribution doc ( #1155 )
...
* update pretrained weights contribution doc
* update pretrained weights contribution doc
2021-10-13 18:43:45 +08:00
gongenlei
154e1a4ca6
docs: update docs ( #1157 )
2021-10-13 16:00:22 +08:00
yujun
0530cabc6c
add RepetitionPenaltyLogitsProcessor ( #1111 )
...
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-10-12 16:17:29 +08:00
Jiaqi Liu
fd02d65d0a
fix MiniLMv2 model name in readme ( #1149 )
2021-10-12 11:03:39 +08:00
Zeyu Chen
0aa58994e7
Update README.md
2021-10-12 02:34:35 +08:00
zhaoyingli
91d81c928c
add sharding for gpt3 ( #1064 )
...
* add sharding for gpt-3
* del debug
* add sharding save model
* update model save
* fix seed func
* set control in tensor parallel
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2021-10-11 23:25:57 +08:00
Guo Sheng
e05aed8caf
Update FasterTransformer link. ( #1148 )
2021-10-11 23:16:39 +08:00
Jack Zhou
7c460f64b5
Fix readme error of information extraction ( #1147 )
2021-10-11 22:59:40 +08:00
huhuiwen99
b259ea3bfc
Modify Bartmodel Docstring ( #1144 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify bartmodel
* fix errors
* fix errors
2021-10-11 20:36:38 +08:00
wawltor
de3e79c370
resolve the windows problem in skep task ( #1146 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-11 20:12:49 +08:00
linjieccc
2786381122
update readme for taskflow ( #1145 )
2021-10-11 20:09:21 +08:00
liyueyang
4bc68614aa
Update README.md ( #1142 )
...
* Update README.md
Co-authored-by: tianxin <tianxin04@baidu.com >
2021-10-11 19:39:37 +08:00
huhuiwen99
8df317a967
Modify layers Doc ( #1140 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify datasets
* modify layers
* fix errors
* fix errors
* fix errors
2021-10-11 18:33:34 +08:00
gongenlei
bb70fd1a42
[BART] Add example and faster generation api ( #1113 )
...
* feat: add BART example
* refactor: rm model_type
* style: optimize params name stype
* refactor: rm fluid api and correct equality judgment
* docs: add docs
* docs: update docs.
* feat: add jit
* docs: update docs
* fix: GELU change to approximate
* fix: add gelu judgement
* fix: update layer.activation
* refactor: update amp scaler usage
* docs: update docs
* docs: update docs for FasterBART
* docs: update docs for FasterBART
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-11 18:12:35 +08:00
huhuiwen99
fa26d3d6ea
Modify Skep Docstring ( #1139 )
...
* modify transforner-rst
* modify roformer tokenizer
* delete modifications
* modify skepmodel
* modify skep tokenizer
* update
* modify skeptokenizer
* modify bart
* update
* update
* modify bigbird tokenizer
* modify bigbirdmodel
* modify skepmodel
* fix errors
2021-10-11 17:12:45 +08:00
Zeyu Chen
a6e886b99a
Update README
2021-10-11 16:55:19 +08:00
huhuiwen99
067fde6fda
Modify Unimo Docstring ( #1066 )
...
* modify transforner-rst
* modify unimo tokenizer
* modify unimo models
* modify roberta tokenizer
* modify roberta models
* update
* modify unimo
* update
2021-10-11 15:13:31 +08:00
liu zhengxi
93a53ecde5
delete deployment ( #1138 )
2021-10-11 14:46:41 +08:00
liu zhengxi
29df4805b8
Change FT doc filename ( #1136 )
2021-10-11 13:41:50 +08:00
liu zhengxi
3f57a78a6e
Refine FasterTransformer doc ( #1097 )
2021-10-11 12:36:27 +08:00
yingyibiao
0108724734
set maxdepth=1 for index page of readthedocs ( #1134 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-11 12:30:52 +08:00
wawltor
d209d9a73d
Remove unnessasary load NER task of taskflow ( #1135 )
2021-10-11 12:10:03 +08:00
huhuiwen99
1ea856e03c
Modify Electra Doc ( #1099 )
...
* modify transforner-rst
* modify electra tokenizer
* modify electramodel
* modify electra criterion
* modify models
* modify tokenizers
* fix errors
* update
2021-10-11 10:38:04 +08:00
wawltor
3cd45be7ff
update the text correction in document ( #1131 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-10 22:19:59 +08:00
Guo Sheng
82c32ebeb5
Refine FasterTransformer ( #1122 )
...
* Expose diversity rate.
Refine extension utility.
Update topk_update in FT.
* Remove duplicate doc for diversity_rate.
* Fix FT jit compiling cmake args.
* Fix sources attribute of FasterTransformerExtension.
* Use UPDATE_COMMAND instead of PATCH_COMMAND to make re-run always use the latest patches.
Fix beam_id_in_output calculation in topk_stage_1_opt3.
* Update FT BLEU report in README.
* Fix diversity in beam search when not fusing topK and softmax.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-10 22:19:34 +08:00
wawltor
ec2333e499
Add the knowledgemining task update the document for the Taskflow ( #1130 )
...
* update the document for the taskflow and add the taskflow of knowledge_minin
* update the document for the taskflow in main document
2021-10-10 22:08:36 +08:00
Zeyu Chen
522f279359
Update README.md
2021-10-10 20:33:45 +08:00
wawltor
bb413b0252
Merge pull request #1126 from joey12300/fix_crf_decode_len_equal_1_bug
...
fix viterbi len=1 bug
2021-10-10 20:29:06 +08:00
huhuiwen99
04de79553e
Modify Roformer Doc ( #1104 )
...
* modify transforner-rst
* modify roformer tokenizer
* modify roformer model
* update
* modify transformer
* modify roformer modeling
* modify decoder
* update
* modify tokenizer
* modify token_embedding
2021-10-10 17:45:44 +08:00
wawltor
081e285279
Add the word segmentation task in the Taskflow ( #1123 )
...
* Add the word segmentation task in the Taskflow
* format the example in the taskflow
* remove the limit for seq length for the segment
* Add the poetry_generation and question answering tasks
* change the text2knowledge to ner task
* update some code for the taskflow
* add the pos tagging for the taskflow
* Update the doc for the taskflow tasks
* update the pos tagging doc
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-10 17:40:42 +08:00
linjieccc
dc6812175c
update taskflow doc ( #1129 )
2021-10-09 23:43:03 +08:00
tianxin
9686f0dec9
Update README.md for FSL ( #1125 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-10-09 16:38:12 +08:00
zhoushunjie
74a7f106e2
fix len=1 bug
2021-10-09 16:26:15 +08:00
Jiaqi Liu
fc1f925b68
Update readme ( #1124 )
...
* update readme
* update description about minilm and tinybert
2021-10-09 16:26:14 +08:00
liyueyang
c056495ccd
update readme ( #1121 )
2021-10-09 11:16:38 +08:00
tianxin
73933974ea
Merge pull request #1105 from leeyy2020/few_shot_rdrop
...
add drop for few-shot learning
2021-10-08 15:19:28 +08:00
tianxin
0327121a27
Merge branch 'develop' into few_shot_rdrop
2021-10-08 14:40:37 +08:00
wawltor
928c34a669
add task name for the log ( #1118 )
2021-10-08 12:41:27 +08:00
leeyy2020
eec0299bd4
update and fix problem
2021-09-30 07:53:32 +00:00
Zeyu Chen
7419d2546b
Update README.md
2021-09-29 14:33:41 +08:00
yingyibiao
a88382d940
Convert vocab_file to keyword arg ( #1102 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-28 22:43:42 +08:00
leeyy2020
6007835903
update README
2021-09-28 14:40:37 +00:00
leeyy2020
929ad0c73e
add rdrop to fewshot
2021-09-28 13:39:55 +00:00
gongenlei
5f0e8c23cb
[DATASET] Add cnn_dailymail dataset ( #1061 )
...
* feat: add cnn_dailymail dataset
* fix: correct error message
* refactor: use paddlenlp decompress api
* docs: add doc for cnn_dm
2021-09-28 19:17:45 +08:00
Jiaqi Liu
232bea23e5
Fix clue test dataset info bug ( #1098 )
2021-09-27 17:01:36 +08:00
huhuiwen99
6b6bcf1a6b
Modify Ernie Docstring ( #997 )
...
* modify ernie
* modify modeling
* modify ernie-ctm
* modify tokenizer
* modify ernie-ctm tokenizer
* modify modeling
* modify erniemodel
* modify ernie-ctm
* modify ernie-gen
* modify tokenizer
* modify ernie models
* modify ernie-gen
* fix errirs
* modify erniemodel
* modify erniemodel
2021-09-24 14:58:34 +08:00
liu zhengxi
375df594de
Expose beam search diversity rate for ft ( #1072 )
...
* expose beam search diversity rate for ft
* rename param
* fix generation api
* fix bart
2021-09-23 21:08:20 +08:00
linjieccc
af7cf94536
Merge pull request #1083 from linjieccc/update_comments
...
Update comments of text classificaiton
2021-09-23 18:24:13 +08:00
linjieccc
8c1477fd6c
update comments of text classificaiton
2021-09-23 09:53:48 +00:00
yingyibiao
ce7c267c4e
update sphinx_rtd_theme version ( #1071 )
2021-09-23 16:12:33 +08:00
wawltor
bca4e2225d
fix the bug of winodws load bug. ( #1062 )
2021-09-23 11:21:17 +08:00
huhuiwen99
499cbe4553
Modify Distilbert docstring ( #949 )
...
* modify distilbert
* modify distilbert
* modify nezha tokenizer
* modify nezha
* update
* modify models
* modify args
* fix errors
* modify args
2021-09-22 17:44:33 +08:00
ShenLiang
15693c7377
Speed up for hybrid parallel ( #1056 )
2021-09-18 19:32:17 +08:00
smallv0221
64b6f0f394
Fix generate api bug and add diverse sibling search ( #1041 )
...
* Add offset mapping doc
* fix eval hang because of unique endpoint
* generate api support encoder-decoder
* Add lightseq beam_search
* optimize performence
* add blockroughk kernel
* optimize
* minor fix
* Fix generate api bug and add diverse sibling search
* minor fix
2021-09-18 14:32:32 +08:00
liu zhengxi
a3db9c9f59
[FasterTransformer] Fix compiling error by use abs path ( #1051 )
...
* fix cmake by use abs path
* add boost dependency
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-17 22:37:00 +08:00
gongenlei
6feb6d0082
fix: fix mem_seq_lens dtype ( #1050 )
2021-09-17 21:29:51 +08:00
smallv0221
2cf80b9a83
Add origin generate api speed comparison ( #1047 )
...
* add origan generate api speed comparision
* add speed example
* minor fix
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-09-17 17:07:27 +08:00
gongenlei
70debdbc2a
fix: change RELU to GELU for FT gpt ( #1048 )
2021-09-17 17:03:50 +08:00
Zhong Hui
da5a62bd4d
Fix gpt accuracy ci tests. ( #1044 )
...
* Fix gpt accuracy ci tests.
* move gpt tests to tests/example/gpt
2021-09-17 15:38:12 +08:00
Zhong Hui
d1699cdd43
Add additional log for training with amp. ( #1042 )
2021-09-17 14:36:47 +08:00
Jiaqi Liu
c63a9adb08
Recover bert_encoder_transformer.h ( #1029 )
...
remove useless parameters, and remove redefination of pretrain model, and update layer replacement for considering each layer independently.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-17 13:57:16 +08:00
gongenlei
729198ec30
[FasterTransformer] Support BART ( #1021 )
...
* feat: add FT bart
* refactor: remove print
* feat: add other files
* refactor: remove print
* refactor: add pos_offset attribute
* refactor: rename attribute
* refactor: add ActivationType attribute
* refactor: mv encoder to FasterBART
2021-09-17 13:55:42 +08:00
tianxin
97b20d4a63
Support pre-normalization for FT Encoder fp32 ( #974 )
...
* add encoder op
* support fp16
* support pre-normalization for FT Encoder fp32
* update CMakelists.txt
* move code to cuda_kernel_h and cuda_kernel_cu
* uncomment FT sample
* add jiaqi code
* self-attn output diff
* finish pre-normalization v1
* implement generalized kernel
* add v1 encoder
* delete assert for generalize version kernel
* support post-normalization fp32 for FT Encoder
* delete unused CMake commands
Co-authored-by: LiuChiaChi <709153940@qq.com >
Co-authored-by: LiuChiachi <70913940@qq.com >
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
2021-09-16 20:50:36 +08:00
liu zhengxi
b659f1fb79
Fix post-process of unimo-text ( #1038 )
2021-09-16 15:43:49 +08:00
ShenLiang
8387847b38
Fix bug of gpt-3 pipeline recompute ( #1037 )
2021-09-16 15:28:27 +08:00
huhuiwen99
f6a5e7b4e1
ModelingRST Modify ( #989 )
...
* add bart
* add unimo
* add roberta
* add roformer
* modify transformer-rst
2021-09-16 13:03:01 +08:00
liu zhengxi
fda6236676
fix unimo doc ( #1033 )
2021-09-16 11:49:27 +08:00
liu zhengxi
54f80e96f0
[FasterTransformer] Fix encoder compiling ( #1030 )
...
* fix encoder
2021-09-16 10:45:18 +08:00
ShenLiang
7fb87843a1
[GPT-3]add recompute for mp ( #1031 )
2021-09-15 20:53:23 +08:00
gongenlei
2097ef5846
[BART] Tokenizer support not to split special tokens ( #1000 )
...
* fix: bart tokenizer support not to split special tokens
* rafactor: get specials tokens by internal hook
* docs: update doc
2021-09-15 20:13:52 +08:00
liu zhengxi
3dc7452c50
Fix FT doc ( #1028 )
...
* fix doc
* tran -> trans
2021-09-15 19:10:51 +08:00
smallv0221
c3705e4048
Add lightseq hierarchical beam_search ( #978 )
...
* Add offset mapping doc
* fix eval hang because of unique endpoint
* generate api support encoder-decoder
* Add lightseq beam_search
* optimize performence
* add blockroughk kernel
* optimize
* minor fix
2021-09-15 15:42:37 +08:00
liu zhengxi
74dc99747b
Faster Transformer cmake promote ( #879 )
...
* update cmake
* rm python deps when on_infer is no
* refine encoder code
2021-09-15 11:43:57 +08:00
ShenLiang
de4fc9d946
[GPT-3] Fix bug of CE config ( #1024 )
2021-09-15 11:41:19 +08:00
Jack Zhou
1d525371fa
fix text correction windows dtype ( #1023 )
2021-09-15 11:39:26 +08:00
tianxin
898f2e18e5
fix bug of question matching ( #1022 )
2021-09-15 02:22:11 +08:00
Jiaqi Liu
008291658c
Add encoder op ( #952 )
...
* add encoder op
* support fp16
* update encoder sample
remove useless config
use pad to max seq len
* commit before pull
* update patches and cmakelist
* upadte the interface for encoder op
* support jit, and support replacing forward function of nn.TransformerEncoder(and *Layer) object
* support jit
move encoder sample to semantic index, and update readme
delete fp16
add device config info
fix disable faster encoder bug
* remove unsupported argument
add docstring and warning process for False bias_attr of EncoderLayer
fix docstring format
add \n, and add docstring for infer_transformer_encoder
Co-authored-by: LiuChiachi <70913940@qq.com >
2021-09-14 21:05:49 +08:00
liu zhengxi
61c638f381
Use double precisionto train in full procedure ( #1017 )
2021-09-14 11:57:56 +08:00
Zhong Hui
a8272355fa
opt electra training for amp. ( #1018 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-14 11:56:38 +08:00
Zhong Hui
45967dcbc5
fix export and infer model of gpt. ( #1019 )
2021-09-14 11:55:16 +08:00
Linjie Chen
71aff690bb
fix bugs on windows, default convert to int64 ( #1016 )
2021-09-14 00:46:50 +08:00
liu zhengxi
398473bc51
[FasterTransformer] Support Unimo-Text ( #945 )
...
* support unimo text
* delete lines
* update
* update
* undo run_gen.py
* split faster
* undo gen_utils.py
* upload faster gen_utils.py
* undo
* update
* update
* update
* fix comments
* name
* name again
* update format
2021-09-13 22:26:17 +08:00
Jiaqi Liu
0cebfabfc5
fix minilm readme bug ( #1014 )
2021-09-13 19:39:27 +08:00
Jack Zhou
42447b8b85
Fix ernie csc decode ( #1005 )
...
* use list() instead of tokenize
* use list() instead of tokenize in taskflow
* add max_seq_length in readme
* add dynamic predict in text_correction task
* fix windows predict bug
2021-09-13 14:16:15 +08:00
Zhong Hui
1914c8a24d
Adopt new data pipeline for GPT. ( #930 )
2021-09-13 10:55:40 +08:00
liu zhengxi
27727b18f7
[FasterTransformer] Transformer and GPT support dy2sta ( #991 )
2021-09-13 10:52:34 +08:00
wawltor
955c10b67a
set the device id for the taskflow ( #1011 )
2021-09-12 17:45:56 +08:00
yujun
b9a4cb1fea
Add MPNet Model ( #869 )
...
* add mpnet
* update
* update tokenizer and update readme
* update readme & add docs
* rm unused figure
* update
* update
* update copyright
Co-authored-by: gongenlei <gongel@qq.com >
2021-09-11 23:50:51 +08:00
AI-Mart
211c0f5eb2
Update convert_pytorch_to_paddle.rst ( #1009 )
2021-09-11 20:31:37 +08:00
Linjie Chen
28a61b2eaa
fix text classification deploy mode ( #1006 )
...
* fix path issue on deploy mode
* fix path issue on deploy mode
2021-09-11 16:49:23 +08:00
小五井
c5fb88c158
Add Readthedocs FAQ ( #1007 )
...
* add faq
* add faq
* readthedocs_faq
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-09-10 18:33:55 +08:00
小五井
9a8d41439b
Add FAQ File ( #1003 )
...
* add faq
* add faq
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-09-10 15:58:02 +08:00
Zhengyang Song
a0e7a14d72
Refactor convert_example of text_classification pretrained examples. ( #992 )
...
* Refactor convert_example of pretrained examples.
Also fix some typos in README regarding paddle serving.
* Update the README of text_classification pretrained example to use latest version of paddle-serving-server-gpu.
* Set the util path correctly, also add the instruction to set PYTHONPATH in README.
Reference: https://stackoverflow.com/a/54597040/6741885
* Update README.md
Co-authored-by: Linjie Chen <40840292+linjieccc@users.noreply.github.com >
2021-09-09 20:18:57 +08:00
Zhong Hui
b55782c6c5
quick fix for gpt export_model ( #1001 )
2021-09-09 16:50:46 +08:00
Linjie Chen
2d4dc85662
Fix taskflow ddparser visualization
...
Fix taskflow ddparser visualization
2021-09-09 15:29:34 +08:00
linjieccc
1ceaa81a1b
fix bug of visualization using ddparser
2021-09-09 07:18:39 +00:00
ShenLiang
714ca2c2a1
[HybridParallel]Add gpt example using dygraph hybrid parallel ( #986 )
...
* add gpt3 in dygraph
* fix run.sh
* fix some code for dataset
* fix distributedbatchsample
* fix args
* fix args
* fix code for sh
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-09 12:31:56 +08:00
wawltor
e14778c62f
add the taskflow doc for some tasks ( #981 )
...
* add the taskflow doc for some task
* update the ddparaser doc about taskflow
* remove the unused code for the paddlenlp
* update the taskflow docs
* add the input check for the tasks
* add the document for the taskflow
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-09 12:23:42 +08:00
Jack Zhou
9ee168a229
fix ernie-ctm tokenizer bug ( #995 )
2021-09-09 11:29:23 +08:00
Zhong Hui
2ea5ffcf45
fix deadlink ( #993 )
2021-09-09 11:05:28 +08:00
Jack Zhou
8775856682
Add text correction taskflow ( #988 )
...
* add text_correction in task flow
* add readme
* modify model and pinyin vocab url
* add is_chinese_char
* display errors in results
* add taskflow in ernie-csc README
* move argmax to model implementation
* remove unnecessary is_chinese_char
* add more comments to introduce ErnieForCSC
2021-09-08 22:59:02 +08:00
Zhong Hui
7a4f830c43
Delete custom op for adamw. ( #984 )
2021-09-08 19:53:22 +08:00
Zhong Hui
4756db5472
mv ernie to experimental. ( #985 )
2021-09-08 19:51:57 +08:00
huhuiwen99
f3cf4a579e
Modify GPT Docstring ( #942 )
...
* first commit of gpt
* modify tokenizer
* modify bart tokenizer
* modify tinybert tokenizer
* modify tinybert modeling
* modify tinybert
* fix gpt errors
* fix errors
* modify gpt
* modify models
* update
* resolve conflicts
* resolve conflict
2021-09-08 16:05:32 +08:00
yujun
0c751f3fae
add ConvBert Model ( #819 )
...
* add convbert
* update readme
* pre-commit
* update model & add compare
* update
* update readme & fix convbert-small pretrain
* fix convbert-small pretrain
* update
* update readme
* add ConvBertForMultipleChoice and ConvBertForQuestionAnswering
* suggestion from gongel
* add docs
* update attention_mask
* rm unused dropout
Co-authored-by: gongenlei <gongel@qq.com >
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-09-08 15:23:08 +08:00
Zhong Hui
41e1427ebd
Fix bug on windows, default convert labels to int64. ( #982 )
2021-09-08 11:42:34 +08:00
Jiaqi Liu
a61d4d3dac
add hot boot arg ( #980 )
2021-09-08 11:03:37 +08:00
liu zhengxi
1a6729e7ca
Add custom vocab file for ce ( #963 )
2021-09-07 21:47:57 +08:00
Linjie Chen
6ce057a1bf
Update readme ( #979 )
...
* fix the multi-label text classification readme
* update examples readme
* update examples list
2021-09-07 21:46:46 +08:00
wawltor
9844a91bbb
add the chinese task for the taskflow
...
add the chinese task for the taskflow
2021-09-07 21:16:41 +08:00
wawltor
d51d5d4006
fix the text classification document ( #977 )
2021-09-07 18:01:38 +08:00
Jack Zhou
aaa1c79933
Add csc task ( #929 )
...
* add csc task.
1. add detection labels in convert_example
* add train progress
* rename spelling_correction to text_correction
* add pinyin vocab
* fix read_test
* fix decode
* change data.py to utils.py
* add evaluate for csc
* add parse decode for predict
* add Chinses Spelling Correction datasets
* use load_dataset('csc') instead of load_dataset(local_file)
* fix word length
* add predict script
* decouple csc model and ernie-gram
* add ernie backbone
* change default model_type to ernie
* add roberta
* fix decode
* add sighan test dataset;add sighan predict script;
* remove sighan testset
* add download script
* add README.md
* add export model
* add ernie-csc directory
* fix some review comments
* add sighan dataaset
* remove unnecessary model
* add deploy model
* add dataset download
* remove deploy/predict.py;fix some readme bug
* modify accroding to review comments
* Add more comments on model implementation
* upgrade sighan_evaluate.py
* add some comments in sighan metrics.
2021-09-07 17:13:56 +08:00
wawltor
c09d901f85
Merge pull request #4 from linjieccc/add_taskflow_ddparser
...
Replace np.argmax to paddle.argmax
2021-09-07 16:27:06 +08:00
linjieccc
fe352cc74d
change model output
2021-09-07 08:18:22 +00:00
wawltor
22f52247a7
remove the print code in taskflow skep model
2021-09-07 10:47:37 +08:00
wawltor
ab8532395f
Merge pull request #847 from linjieccc/ddparser
...
Add ddparser example
2021-09-07 10:37:27 +08:00
wawltor
b5278384e7
update md5sum for the tasks
2021-09-07 10:30:48 +08:00
wawltor
47442299e0
support the predictor for the other tasks
2021-09-06 16:41:53 +08:00
Zhengyang Song
af82e03bbf
Fix text_classification examples multi_label. ( #973 )
...
1. code fix: dataset_name -> file_name in predict.py
2. add default value for params_path in predict.py
3. remove misleading comments in train.py: we have no demo for ernie in the multi_label example.
4. remove unused imports.
2021-09-06 15:54:11 +08:00
Jiaqi Liu
6e39f20add
update clue dataset, and remove useless argment for run_clue ( #975 )
2021-09-06 14:42:43 +08:00
Zhengyang Song
98e35649b5
Fix rnn example. ( #971 )
...
1. typo fix: stm_hidden_size -> lstm_hidden_size.
2. import fix: add missing imports in export_model.py
3. nit: remove unused imports.
2021-09-04 04:15:57 +08:00
tianxin
c7fb2b91c2
add paddlefsl into requirements.txt ( #968 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-03 20:44:24 +08:00
gongenlei
8c387e5494
[BeamSearchV2] Support converting dygraph to static graph ( #959 )
...
* feat: beamsearch v2 support dygraph to static graph
* docs: add some annotations
2021-09-03 17:31:20 +08:00
wawltor
2b2830e2bc
Merge pull request #3 from linjieccc/add_taskflow_ddparser
...
add use_cuda option for lac
2021-09-03 17:12:35 +08:00
linjieccc
6d07243717
add try import for dependent modules
2021-09-03 09:07:31 +00:00
linjieccc
f4a2138876
add try import for dependent modules
2021-09-03 09:05:44 +00:00
linjieccc
156ab97d93
upate dataloader & enhance comments
2021-09-03 08:52:37 +00:00
Jack Zhou
fe69df50e1
upgrade lac ( #969 )
2021-09-03 16:43:12 +08:00
smallv0221
14b6f897b8
Generate api support encoder-decoder ( #966 )
...
* Add offset mapping doc
* fix eval hang because of unique endpoint
* generate api support encoder-decoder
2021-09-03 16:13:39 +08:00
Guo Sheng
034cd53b16
Add FasterTransformer beam-search v2. ( #862 )
...
* Add FasterTransformer beam-search v2.
* Fix end of line.
* Fix end of line.
* Fix CMake.
* Fix input shape in fusion_decoding_op.cc
* Fix fusion_decoding_op.h
* Fix arguments in fusion_decoding_op.cc.
* Delete Print in decoding_beamsearch.h to mute.
* Add general beam size support for beam search V2.
* Refine code by adding adjustable alpha for FT beam search v2.
* Fix demo/transformer_e2e.cc
* Polish FasterTransformer api doc.
* Clean code for FT beam search v2.
* Clean code for FT beam search v2.
* Clean code for FT beam search v2.
* Refine API doc for TransformerGenerator.
* Refine API docs for TransformerGenerator.
* Refine API docs of TransformerGenerator.
2021-09-03 15:26:50 +08:00
linjieccc
cc7160e7c2
fix import
2021-09-03 05:21:35 +00:00
linjieccc
7786dcaaad
add use_cuda option for lac
2021-09-03 03:14:38 +00:00
wawltor
693d160f49
Merge pull request #2 from linjieccc/add_taskflow_ddparser
...
add md5 check & enhance comments
2021-09-03 10:46:18 +08:00
linjieccc
520e749083
add md5 check & enhance comments
2021-09-03 02:41:23 +00:00
tianxin
3174579746
update README.md ( #965 )
2021-09-02 21:15:25 +08:00
gongenlei
d57a213f88
feat: add use_cache flag for generation ( #964 )
2021-09-02 20:43:01 +08:00
linjieccc
5007cc5351
update readme
2021-09-02 09:57:36 +00:00
linjieccc
306eace419
update readme
2021-09-02 09:55:20 +00:00
linjieccc
4f2f71c02d
update readme
2021-09-02 09:52:22 +00:00
linjieccc
7935436e9f
update readme
2021-09-02 09:48:22 +00:00
wawltor
9b04a7a7c3
Merge pull request #1 from linjieccc/add_taskflow_ddparser
...
add taskflow ddparser & add static predictor
2021-09-02 16:28:27 +08:00
Linjie Chen
a422e7f707
Merge branch 'add_taskflow_cn_tasks' into add_taskflow_ddparser
2021-09-02 16:25:12 +08:00
Jack Zhou
0a734698f1
fix precision ( #962 )
2021-09-02 16:22:16 +08:00
linjieccc
5947f823e3
add taskflow ddparser & add static predictor
2021-09-02 16:21:25 +08:00
Jiaqi Liu
b47de842c5
Add MINILMV2 ( #704 )
...
* add minilm task distill
* add general distillation MINILMV2, and update distill_utils
* remove test break and gradient accumulate
* fix loss funct
* optimize distill utils
* add tinybert general distillation
* add tinybert general distillation
* update default hyperparameters
* add cold boot
* correct optimizer adam to adamw using weight decay, and add clip norm
* update optimizer for minilm, and add clip norm
* update arg and support minilmv2
* add readme for minilmv2
add run_clue.py scripts
update dataset name of wsc
update dataset name of wsc
add parameters link
2021-09-02 15:04:59 +08:00
wawltor
d270c66bb8
update the import for the taskflow
2021-09-02 14:31:11 +08:00
wawltor
2d02b854aa
change the TaskFlow to Taskflow
2021-09-02 14:24:34 +08:00
huhuiwen99
93cdd6477a
Docs and Clear-api Modify ( #948 )
...
* modify docs
* modify docs
* del inheritance
* add inheri
2021-09-02 13:11:08 +08:00
Zhong Hui
a96ebb0f43
Ernie pretraining optimization ( #956 )
...
* fix write file
* add share folder support
* don't delete train log
* don't use inplace random mask.
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-09-02 12:23:58 +08:00
yingyibiao
15bee1e06f
modify content width of readthedocs web ( #960 )
...
* modify content width of readthedocs web
* modify content width of readthedocs web
* modify content width of readthedocs web
* Update custom.css
2021-09-02 12:22:28 +08:00
linjieccc
cfead3d1b9
add comment & update readme
2021-09-02 03:57:26 +00:00
wawltor
00342d44ea
fix some problems for the tasks
2021-09-02 11:56:01 +08:00
yingyibiao
225e4c9146
modify content width of readthedocs web ( #958 )
2021-09-02 11:08:07 +08:00
wawltor
285395490a
Merge pull request #955 from linjieccc/update_example_readme
...
Update README.md
2021-09-02 00:39:24 +08:00
wawltor
bd0748f5f1
add the chinese task for the taskflow
2021-09-02 00:30:15 +08:00
linjieccc
1f5c1e41fb
update examples readme
2021-09-01 21:21:25 +08:00
iamqiz
02bb22edad
Update data_preprocess.rst ( #951 )
...
Tuple的init参数修改
2021-09-01 18:38:04 +08:00
tianxin
b0a9b37a45
Fix README typo of SimCSE ( #954 )
2021-09-01 18:36:54 +08:00
linjieccc
2088c32bb0
update datasets
2021-09-01 09:45:02 +00:00
linjieccc
c34c4e875f
update datasets
2021-09-01 08:55:36 +00:00
linjieccc
5e80f5e6cc
delete empty line
2021-09-01 08:43:18 +00:00
linjieccc
fbae67aeba
delete empty line
2021-09-01 08:39:01 +00:00
linjieccc
95b200cb36
update datasets load
2021-09-01 08:32:35 +00:00
iamqiz
11080d81e9
Update dataset_self_defined.rst ( #950 )
2021-09-01 14:38:37 +08:00
linjieccc
4a24119376
update readme
2021-08-31 13:42:32 +00:00
linjieccc
4e48732ff3
update ddparser readme
2021-08-31 05:57:04 +00:00
linjieccc
bdb76099de
update ddparser readme
2021-08-31 05:54:02 +00:00
linjieccc
5f1db0a22a
add taskflow ddparser
2021-08-31 05:34:29 +00:00
Zhong Hui
94c641aa9b
fix gpt tokenizer typo ( #935 )
2021-08-30 11:59:09 +08:00
Zhong Hui
7789a644a6
Fix serious bug of batch sampler. ( #939 )
2021-08-30 11:51:36 +08:00
liu zhengxi
ab1c74f4ee
fix cpp python diff ( #936 )
2021-08-27 18:36:16 +08:00
liu zhengxi
ac4dabf946
minor fix encoder_decoding_sample ( #934 )
2021-08-27 14:41:28 +08:00
tianxin
047693df94
[Question matching] Add introduction of competition into README.md ( #928 )
...
* fix ernie_text_matching ci config
* add Introduction of competition
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: chenustc <2601898400@qq.com >
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-27 13:49:41 +08:00
tianxin
47f4362a3d
update README.md ( #933 )
2021-08-27 13:03:25 +08:00
linjieccc
f6e63b67c0
add static model & deploy
2021-08-26 16:12:55 +00:00
huhuiwen99
1bab575315
Modify Bert Docstring ( #914 )
...
* modify bertmodeling
* modify berttokenizer
* fix errors
* fix some errors
* modify errors
* modify tokenizer
* modify errors
* update
* modify criterion
* update
* update
* fix errors
* update
* update
* pre-commit
* pre-commit
2021-08-26 16:32:42 +08:00
liu zhengxi
a84d7ce663
[Faster Transformer][Ready for review] Support unified transformer ( #569 )
2021-08-26 15:02:03 +08:00
Zhong Hui
1a7cfc7c4c
Add new pretraining data process for transformers pretrain and ernie-1.0 pretrain example. ( #816 )
2021-08-26 12:32:01 +08:00
smallv0221
ab100b178b
fix eval hang because of unique endpoint ( #925 )
...
* Add offset mapping doc
* fix eval hang because of unique endpoint
2021-08-26 11:00:22 +08:00
tianxin
c7b1bc6607
[Question matching] add max_steps argument for CICE ( #926 )
...
* finish QM baseline
* update
* update
* update
* add README.md
* Update README.md
* implement rdrop as paddlenlp api
* add rdrop.py into paddlenlp.losses module
* release pretrained model to reproduce out results
* add max_steps for CICE
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-26 10:58:42 +08:00
smallv0221
e79da85187
Add offset mapping doc ( #924 )
2021-08-25 20:34:47 +08:00
liu zhengxi
6b76d12b29
Fix beam search v2 dtype int32 ( #918 )
...
* fix dtype int32
* update arange
* trg_pos
2021-08-25 14:36:02 +08:00
yujun
582b4ca4cb
fix ( #882 )
...
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-08-25 12:51:24 +08:00
Jack Zhou
0444152f4f
add max steps for ernie-doc examples ( #920 )
2021-08-24 21:46:45 +08:00
gongenlei
bad882ce71
Merge pull request #858 from gongel/ft_decoder_op
...
[Feat] Add custom op for FasterTransformer decoder
2021-08-24 17:22:27 +08:00
gongenlei
8019078476
Merge branch 'develop' into ft_decoder_op
2021-08-24 15:57:33 +08:00
linjieccc
bc4b57675d
update directory structure
2021-08-24 02:00:56 +00:00
tianxin
15b3dadae4
Add SimCSE ( #854 )
...
* add FewCLUE 9 datasets
* fix a bug for tnews
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* fix encoding problem for windows
* update ernie_text_matching ci
* standard GPU id for CI
* standard GPU id for CI
* add simcse
* update train.py
* support multi-card training
* add README.md
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-24 09:07:56 +08:00
linjieccc
c76b44d5fb
update readme
2021-08-23 10:28:13 +00:00
linjieccc
1d4aa2e4c8
update readme
2021-08-23 10:06:36 +00:00
linjieccc
3095e9942b
update readme
2021-08-23 10:04:02 +00:00
linjieccc
fb0f1da7d2
delete empty line
2021-08-23 10:01:06 +00:00
linjieccc
714abfc0b3
add paddlenlp/dataset api
2021-08-23 09:56:45 +00:00
Linjie Chen
1e9f4328f6
Merge branch 'PaddlePaddle:develop' into ddparser
2021-08-23 17:51:00 +08:00
gongenlei
7096d5f2b2
Merge branch 'develop' into ft_decoder_op
2021-08-23 15:44:33 +08:00
smallv0221
9d95922d96
Add news for qianyan contest ( #915 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
* Refine some doc
* Add general k support for topk sampling
* fix seed
* minor fix
* Fix unitransformer readme
* topk kernel optimization
* add unimo model and fix generate api
* add 3 datasets for unimo-text
* fix tokenizer bug
* paddlenlp+lightseq sample
* Refine api docs and readme and fix baseline bug
* add shell srcipt
* remove lightseq samples
* minor fix
* minor fix
* Add news
* minor fix
* minor fix
* minor fix
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-08-23 15:32:34 +08:00
smallv0221
fe8c2d694e
Refine api docs and readme and fix baseline bug ( #912 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
* Refine some doc
* Add general k support for topk sampling
* fix seed
* minor fix
* Fix unitransformer readme
* topk kernel optimization
* add unimo model and fix generate api
* add 3 datasets for unimo-text
* fix tokenizer bug
* paddlenlp+lightseq sample
* Refine api docs and readme and fix baseline bug
* add shell srcipt
* remove lightseq samples
* minor fix
* minor fix
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-08-22 18:00:08 +08:00
liu zhengxi
9602532c40
fix paddle.sum ( #909 )
2021-08-20 15:18:49 +08:00
gongel
bfe0ae98db
fix: use cuda_add_library correctly
2021-08-20 06:26:12 +00:00
liu zhengxi
4075ea6675
Transformer input id supports int32 & mv beam search v2 ( #905 )
...
* support int32
* mv beam search v2
2021-08-20 10:09:59 +08:00
tianxin
2ae7a8716c
Release pretrained model for question matching baseline ( #907 )
...
* finish QM baseline
* update
* update
* update
* add README.md
* Update README.md
* implement rdrop as paddlenlp api
* add rdrop.py into paddlenlp.losses module
* release pretrained model to reproduce out results
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-19 21:31:28 +08:00
gongenlei
057d920e45
Merge pull request #838 from gongel/feat_beam_search_v2
...
[Feat] Add Beam Search v2
2021-08-19 14:02:53 +08:00
gongenlei
52390d5d44
Merge branch 'develop' into feat_beam_search_v2
2021-08-19 14:00:46 +08:00
gongel
f188e899ea
refactor: default to beam search v1
2021-08-19 13:27:56 +08:00
gongel
6414565c7c
fix: remove .numpy() to support static graph
2021-08-19 13:20:00 +08:00
gongel
9cd3574d93
feat: add pd_infer_custom_op for decoder
2021-08-18 22:16:28 +08:00
gongel
b448d77c64
docs: add api docs for InferTransformerDecoder and FasterDecoder
2021-08-18 21:42:36 +08:00
小五井
dbb0e57d82
Modify QQ Name ( #904 )
...
* add qq group
* modify qq
Co-authored-by: chenxiaozeng <chenshuo07@baidu.com >
2021-08-18 20:56:52 +08:00
小五井
3ce9f1d05a
add qq group ( #903 )
2021-08-18 20:33:10 +08:00
小五井
95122fc86a
delete qq ( #901 )
2021-08-18 19:56:46 +08:00
gongel
28d20b476f
fix: compute real mem_seq_lens
2021-08-18 19:30:11 +08:00
gongel
ac54792dd8
refactor: remove predict_beamsearch_v2
2021-08-18 16:07:40 +08:00
gongel
85ec79b3f6
refactor: combine beam search v1 and v2
2021-08-18 16:04:36 +08:00
小五井
0bfae0a883
Modify QQ Group info ( #897 )
...
* modify readme_qq
* modify readme qq
2021-08-18 15:30:46 +08:00
gongenlei
8c8fc03477
Merge branch 'develop' into feat_beam_search_v2
2021-08-17 19:47:12 +08:00
gongel
b280a02f67
refactor: use gather_nd and while_loop
2021-08-17 18:42:04 +08:00
tianxin
5c58459f2d
Add Question matching baseline ( #874 )
...
* finish QM baseline
* update
* update
* update
* add README.md
* Update README.md
* implement rdrop as paddlenlp api
* add rdrop.py into paddlenlp.losses module
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-17 17:27:01 +08:00
smallv0221
7e098f160e
Fix tokenizer bug ( #893 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
* Refine some doc
* Add general k support for topk sampling
* fix seed
* minor fix
* Fix unitransformer readme
* topk kernel optimization
* add unimo model and fix generate api
* add 3 datasets for unimo-text
* fix tokenizer bug
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-08-17 14:47:30 +08:00
smallv0221
740f5e2397
Add unimo model and fix generate api ( #891 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
* Refine some doc
* Add general k support for topk sampling
* fix seed
* minor fix
* Fix unitransformer readme
* topk kernel optimization
* add unimo model and fix generate api
* add 3 datasets for unimo-text
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-08-17 13:56:27 +08:00
liu zhengxi
4cdd4c0965
Add random seed fixing ( #888 )
2021-08-17 10:48:27 +08:00
liyueyang
8317ad3edd
Delete the batchify_fn of cluewsc ( #889 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-17 00:25:46 +08:00
Zhengyang Song
14efb919eb
Fix two typos in text classification examples rnn ( #887 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-16 00:04:46 +08:00
Zeyu Chen
1ae0164516
Rename ernie-doc folder
2021-08-15 21:47:00 +08:00
linjieccc
32ca82d9ba
update evaluate mode
2021-08-15 10:07:59 +00:00
linjieccc
0e279262a9
update training example
2021-08-13 11:05:06 +00:00
yujun
15a074b0ea
Fix tokenizer vocab replace bug ( #878 )
...
Fix #875
2021-08-13 12:01:35 +08:00
linjieccc
187ada8031
update readme
2021-08-13 03:59:34 +00:00
linjieccc
3d4d7bdbe9
update dir struct
2021-08-13 03:53:14 +00:00
linjieccc
c34f80c765
change some paddle api
2021-08-12 13:09:36 +00:00
gongenlei
7236fb65a7
Merge branch 'develop' into ft_decoder_op
2021-08-12 17:57:26 +08:00
gongel
916c3571b9
refactor: update decoder dependency
2021-08-12 09:56:05 +00:00
gongel
3f13e44d77
refactor: use static_cast
2021-08-12 08:55:18 +00:00
tianxin
d4cf11ab56
fix ernie_text_matching ci config ( #877 )
...
* fix ernie_text_matching ci config
2021-08-12 16:51:11 +08:00
Jack Zhou
303ef9c489
add random seed for ernie_ie tests ( #876 )
...
* add random seed for ernie_ie tests
2021-08-12 16:39:42 +08:00
gongel
bd5c275ee9
refactor: remove unuseful args and add todo
2021-08-12 16:27:12 +08:00
gongel
afcdb0bff5
refactor: replace n_layer with num_encoder_layers and num_decoder_layers
2021-08-12 15:04:23 +08:00
gongel
e598d2edbd
refactor: generate src_word randomly
2021-08-12 11:04:02 +08:00
liu zhengxi
496c4cd05e
Transformer full procedure ci/ce ( #839 )
2021-08-11 20:21:28 +08:00
linjieccc
466587c349
update readme
2021-08-11 10:31:46 +00:00
linjieccc
b63ca79c23
update directory and readme
2021-08-11 10:21:33 +00:00
gongel
169740ff62
feat: add decoder_sample
2021-08-11 18:07:39 +08:00
gongel
b2846c58d4
refactor: refactor code structure
2021-08-11 17:29:16 +08:00
linjieccc
589a0089f9
update readme
2021-08-11 09:24:04 +00:00
Linjie Chen
63570f3fa2
Merge branch 'PaddlePaddle:develop' into ddparser
2021-08-11 17:21:45 +08:00
Jack Zhou
0d9f1170c7
Add ernie doc ( #613 )
...
* add Ernie-Doc modeling, tokenizer
* add ernie-doc multihead attention
* add encoder
* add ErnieDocModel, ErnieDocForSequenceClassification, ErnieDocForTokenClassification, ErnieDocForQuestionAnswering
* add ErnieDocTokenizer, BPETokenizer
* add data preprocess
* fix embedding norm
* free the previous useless memory to save gpu memory
* add shuffle sample for ClassifierIterator
* add best model save
* upload ernie_doc base model
* add tokenizer save and from pretrained
* decrease memory cost
* remove cast dtype
* use try_import for nltk, regex
* add init README.md
* add different tokenizer for different tasks
* add iflytek classifier task
* add layerwise decay optimizer
* AdamLW->AdamWDL
* fix data iterator
* eval same samples
* add hyp dataset
* add hyp preprocessor
* temp
* fix the wrong acc calculation
* add ernie_doc metrics
* Revert "add hyp dataset"
This reverts commit c6c3353d18 .
* Add hyp thunews (#712 )
* add hyp dataset
* add thucnews
* add more comments
* fix some thucnews dataset label path
* add THUCNews, HYP dataset list
* remove LABELS member
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
* fix some print when evaling
* add init mrc script
* add chinese tokenize
* add MRCIterator
* add mrc loss
* add EM_AND_F1 for qa tasks
* add dropout argument for ernie-doc task
* optimize output of evaluation of mrc
* PreProcessor -> Preprocessor
* add model save for mrc
* fix mrc eval print
* add cls token index of sequence
* add c3 mrc dataset
* add MCQIterator
* add mcq task
* fix c3 bug
* fix MCQIterator
* add cail2019 scm dataset
* upgrade MCQIterator
* add semantic matching
* add simnet model based on ernie_doc
* change SemanticMatchingIterator
* fix semantic matching save model
* add label key for c3 dataset iterator
* Revert "add cail2019 scm dataset"
This reverts commit a7aefdc605 .
* Revert "add c3 mrc dataset"
This reverts commit d240639801 .
* Add C3, TriviaQa, CAIL2019-SCM dataset (#754 )
* add c3 mrc dataset
* add triviaqa dataset
* add cail2019 scm dataset
* add dataset desc
* update accroding to advices
* add label key in c3 dataset
* add triviaqa task;fix mcq,cail task bug
* dev->eval
* fix mcq data iterator
* fix _get_samples for mcq
* fix c3 training
* ErnieDocSimNet->ErnieDocForTextMatching
* optimize data.py
* add sequence labeling for ernie doc
* remove useless comments
* add README.md for ernie_doc
* add contents for ernie doc readme.md
* fix readme.md
* add ERNIE-DOC BPEtokenizer
* remove save test model
* use paddle.metric.Accuracy instead of Acc
* fix README.md
* remove adamwdl to paddlenlp.ops.optimizer
* add __rel_shift comments
* optimize comments
* add comments for tokenizer
* add comments for ErnieDocModel, ErnieDocForSequenceClassification, ErnieDocForTokenClassification, ErnieDocForQuestionAnswering
* add ernie_doc api doc reference
* fix dtype of semantic matching
* reseet metric when finishing evaluation
* add adamwdl docs
* add adamwdl, ernie_doc navigation
* add more comments of admawdl
* fix reference of ernie-doc in pretraining model
* add adamwdl formula
* fix gather_idxs
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-08-11 15:54:42 +08:00
gongel
57c8fc52b7
docs: update annotation
2021-08-11 14:25:34 +08:00
Linjie Chen
a92fea6906
Merge branch 'develop' into ddparser
2021-08-11 13:20:03 +08:00
linjieccc
468dfe0807
update readme
2021-08-11 05:17:27 +00:00
linjieccc
11726b1528
add comment for main step and update readme
2021-08-10 13:22:15 +00:00
linjieccc
fd8d470bfb
update predict mode
2021-08-10 09:46:46 +00:00
gongel
fc980843b9
fix: use alive_seq when no eos
2021-08-10 17:03:24 +08:00
gongel
2a49254e89
fix: fix caches can't be modified inplace
2021-08-09 13:17:03 +00:00
wawltor
bc178ab7dc
optimize the time cost for the wordtag ( #863 )
...
* optimize the time cost for the wordtag
* update the optimize code for the predictor
2021-08-09 17:00:14 +08:00
Steffy-zxf
73b4d38b0b
fix docs info on dataset downloading ( #864 )
2021-08-09 16:59:22 +08:00
gongel
a5d431a7f3
docs: add yaml configuration file
2021-08-09 03:48:53 +00:00
gongenlei
00d02ac552
[Bugfix] Fix ci breaking for paddle2.1.2 ( #861 )
...
* bugfix: fix ci breaking for paddle2.1.2
* bugfix: fix ci breaking for paddle2.1.2
2021-08-09 03:08:03 +08:00
Zhong Hui
eee6be98db
Add huggingface gpt converter. ( #859 )
...
* Add huggingface gpt converter.
* update some doc.
* refine
* refine
2021-08-06 23:30:06 +08:00
gongel
3393f57402
feat: add custom op for FT decoder
2021-08-06 09:02:29 +00:00
Guo Sheng
d3076d044a
Use utf-8 to read in create_pretraining_data.py of BERT for Windows. ( #857 )
2021-08-06 16:49:32 +08:00
ceci3
bd727d0881
add depth export ( #853 )
2021-08-06 10:55:35 +08:00
Steffy-zxf
5e92215af7
fix windows locale bug ( #856 )
2021-08-06 10:54:16 +08:00
芳樽里的歌
091b815529
Update quick_start.rst ( #852 )
...
修复无效链接
2021-08-06 08:05:39 +08:00
linjieccc
854a5acf55
update file dir
2021-08-05 18:44:40 +08:00
Jack Zhou
ba1a4405d7
fix dtype, file read encoding ( #851 )
2021-08-04 22:03:22 +08:00
liu zhengxi
b96ff968c6
fix trans_param ( #846 )
2021-08-04 21:05:50 +08:00
linjieccc
cb79b122e7
Add dependency parser
2021-08-04 17:13:56 +08:00
yingyibiao
5f5d120d13
Edit community contribution docs ( #844 )
...
* edit community contribution docs
* edit community contribution docs
* edit community contribution docs
* edit community contribution docs
* edit community contribution docs
2021-08-04 17:07:56 +08:00
tianxin
36ce8865e8
Add deploy for Few-Shot EFL ( #840 )
...
* add FewCLUE 9 datasets
* fix a bug for tnews
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* fix encoding problem for windows
* update ernie_text_matching ci
* add python_deploy for efl
* add python_deploy for efl
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-08-04 17:05:49 +08:00
tianxin
058139e432
Merge pull request #845 from leeyy2020/fix_pet_bug
...
Fix pet bug
2021-08-04 12:06:34 +08:00
liyueyang
9c4abf0140
fix some bug in pet
2021-08-04 03:52:26 +00:00
liyueyang
cbeca343bb
Merge remote-tracking branch 'refs/remotes/origin/develop' into develop
2021-08-04 03:44:41 +00:00
liyueyang
6a40671e9e
Merge branch 'develop' of github.com:leeyy2020/PaddleNLP into develop
2021-08-04 03:33:41 +00:00
Zhong Hui
02998ad546
Update GPT-3 Readme. ( #843 )
2021-08-04 10:21:38 +08:00
tianxin
62cea7d378
Add CI for ernie_text_matching ( #842 )
...
* add CI for ernie_text_matching
2021-08-04 10:10:05 +08:00
Zeyu Chen
2cd18f067d
Update Fewshot README
2021-08-04 01:08:53 +08:00
Jack Zhou
58a2f63329
Upgrade ernie ie ci ( #836 )
...
* 1. add export model for ErnieForTokenClassification
2. add predict scripts (still not support gpu predict)
* remove dataloader
* update README.md for export model and deploy
* add test.sh; add parallel training
* add create_dataloader
* add autolog
* add device args
* paddle.save->save_pretrained
* upgrade ernie information extraction ci
Co-authored-by: Steffy-zxf <48793257+Steffy-zxf@users.noreply.github.com >
2021-08-03 20:37:22 +08:00
tianxin
6cf804e753
Add CI for ernie_text_matching ( #833 )
...
* update ernie_text_matching ci
2021-08-03 20:33:43 +08:00
gongel
1795f6895b
fix: add more args
2021-08-03 15:31:58 +08:00
gongel
18b9ed6005
feat: add beam_search_v2
2021-08-03 14:45:13 +08:00
wawltor
b95903ea48
fix the electra oom in the process of training ( #834 )
2021-08-03 14:43:56 +08:00
wawltor
edceb138ab
fix the bug in text2sql ( #828 )
2021-08-03 00:27:07 +08:00
yingyibiao
df763fa804
fix adamw init typo ( #829 )
2021-08-03 00:26:42 +08:00
yingyibiao
63683d83c8
Fix a bug when vocab_file is None ( #830 )
...
* fix a bug when vocab_file is None
* Prevent potential bug when resource_file is None
2021-08-02 23:06:28 +08:00
yujun
b9058c0ae8
add RoFormer Model ( #804 )
...
* add roformer
* fix error
* fix error
* refactor & add more weights
* add example & update url
* add new line
* pre commit
* suggestion from yingyibiao
* add example cail2019_scm
* update readme
* update readme
* update
Co-authored-by: yingyibiao <yyb0576@163.com >
2021-08-02 17:14:17 +08:00
liu zhengxi
f9af064b4e
Make FT selectable ( #826 )
...
* Make FT selectable
* update
* fix comments
2021-08-02 14:15:14 +08:00
Zhong Hui
84257cd69f
GPT, spilt modeling to gpt-3 for training ( #710 )
...
* GPT. refine args print.
* GPT split to gpt-3.
2021-08-02 13:02:11 +08:00
yingyibiao
d66300bdaa
[Ready for Review] optimize `from_pretrained` APIs for decoupling of weights and configs ( #671 )
...
* api
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update for model_utils
2021-08-02 12:56:24 +08:00
Steffy-zxf
ebc2b1b799
update ernie text cls ci ( #823 )
...
* add ernie text cls ci
* mv ernie_text_cls_params.txt to ernie_text_cls directory
2021-07-30 22:24:02 +08:00
yingyibiao
af6245932a
delete legacy converter code ( #821 )
2021-07-30 16:42:27 +08:00
wawltor
6fbb9a010d
fix the thread problem in taskflow ( #817 )
2021-07-30 14:03:34 +08:00
Jiaqi Liu
6b515fd572
update dataset tnews ( #814 )
2021-07-30 13:40:29 +08:00
tianxin
4baf346978
Merge pull request #802 from leeyy2020/PET
...
Add PET for few_shot
2021-07-30 12:35:49 +08:00
liyueyang
45506b47b2
Merge branch 'develop' into PET
2021-07-30 10:27:07 +08:00
wawltor
0bc5fd4c48
Merge pull request #818 from joey12300/fix_waybill_data_dir
...
fix waybill data_dir; remove data files
2021-07-29 21:19:25 +08:00
zhoushunjie
301ed98491
fix waybill data_dir; remove data dir
2021-07-29 16:42:41 +08:00
liu zhengxi
370adad388
Add unified transformer decoding beam search and sampling ( #739 )
...
* add unified transformer decoding beam search and sampling
2021-07-29 16:27:44 +08:00
liu zhengxi
f753bb1fba
Update transformer ci/ce ( #812 )
...
* update ci/ce
* delete useless line
2021-07-29 15:04:31 +08:00
liyueyang
fa60078ac9
Merge branch 'develop' into PET
2021-07-29 13:55:57 +08:00
liyueyang
3ae883ccb0
fix some problem detected by CI
2021-07-29 02:47:25 +00:00
smallv0221
b6a7f8f03c
topk kernel optimization ( #811 )
...
* topk kernel memory optimization
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-07-29 10:33:09 +08:00
liyueyang
65dd4bdcee
fixed some problem detected by CI
2021-07-28 12:16:20 +00:00
liyueyang
14292cc0ae
fix problem
2021-07-28 09:39:44 +00:00
liyueyang
5ef0ca7d46
add PET to few shot
2021-07-28 09:13:45 +00:00
liyueyang
181a1e09c1
add PET
2021-07-27 14:30:15 +00:00
Zeyu Chen
79eaa2b2fd
Update README.md
2021-07-27 21:55:13 +08:00
Zhong Hui
4e56ba5774
simplify requirements.txt ( #808 )
...
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-07-27 21:52:53 +08:00
Jack Zhou
7a6ef1102c
Add vdl dependency in word emb ( #807 )
2021-07-27 21:52:33 +08:00
wawltor
ac84075607
remove the pandas dependency in the taskflow ( #803 )
2021-07-27 21:36:31 +08:00
liyueyang
03f0f0299e
add PET
2021-07-27 06:23:37 +00:00
smallv0221
5855111ae0
Add general k support for topk sampling ( #792 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
* Refine some doc
* Add general k support for topk sampling
* fix seed
* minor fix
* Fix unitransformer readme
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
Co-authored-by: liu zhengxi <380185688@qq.com >
2021-07-27 14:19:36 +08:00
liyueyang
14e2234264
Add PET
2021-07-27 06:15:23 +00:00
liu zhengxi
ac3a6165e5
Add ci/ce for transformer ( #776 )
...
* full link shell
* update log
* delete utils for python inference
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-07-26 20:23:04 +08:00
tianxin
fda3ff7fc1
add save_step for ernie_matching ( #798 )
...
* add FewCLUE 9 datasets
* fix a bug for tnews
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* fix encoding problem for windows
* add save_step for ernie_matching
2021-07-26 20:22:35 +08:00
liu zhengxi
f1dc506044
Transformer force decoding support ( #783 )
...
* force decoding for transformer
2021-07-26 19:51:16 +08:00
Steffy-zxf
c44e359196
Update docs and readme ( #797 )
...
2. remove simnet test evaluation
2021-07-26 16:29:25 +08:00
Linjie Chen
f9023e5fd9
update text classification readme ( #796 )
...
* update text classification readme
2021-07-26 14:37:48 +08:00
tianxin
9d60da1eba
Add CI for Ernie text matching ( #781 )
...
* add FewCLUE 9 datasets
* fix a bug for tnews
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* Add CI for Ernie text matching
* fix encoding problem for windows
Co-authored-by: Steffy-zxf <48793257+Steffy-zxf@users.noreply.github.com >
2021-07-26 14:25:53 +08:00
Jack Zhou
28a95901ea
Add ErnieForTokenClassification CI ( #778 )
...
* 1. add export model for ErnieForTokenClassification
2. add predict scripts (still not support gpu predict)
* remove dataloader
* update README.md for export model and deploy
* add test.sh; add parallel training
* add create_dataloader
* add autolog
* add device args
* paddle.save->save_pretrained
2021-07-26 12:06:19 +08:00
Linjie Chen
2c1b6bc172
[Ready for Review]Add multi-label text classification example ( #788 )
...
* add multi-label text classification example
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-07-26 12:03:56 +08:00
thomas-yanxin
b44fe5e828
Update README.md ( #787 )
2021-07-22 23:35:48 +08:00
gongel
1ddc5bbeeb
[Feat] Add BART model ( #663 )
...
* feat: add BART model
* fix: fix BartForSequenceClassification with new sentence_representation
* feat: add pretrained models and vocab
* refactor: update copyright notice
* refactor: rename encoder_layers to num_encoder_layers
* feat: add cache for BartDecoder
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-07-21 14:12:58 +08:00
Steffy-zxf
fd740cb7a9
Add ci for ernie text cls ( #750 )
...
* add ernie text cls test script
* add test_ci for ernie_text_cls
* update params setting
* update ernie_cls ci
* update ernie cls docs
* mv run_ernie_cls.sh test_model.sh
* enable trt for test
2021-07-21 12:10:35 +08:00
wawltor
f4029e22ae
fix the script of static to dygraph ( #779 )
2021-07-21 11:59:38 +08:00
Jack Zhou
39375fd44b
Add C3, TriviaQa, CAIL2019-SCM dataset ( #754 )
...
* add c3 mrc dataset
* add triviaqa dataset
* add cail2019 scm dataset
* add dataset desc
* update accroding to advices
* add label key in c3 dataset
2021-07-21 11:17:29 +08:00
smallv0221
cbaafb9071
Refine some doc ( #774 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
* Refine some doc
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
2021-07-21 11:16:45 +08:00
gongel
39b7f9d0fd
add max_iter to stop training for STACL ( #769 )
2021-07-19 21:08:50 +08:00
wawltor
7ed23aeeb7
Optimize wordtag doc ( #771 )
...
* support the wordtag doc for the paddlenlp
* update doc of wordtag
2021-07-19 21:08:18 +08:00
smallv0221
17502c1f9b
Fix plato-2 tokenization ( #770 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
* Fix plato-2 tokenization
Co-authored-by: Jiaqi Liu <liujiaqi06@baidu.com >
2021-07-19 19:47:42 +08:00
liyueyang
b86d5b7adc
change varname,set default value for pool_act ( #766 )
2021-07-19 17:28:21 +08:00
smallv0221
243cdd7197
Fix plato-2 and plato-mini dtype bug ( #767 )
...
* fix unified transformer dtype problem
* fix win dtype bug
* Fix plato-2 and plato-mini dtype bug
2021-07-19 16:47:34 +08:00
liyueyang
0e7fe59296
change varname,set default value for pool_act
2021-07-19 05:53:48 +00:00
wawltor
147a943383
add the download check for the taskflow ( #758 )
...
* add the download check for tht taskflow
* update the taskflow download message
* update the user generate for the paddlenlp
2021-07-18 19:12:53 +08:00
liu zhengxi
edde6aab2a
Static transformer support custom dataset ( #757 )
...
* fix static
* update
Co-authored-by: Guo Sheng <whucsgs@163.com >
2021-07-16 11:21:37 +08:00
liu zhengxi
cc7869ef81
Fix decoding sample ( #752 )
...
* fix dcoding sample
* fix
2021-07-16 10:35:53 +08:00
wawltor
29d56ee3e4
update the wordtag doc ( #753 )
2021-07-15 14:26:57 +08:00
wawltor
6552a58021
fix the example doc for the taskflow ( #748 )
2021-07-14 17:25:05 +08:00
Jack Zhou
5afc790de2
remove squeeze to avoid changing 1D-tensor to scalar ( #749 )
2021-07-14 17:24:43 +08:00
jm12138
fe42fea63f
Del self in GenerationMixin. ( #746 )
...
Del self in GenerationMixin.
2021-07-14 15:29:47 +08:00
smallv0221
3dd0bd4a64
fix unified transformer dtype problem ( #747 )
...
* fix unified transformer dtype problem
* fix win dtype bug
2021-07-14 15:18:00 +08:00
wawltor
f61a2940ae
update the some functions for the taskflow ( #726 )
...
* update the function for the taskflow
* update the examples for the taskflow
* update the Text2Knowledge to WordTag
* fix the usage in taskflow
* update the usage for the taskflow
2021-07-13 22:58:04 +08:00
Steffy-zxf
7a53214f94
add ernie text cls test script ( #733 )
2021-07-13 19:40:29 +08:00
tianxin
3fdb1fde1a
Fix tiny bug ( #740 )
...
* add FewCLUE 9 datasets
* fix a bug for tnews
2021-07-13 19:40:05 +08:00
liyueyang
a96c61f77d
Add SimBERT for text matching ( #706 )
...
* add SimBERT
* add with_pool for BertModel
* add SimBERT
* add SimBERT
* add SimBERT
* add SimBERT
* add SimBERT
* add SimBERT
* fix some problem in README.md
* fix the description of simbert
* fix the description of simbert
* fix the description of simbert
* fix the description of simbert
* fix the description of simbert
2021-07-13 19:38:57 +08:00
liu zhengxi
c59e49623f
Add transformer decoder for unified transformer ( #637 )
...
* add transformer decoder
2021-07-12 17:11:51 +08:00
pigzhang
9eb9e23b01
Update day03.md ( #730 )
...
111行if语句写错了
2021-07-12 14:05:32 +08:00
wawltor
fe021a9878
Update issue templates
2021-07-12 11:26:32 +08:00
wawltor
79a3ff410a
Update issue templates
2021-07-12 11:22:17 +08:00
wawltor
8dbdd55221
Update issue templates
2021-07-12 11:21:05 +08:00
wawltor
4c1b86fbeb
Update issue templates
2021-07-12 11:16:44 +08:00
wawltor
280bf30d63
Update issue templates
2021-07-12 11:12:40 +08:00
wawltor
a3a1edf097
Update issue templates
2021-07-12 11:11:50 +08:00
wawltor
8ebbe6e52e
Merge pull request #727 from wawltor/fix_taskflow_model
...
add the taskflow model.py
2021-07-11 16:00:17 +08:00
wawltor
eebcd42c15
add the taskflow model.py
2021-07-11 15:57:45 +08:00
liu zhengxi
39d6cf6649
Add custom dataset ability for transformer ( #711 )
...
* add custom dataset ability for transformer
* update
* list support
* help update
Co-authored-by: Zeyu Chen <chenzeyu01@baidu.com >
2021-07-10 18:19:03 +08:00
yingyibiao
95bb34ce9c
Add model contribution mechanism ( #607 )
...
* adds model contribution mechanism
* modify importing_awesome_pretrained_models doc
* pr required fils
* update
2021-07-09 20:25:49 +08:00
wawltor
034e728e01
Add the models api for the first version ( #686 )
...
* add the models api for the first version
* optimize the models api
* Add the downloader for the taskflow
* optimize the taskflow api
2021-07-09 19:59:01 +08:00
liu zhengxi
7f694d2956
enhance transformer apis ( #708 )
2021-07-09 19:10:11 +08:00
wawltor
ef86475e11
add the string ops for the fast tokenizer ( #718 )
2021-07-09 17:36:00 +08:00
Jiaqi Liu
f6047d2b91
fix vae readme ( #720 )
2021-07-09 17:34:54 +08:00
smallv0221
a1b7bf6f31
fix unified transformer dtype problem ( #721 )
2021-07-09 16:56:52 +08:00
Jack Zhou
97d5a5bb02
Add hyp thunews ( #712 )
...
* add hyp dataset
* add thucnews
* add more comments
* fix some thucnews dataset label path
* add THUCNews, HYP dataset list
* remove LABELS member
Co-authored-by: smallv0221 <33639025+smallv0221@users.noreply.github.com >
2021-07-09 11:35:42 +08:00
Jiaqi Liu
21b0cf4fd7
update tinybert png ( #714 )
2021-07-08 16:10:04 +08:00
Zhong Hui
7c76b2f611
GPT. refine args print. ( #701 )
2021-07-07 11:17:05 +08:00
Linjie Chen
7be95b5840
Merge pull request #674 from linjieccc/textcnn
...
[TextCNN] Add TextCNN example for sentiment analysis
2021-07-07 01:07:55 +08:00
Linjie Chen
e50ae68dd0
Merge branch 'develop' into textcnn
2021-07-07 00:28:46 +08:00
Zhong Hui
58db4d0547
GPT. use ClipGradByGlobalNorm, update unittest ( #693 )
2021-07-06 19:40:37 +08:00
smallv0221
8865c32103
fix plato2 readme ( #694 )
...
* remove dead code
* Add finetuned ernie model
* fix nameing
* fix plato2 readme
2021-07-06 13:22:33 +08:00
linjieccc
014f507c3e
delete char lower process for device choice
2021-07-06 03:00:07 +00:00
linjieccc
70161cda3b
fix README
2021-07-05 03:28:57 +00:00
linjieccc
7e60629a7d
fix comments
2021-07-05 03:21:46 +00:00
linjieccc
1fac669b73
change data load mode and add data process file
2021-07-04 10:21:02 +00:00
Linjie Chen
969eb551eb
Merge branch 'PaddlePaddle:develop' into textcnn
2021-07-04 18:17:16 +08:00
liu zhengxi
0b4cc4c073
make cmake friendly to user ( #668 )
2021-07-03 11:52:05 +08:00
Steffy-zxf
b17a3bd487
drop the test evaluation to adapt to the qianyan-lcqmc dataset ( #684 )
2021-07-03 11:46:57 +08:00
wawltor
0177aa5d32
Merge pull request #681 from wawltor/fix_chnsenticorp
...
fix the link of ChnSentiCorp in the skep task
2021-07-02 17:00:48 +08:00
wawltor
017058999c
fix the link of ChnSentiCorp in the skep task
2021-07-02 15:19:00 +08:00
Linjie Chen
9b7749615a
Merge branch 'develop' into textcnn
2021-07-02 11:36:12 +08:00
Zhong Hui
a489bd8b25
bug fix on windows, default convert to int64. ( #676 )
2021-07-01 19:03:23 +08:00
linjieccc
6ee55b7e14
Add TextCNN for sentiment analysis
2021-07-01 06:41:35 +00:00
wawltor
73cc8f8610
change the position encoding in the ernie-ctm ( #656 )
...
* change the position encoding in the ernie-ctm
* change the summary_sum to cls_num
2021-07-01 10:55:57 +08:00
Zhong Hui
aa596fbc71
[GPT] Add MP enhancement and accuracy check scripts. ( #624 )
...
* gpt2 parallel emb
* parallel matmul
* split multi head attention
* split attention head
* split cross entropy
* fuse qkv
* update column row parallel linear
* GPT. add unittest.
Co-authored-by: WangXi <wangxi16@baidu.com >
2021-06-30 19:49:55 +08:00
ceci3
de616d0ae5
fix dataset is stsb ( #666 )
2021-06-29 18:04:51 +08:00