├── README.md ├── requirements.txt ├── scripts ├── T-patch.py ├── ft.py ├── main.py ├── main.sh ├── train_bart_seq2seq.py ├── train_bart_seq2seq.sh ├── train_bert_fever.py └── train_bert_fever.sh └── src ├── __init__.py ├── __pycache__ ├── __init__.cpython-39.pyc └── utils.cpython-39.pyc ├── dataset ├── __init__.py ├── __pycache__ │ ├── SeqEditDataset.cpython-39.pyc │ ├── __init__.cpython-39.pyc │ ├── fever_dataloader.cpython-39.pyc │ ├── pronouns_en_dr_dataloader.cpython-39.pyc │ └── seq2seq_dataloader.cpython-39.pyc ├── fever_dataloader.py ├── sme_dataset.py └── zsre_dataloader.py ├── models ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-39.pyc │ ├── editors.cpython-39.pyc │ ├── fever_modules.cpython-39.pyc │ └── seq2seq_modules.cpython-39.pyc ├── class_modules.py ├── patch.py └── seq2seq_modules.py └── utils.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/README.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/T-patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/scripts/T-patch.py -------------------------------------------------------------------------------- /scripts/ft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/scripts/ft.py -------------------------------------------------------------------------------- /scripts/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/scripts/main.py -------------------------------------------------------------------------------- /scripts/main.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/scripts/main.sh -------------------------------------------------------------------------------- /scripts/train_bart_seq2seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/scripts/train_bart_seq2seq.py -------------------------------------------------------------------------------- /scripts/train_bart_seq2seq.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | python3 scripts/train_bart_seq2seq.py --seed=$SEED -------------------------------------------------------------------------------- /scripts/train_bert_fever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/scripts/train_bert_fever.py -------------------------------------------------------------------------------- /scripts/train_bert_fever.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | python3 scripts/train_bert_fever.py --seed=$SEED -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /src/__pycache__/utils.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/__pycache__/utils.cpython-39.pyc -------------------------------------------------------------------------------- /src/dataset/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/dataset/__pycache__/SeqEditDataset.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/__pycache__/SeqEditDataset.cpython-39.pyc -------------------------------------------------------------------------------- /src/dataset/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /src/dataset/__pycache__/fever_dataloader.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/__pycache__/fever_dataloader.cpython-39.pyc -------------------------------------------------------------------------------- /src/dataset/__pycache__/pronouns_en_dr_dataloader.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/__pycache__/pronouns_en_dr_dataloader.cpython-39.pyc -------------------------------------------------------------------------------- /src/dataset/__pycache__/seq2seq_dataloader.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/__pycache__/seq2seq_dataloader.cpython-39.pyc -------------------------------------------------------------------------------- /src/dataset/fever_dataloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/fever_dataloader.py -------------------------------------------------------------------------------- /src/dataset/sme_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/sme_dataset.py -------------------------------------------------------------------------------- /src/dataset/zsre_dataloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/dataset/zsre_dataloader.py -------------------------------------------------------------------------------- /src/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/models/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /src/models/__pycache__/editors.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/__pycache__/editors.cpython-39.pyc -------------------------------------------------------------------------------- /src/models/__pycache__/fever_modules.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/__pycache__/fever_modules.cpython-39.pyc -------------------------------------------------------------------------------- /src/models/__pycache__/seq2seq_modules.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/__pycache__/seq2seq_modules.cpython-39.pyc -------------------------------------------------------------------------------- /src/models/class_modules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/class_modules.py -------------------------------------------------------------------------------- /src/models/patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/patch.py -------------------------------------------------------------------------------- /src/models/seq2seq_modules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/models/seq2seq_modules.py -------------------------------------------------------------------------------- /src/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZeroYuHuang/Transformer-Patcher/HEAD/src/utils.py --------------------------------------------------------------------------------