-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from FederatedAI/feature-1.2.0-doc_builtin_models
update doc: add builtin models using guide
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
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
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,18 @@ | ||
## Builtin Models | ||
FATE-LLM provide some builtin models, users can use them simply to efficiently train their language models. | ||
To use these models, please read the using tutorial of [ChatGLM-6B Training Guide](./ChatGLM-6B_ds.ipynb) and [GPT2 Training Guide](GPT2-example.ipynb). | ||
After reading the training tutorial above, it's easy to use other models listing in the following tabular by changing `module_name`, `class_name`, `dataset` to `ModuleName`, `ClassName`, `DatasetName` respectively list below. | ||
|
||
|
||
|
||
| Model | ModuleName | ClassName | DataSetName | | ||
| -------------- | ----------------- | --------------------------------- | ---------------- | | ||
| LLaMA-7B | pellm.llama | LLAMAForCausalLM | llama_tokenizer | | ||
| ChatGLM-6B | pellm.chatglm | ChatGLMForConditionalGeneration | glm_tokenizer | | ||
| GPT-2 | pellm.gpt2 | GPT2 | nlp_tokenizer | | ||
| ALBERT | pellm.albert | Albert | nlp_tokenizer | | ||
| BART | pellm.bart | Bart | nlp_tokenizer | | ||
| BERT | pellm.bert | Bert | nlp_tokenizer | | ||
| DeBERTa | pellm.deberta | Deberta | nlp_tokenizer | | ||
| DistilBERT | pellm.distilbert | DistilBert | nlp_tokenizer | | ||
| RoBERTa | pellm.roberta | Roberta | nlp_tokenizer | |