-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(model and test): 在model模块中新增prompt bert,并且在test中新增prompt bert的例子
- Loading branch information
Showing
10 changed files
with
437 additions
and
5 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
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
File renamed without changes.
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
File renamed without changes.
Empty file.
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,21 @@ | ||
from ark_nlp.dataset import PromptDataset as Dataset | ||
from ark_nlp.dataset import PromptDataset as PromptBertDataset | ||
|
||
from ark_nlp.processor.tokenizer.transfomer import PromptMLMTransformerTokenizer as Tokenizer | ||
from ark_nlp.processor.tokenizer.transfomer import PromptMLMTransformerTokenizer as PromptBertTokenizer | ||
from ark_nlp.processor.tokenizer.transfomer import PromptMLMTransformerTokenizer | ||
|
||
from ark_nlp.nn import BertConfig as PromptBertConfig | ||
from ark_nlp.nn import BertConfig as ModuleConfig | ||
|
||
from ark_nlp.nn import BertForPromptMaskedLM as PromptBert | ||
from ark_nlp.nn import BertForPromptMaskedLM as Module | ||
|
||
from ark_nlp.factory.optimizer import get_default_bert_optimizer as get_default_model_optimizer | ||
from ark_nlp.factory.optimizer import get_default_bert_optimizer as get_default_prompt_bert_optimizer | ||
|
||
from ark_nlp.factory.task import PromptMLMTask as Task | ||
from ark_nlp.factory.task import PromptMLMTask as PromptBertMLMTask | ||
|
||
from ark_nlp.factory.predictor import PromptMLMPredictor as Predictor | ||
from ark_nlp.factory.predictor import PromptMLMPredictor as PromptBertMLMPredictor |
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
Oops, something went wrong.