OpenDeltaMirror/examples/tutorial
shengdinghu cfde7552f1 fixed #52 2023-03-11 09:26:45 +00:00
..
0_basic.py fixed #52 2023-03-11 09:26:45 +00: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 fix tutorial visualize 2022-11-21 03:24:15 +00:00
2_with_bmtrain.sh support bmtrain 2022-10-23 08:42:21 +00:00
README.md fix bmtrain install 2022-11-21 03:32:25 +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

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