Giter Club home page Giter Club logo

g_fair_prompting's Introduction

Fairness-guided Few-shot Prompting for Large Language Models

This repository is the code for paper "Fairness-guided Few-shot Prompting for Large Language Models".

Setup

In a conda env with pytorch / cuda available, run:

pip install -r requirements.txt

Download

For convenience, we pack the dataset and it is available on https://drive.google.com/file/d/1vyomvGBrXEnzE21P-nJr20OeZhF4zy5h/view?usp=sharing. Please change the ROOT_DIR in utils.py after downloading the datasets. The pretrained LLM BLOOM is available on https://huggingface.co/bigscience/bloom.

Inference

The provided start.sh can be run on multi-gpu automatically and you need 8*A100 GPUs for inference:

sh ./start.sh bloom

Reference

@inproceedings{
ma2023fairness,
title={Fairness-guided Few-shot Prompting for Large Language Models},
author={Huan Ma and Changqing Zhang and Yatao Bian and Lemao Liu and Zhirui Zhang and Peilin Zhao and Shu Zhang and Huazhu Fu and Qinghua Hu and Bingzhe Wu},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems (NeurIPS)},
year={2023},
}

g_fair_prompting's People

Contributors

mahuanaaa avatar

Stargazers

chenpeng avatar  avatar 冯龙宇 avatar  avatar HongJu Jeong avatar Xinlin Zhuang avatar Peng Wang avatar victor avatar 爱可可-爱生活 avatar Chengwei Qin avatar hanruisong avatar Yoon, Seungje avatar  avatar Huazhu FU avatar Ayhan Uyanik avatar Shiyue Xu avatar Bingchen Zhao avatar S5248 avatar  avatar Szymon Tworkowski avatar Tianci Liu avatar Xin Du avatar hour1 avatar slzz0718 avatar  avatar Xianyu Chen avatar  avatar Richard avatar Bingzhe avatar 俞航 avatar Zeyu Qin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.