-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
81 additions
and
45 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# PEFT (Prompt Engineering with Fine-Tuning) | ||
|
||
MindNLP's PEFT (Prompt Engineering with Fine-Tuning) is a methodology for fine-tuning natural language models using prompts. It allows users to tailor their models for specific tasks or domains by providing customized prompts, enabling better performance on downstream tasks. | ||
|
||
## Introduction | ||
|
||
PEFT leverages the power of prompts, which are short natural language descriptions of the task, to guide the model's understanding and behavior. By fine-tuning with prompts, users can steer the model's attention and reasoning towards relevant information, improving its performance on targeted tasks. | ||
|
||
## Supported PEFT Algorithms | ||
|
||
| Algorithm | Description | | ||
|------------------|--------------------------------------------------------------| | ||
| [AdaLoRA](./tuners/adalora.md) | Adaptable Prompting with Learned Rationales (AdaLoRA) | | ||
| [Adaption_Prompt](./tuners/adaption_prompt.md) | Adaptation Prompting | | ||
| [IA3](./tuners/ia3.md) | Iterative Alignments for Adaptable Alignment and Prompting (IA3) | | ||
| [LoKr](./tuners/lokr.md) | Large-scale k-shot Knowledge Representation (LoKr) | | ||
| [LoRA](./tuners/lora.md) | Learnable Redirection of Attention (LoRA) | | ||
| [Prompt Tuning](./tuners/prompt_tuning.md) | Prompt Tuning fine-tunes models by optimizing the prompts used during fine-tuning. | | ||
|
||
Each algorithm offers unique approaches to prompt engineering and fine-tuning, allowing users to adapt models to diverse tasks and domains effectively. | ||
|
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
docs/en/api/peft/ADAPTERS/AdaLoRA.md → docs/en/api/peft/tuners/adalora.md
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
:::mindnlp.peft.tuners.adalora.config.AdaLoraConfig | ||
::: mindnlp.peft.tuners.adalora.model.AdaLoraModel | ||
:::mindnlp.peft.tuners.adalora.model.AdaLoraModel |
2 changes: 1 addition & 1 deletion
2
docs/en/api/peft/ADAPTERS/Adaption_Prompt.md → docs/en/api/peft/tuners/adaption_prompt.md
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
:::mindnlp.peft.tuners.adaption_prompt.config.AdaptionPromptConfig | ||
::: mindnlp.peft.tuners.adaption_prompt.model.AdaptionPromptModel | ||
:::mindnlp.peft.tuners.adaption_prompt.model.AdaptionPromptModel |
2 changes: 1 addition & 1 deletion
2
docs/en/api/peft/ADAPTERS/IA3.md → docs/en/api/peft/tuners/ia3.md
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
:::mindnlp.peft.tuners.ia3.config | ||
::: mindnlp.peft.tuners.ia3.model | ||
:::mindnlp.peft.tuners.ia3.model |
2 changes: 1 addition & 1 deletion
2
docs/en/api/peft/ADAPTERS/LoKr.md → docs/en/api/peft/tuners/lokr.md
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
:::mindnlp.peft.tuners.lokr.config | ||
::: mindnlp.peft.tuners.lokr.model | ||
:::mindnlp.peft.tuners.lokr.model |
2 changes: 1 addition & 1 deletion
2
docs/en/api/peft/ADAPTERS/LoRA.md → docs/en/api/peft/tuners/lora.md
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
:::mindnlp.peft.tuners.lora.config | ||
::: mindnlp.peft.tuners.lora.model | ||
:::mindnlp.peft.tuners.lora.model |
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,2 @@ | ||
:::mindnlp.peft.tuners.prompt_tuning.config | ||
:::mindnlp.peft.tuners.prompt_tuning.model |
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
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,2 @@ | ||
gradio | ||
mdtex2html |
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 |
---|---|---|
|
@@ -10,27 +10,38 @@ nav: | |
- Supported Models: supported_models.md | ||
- How-To Contribute: contribute.md | ||
- API Reference: | ||
- accelerate: api/accelerate.md | ||
- data: api/data.md | ||
- dataset: api/dataset.md | ||
- engine: api/engine.md | ||
- modules: api/modules.md | ||
- parallel: api/parallel.md | ||
- peft: | ||
MAIN CLASSES: | ||
PEFT model: api/peft/MAIN_CLASSES/peft_model.md | ||
PEFT mapping: api/peft/MAIN_CLASSES/mapping.md | ||
Configuration: api/peft/MAIN_CLASSES/config.md | ||
ADAPTERS: | ||
AdaLoRA: api/peft/ADAPTERS/AdaLoRA.md | ||
Adaption_Prompt: api/peft/ADAPTERS/Adaption_Prompt.md | ||
IA3: api/peft/ADAPTERS/IA3.md | ||
LoKr: api/peft/ADAPTERS/LoKr.md | ||
LoRA: api/peft/ADAPTERS/LoRA.md | ||
- sentence: api/sentence.md | ||
- transformers: api/transformers.md | ||
- trl: api/trl.md | ||
- utils: api/utils.md | ||
- Accelerate: api/accelerate.md | ||
- Data: api/data.md | ||
- Dataset: api/dataset.md | ||
- Engine: api/engine.md | ||
- Modules: api/modules.md | ||
- Parallel: api/parallel.md | ||
- PEFT: | ||
- api/peft/index.md | ||
- tuners: | ||
AdaLoRA: api/peft/tuners/adalora.md | ||
Adaption_Prompt: api/peft/tuners/adaption_prompt.md | ||
IA3: api/peft/tuners/ia3.md | ||
LoKr: api/peft/tuners/lokr.md | ||
LoRA: api/peft/tuners/lora.md | ||
Prompt tuning: api/peft/tuners/prompt_tuning.md | ||
- utils: | ||
- merge_utils: api/peft/utils/merge_utils.md | ||
- config: api/peft/config.md | ||
- mapping: api/peft/mapping.md | ||
- peft_model: api/peft/peft_model.md | ||
|
||
- Sentence: api/sentence.md | ||
- Transformers: | ||
- api/transformers/index.md | ||
- generation: | ||
- api/transforemrs/generation/index.md | ||
- models: | ||
- api/transforemrs/models/index.md | ||
- pipeline: | ||
- api/transforemrs/pipeline/index.md | ||
- TRL: api/trl.md | ||
- Utils: api/utils.md | ||
- Notes: | ||
- Change Log: notes/changelog.md | ||
- Code of Conduct: notes/code_of_conduct.md | ||
|
@@ -41,24 +52,26 @@ theme: | |
palette: | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
primary: black | ||
primary: indigo | ||
accent: indigo | ||
toggle: | ||
icon: material/weather-sunny | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
primary: black | ||
accent: indigo | ||
toggle: | ||
icon: material/weather-night | ||
name: Switch to light mode | ||
icon: material/brightness-4 | ||
name: Switch to system preference | ||
features: | ||
# - navigation.instant # see https://github.com/ultrabug/mkdocs-static-i18n/issues/62 | ||
- navigation.tracking | ||
- navigation.tabs | ||
- navigation.sections | ||
- navigation.indexes | ||
- navigation.top | ||
- navigation.footer | ||
- navigation.path | ||
- toc.follow | ||
- search.highlight | ||
- search.share | ||
|
@@ -69,6 +82,9 @@ theme: | |
- content.code.copy | ||
- content.code.select | ||
- content.code.annotations | ||
favicon: assets/favicon.ico | ||
icon: | ||
logo: logo | ||
|
||
markdown_extensions: | ||
# Officially Supported Extensions | ||
|
@@ -146,9 +162,9 @@ plugins: | |
extra: | ||
generator: false | ||
social: | ||
# - icon: fontawesome/solid/paper-plane | ||
# link: mailto:[email protected] | ||
# - icon: fontawesome/brands/github | ||
# link: https://github.com/mindspore-lab/mindcv | ||
# - icon: fontawesome/brands/zhihu | ||
# link: https://www.zhihu.com/people/mindsporelab | ||
- icon: fontawesome/solid/paper-plane | ||
link: mailto:[email protected] | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/mindspore-lab/mindnlp | ||
- icon: fontawesome/brands/zhihu | ||
link: https://www.zhihu.com/people/lu-yu-feng-46-1 |