OpenDeltaMirror/examples/tutorial
shengdinghu ce7f992864 support bmtrain 2022-10-23 08:42:21 +00:00
..
0_basic.py first commit 2022-02-14 21:19:03 +08:00
0_interactive.py fix strip 2022-06-10 17:09:45 +08:00
0_regex.py lora 2022-02-20 17:24:59 +08:00
1_with_openprompt.py first commit 2022-02-14 21:19:03 +08:00
2_with_bmtrain.py support bmtrain 2022-10-23 08:42:21 +00:00
2_with_bmtrain.sh support bmtrain 2022-10-23 08:42:21 +00:00
README.md support bmtrain 2022-10-23 08:42:21 +00:00

README.md

0_basic.py

The scripts for docs/basic_usage

1_interactive

Using interactive module selection We suggest run it in vscode terminal where port mapping is automatic done for you.

1_with_openprompt.py

Integrate opendelta with openprompt.

requirement:

pip install openprompt

2_with_bmtrain.py

  1. install necessary packages:
pip install git+https://github.com/OpenBMB/BMTrain.git
pip install git+git@github.com:OpenBMB/ModelCenter.git
  1. download dataset from https://super.gluebenchmark.com/tasks, e.g.,
mkdir down_data
cd down_data
wget https://dl.fbaipublicfiles.com/glue/superglue/data/v2/BoolQ.zip
unzip BoolQ.zip
  1. Run the shell scripts, change NNODES,GPUS_PER_NODE according to your computational resources.
bash 2_with_bmtrain.sh