Code Monkey home page Code Monkey logo

moral-uncertainty's Introduction

moral-uncertainty

Dataset and baselines for the Moral Uncertainty benchmark. See the Moral Uncertainty website for details.

Dataset

You can download the dataset files from the links in the table:

Split Download # examples
Train train.csv 13,910
Test test.csv 2,771

Baselines

The code for training our baseline models is in moral-uncertainty/baselines. Our specific baselines can be reproduced with:

# bert-base-uncased
python tune.py --ngpus 1 --model bert-base-uncased --learning_rate 3e-5 --batch_size 16 --nepochs 4 --gradient_acc_steps 1 --verbose

# bert-large-uncased
python tune.py --ngpus 1 --model bert-large-uncased --learning_rate 5e-6 --batch_size 16 --nepochs 4 --gradient_acc_steps 1 --verbose

# roberta-large
python tune.py --ngpus 1 --model roberta-large --learning_rate 1e-5 --batch_size 16 --nepochs 4 --gradient_acc_steps 1 --verbose

# albert-xxlarge-v2
python tune.py --ngpus 1 --model albert-xxlarge-v2 --learning_rate 3e-5 --batch_size 16 --nepochs 4 --gradient_acc_steps 1 --verbose

# microsoft/deberta-v3-large
python tune.py --ngpus 1 --model microsoft/deberta-v3-large --learning_rate 1e-5 --batch_size 16 --nepochs 4 --gradient_acc_steps 1 --verbose

# microsoft/deberta-v2-xxlarge
python tune.py --ngpus 1 --model microsoft/deberta-v2-xxlarge --learning_rate 1e-6 --batch_size 8 --nepochs 4 --gradient_acc_steps 1 --verbose

For the GPT-3 baseline, see moral-uncertainty/baselines/finetune_gpt3.ipynb.

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.