-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
115d69d
commit 8980d64
Showing
43 changed files
with
1,001 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
base\_augment | ||
====================================== | ||
|
||
.. automodule:: paddlenlp.dataaug.base_augment | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
paddlenlp.dataaug | ||
========================= | ||
|
||
.. automodule:: paddlenlp.dataaug | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.dataaug.base_augment | ||
paddlenlp.dataaug.word_delete | ||
paddlenlp.dataaug.word_insert | ||
paddlenlp.dataaug.word_substitute | ||
paddlenlp.dataaug.word_swap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
word\_delete | ||
===================================== | ||
|
||
.. automodule:: paddlenlp.dataaug.word_delete | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
word\_insert | ||
===================================== | ||
|
||
.. automodule:: paddlenlp.dataaug.word_insert | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
word\_substitute | ||
========================================= | ||
|
||
.. automodule:: paddlenlp.dataaug.word_substitute | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
word\_swap | ||
=================================== | ||
|
||
.. automodule:: paddlenlp.dataaug.word_swap | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
code\_generation | ||
========================================== | ||
|
||
.. automodule:: paddlenlp.taskflow.code_generation | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
text2image\_generation | ||
================================================ | ||
|
||
.. automodule:: paddlenlp.taskflow.text2image_generation | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
modeling | ||
============================================= | ||
|
||
.. automodule:: paddlenlp.transformers.artist.modeling | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
artist | ||
===================================== | ||
|
||
.. automodule:: paddlenlp.transformers.artist | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.transformers.artist.modeling | ||
paddlenlp.transformers.artist.tokenizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tokenizer | ||
============================================== | ||
|
||
.. automodule:: paddlenlp.transformers.artist.tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
modeling | ||
============================================== | ||
|
||
.. automodule:: paddlenlp.transformers.codegen.modeling | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
codegen | ||
====================================== | ||
|
||
.. automodule:: paddlenlp.transformers.codegen | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.transformers.codegen.modeling | ||
paddlenlp.transformers.codegen.tokenizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tokenizer | ||
=============================================== | ||
|
||
.. automodule:: paddlenlp.transformers.codegen.tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
modeling | ||
================================================ | ||
|
||
.. automodule:: paddlenlp.transformers.dallebart.modeling | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
dallebart | ||
======================================== | ||
|
||
.. automodule:: paddlenlp.transformers.dallebart | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.transformers.dallebart.modeling | ||
paddlenlp.transformers.dallebart.tokenizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tokenizer | ||
================================================= | ||
|
||
.. automodule:: paddlenlp.transformers.dallebart.tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/paddlenlp.transformers.ernie_m.faster_tokenizer.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
faster\_tokenizer | ||
======================================================== | ||
|
||
.. automodule:: paddlenlp.transformers.ernie_m.faster_tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
modeling | ||
================================================= | ||
|
||
.. automodule:: paddlenlp.transformers.gau_alpha.modeling | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
gau\_alpha | ||
========================================= | ||
|
||
.. automodule:: paddlenlp.transformers.gau_alpha | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.transformers.gau_alpha.modeling | ||
paddlenlp.transformers.gau_alpha.tokenizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tokenizer | ||
================================================== | ||
|
||
.. automodule:: paddlenlp.transformers.gau_alpha.tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
model\_outputs | ||
============================================ | ||
|
||
.. automodule:: paddlenlp.transformers.model_outputs | ||
:members: | ||
:no-undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
modeling | ||
========================================== | ||
|
||
.. automodule:: paddlenlp.transformers.opt.modeling | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
opt | ||
================================== | ||
|
||
.. automodule:: paddlenlp.transformers.opt | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.transformers.opt.modeling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docs/source/paddlenlp.transformers.sentencepiece_model_pb2.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sentencepiece\_model\_pb2 | ||
======================================================= | ||
|
||
.. automodule:: paddlenlp.transformers.sentencepiece_model_pb2 | ||
:members: | ||
:no-undoc-members: |
7 changes: 7 additions & 0 deletions
7
docs/source/paddlenlp.transformers.tinybert.faster_tokenizer.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
faster\_tokenizer | ||
======================================================== | ||
|
||
.. automodule:: paddlenlp.transformers.tinybert.faster_tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
modeling | ||
========================================== | ||
|
||
.. automodule:: paddlenlp.transformers.xlm.modeling | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
xlm | ||
================================== | ||
|
||
.. automodule:: paddlenlp.transformers.xlm | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paddlenlp.transformers.xlm.modeling | ||
paddlenlp.transformers.xlm.tokenizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tokenizer | ||
=========================================== | ||
|
||
.. automodule:: paddlenlp.transformers.xlm.tokenizer | ||
:members: | ||
:no-undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.