Skip to content

ruiqili001/DMA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialogue Malevolence Attack

Running


Requirements

​ python >= 3.7

​ pytorch == 1.12.1

​ Transformers >= 3.3.0

Download Datasets

​ 1. We use MDRDC dataset for training and testing. And we rename the path as '../MDRDC_DATASET'.

​ 2. Please download pretrain model bert and gpt2.

3.Replace the bert_model_path and gpt2_model_path in config_n.py

​ 4.run in command line

	sbatch preprocess.sh

Pretraining and Training

Pretraining
	sbatch pretrain.sh
Training
	sbatch train.sh

You can modify the config_n.py for parameter modification or in command line by add argument.

TDGPN

	sbatch tdgpn.sh

ToxicBuddy

	sbatch toxicbuddy.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published