Tested using Python 3.11.0, miniconda 23.1.0, git 2.25.1
fairness withconda env create -f environment.yml
HF_ACCESS_TOKEN to your huggingface API token and OPENAI_API_KEY to your openai API keyTRANSFORMERS_CACHE to your lab's transformer cache especially on HPC environments!We use 3 datasets.
To setup bias in bios run these commands
wget https://storage.googleapis.com/ai2i/nullspace/biasbios/train.pickle -P path/to/data/folder/
wget https://storage.googleapis.com/ai2i/nullspace/biasbios/dev.pickle -P path/to/data/folder/
wget https://storage.googleapis.com/ai2i/nullspace/biasbios/test.pickle -P path/to/data/folder/
To setup HateExplain run this command
git clone https://github.com/hate-alert/HateXplain.git
There are a couple steps to setup twitter aae. We follow the steps found here.
We reproduce them here for your convenience
wget http://slanglab.cs.umass.edu/TwitterAAE/TwitterAAE-full-v1.zip
demog-text-removal to prepare the datahttps://github.com/yanaiela/demog-text-removal.git
demog-text-removal (Requires python 2.7)conda create -n adv-demog-text python==2.7 anaconda
source activate adv-demog-text
pip install -r requirements.txt
make_data.py found in demog-text-removal/src/data with adv-demog-text environment activatedpython make_data.py /path/to/downloaded/twitteraae_all /path/to/project/data/processed/sentiment_race sentiment race
We use a toml config (WIP) to run the main function. You can take a look at the one provided to get a feel for how to use it
To run this program, activate fairness conda environment and run
python -m src --config /path/to/config.toml
We include tests for sanity checking to run these
python -m pytest
LLaMa models and Alpaca Models have been erroring out recently but we are still going to experiment with them
To fit them into the API, I have modified the hfoffline.py file to compensate for their weirdness
I have successfully
I have not successfully generated anything because of CUDA OOM and CUBLAS not initalized without trying to increase gpus :(
I have not tried
100 commits
5 commits
Jupyter Notebook
73.2%
Python
26.8%
Tested using Python 3.11.0, miniconda 23.1.0, git 2.25.1
fairness withconda env create -f environment.yml
HF_ACCESS_TOKEN to your huggingface API token and OPENAI_API_KEY to your openai API keyTRANSFORMERS_CACHE to your lab's transformer cache especially on HPC environments!We use 3 datasets.
To setup bias in bios run these commands
wget https://storage.googleapis.com/ai2i/nullspace/biasbios/train.pickle -P path/to/data/folder/
wget https://storage.googleapis.com/ai2i/nullspace/biasbios/dev.pickle -P path/to/data/folder/
wget https://storage.googleapis.com/ai2i/nullspace/biasbios/test.pickle -P path/to/data/folder/
To setup HateExplain run this command
git clone https://github.com/hate-alert/HateXplain.git
There are a couple steps to setup twitter aae. We follow the steps found here.
We reproduce them here for your convenience
wget http://slanglab.cs.umass.edu/TwitterAAE/TwitterAAE-full-v1.zip
demog-text-removal to prepare the datahttps://github.com/yanaiela/demog-text-removal.git
demog-text-removal (Requires python 2.7)conda create -n adv-demog-text python==2.7 anaconda
source activate adv-demog-text
pip install -r requirements.txt
make_data.py found in demog-text-removal/src/data with adv-demog-text environment activatedpython make_data.py /path/to/downloaded/twitteraae_all /path/to/project/data/processed/sentiment_race sentiment race
We use a toml config (WIP) to run the main function. You can take a look at the one provided to get a feel for how to use it
To run this program, activate fairness conda environment and run
python -m src --config /path/to/config.toml
We include tests for sanity checking to run these
python -m pytest
LLaMa models and Alpaca Models have been erroring out recently but we are still going to experiment with them
To fit them into the API, I have modified the hfoffline.py file to compensate for their weirdness
I have successfully
I have not successfully generated anything because of CUDA OOM and CUBLAS not initalized without trying to increase gpus :(
I have not tried
100 commits
5 commits
Jupyter Notebook
73.2%
Python
26.8%