Giter Club home page Giter Club logo

story-commonsense-classification's Introduction

story-commonsense-classification

Steps to Reproduce our Results:

  1. Set up your virtual environment on your great-lakes machine and install the requisite packages:
git clone https://github.com/nishukothari/story-commonsense-classification
cd story-commonsense-classification
virtualenv venv
module load python/3.9.7
source venv/bin/activate
pip3 install pandas numpy tensorflow tensorflow_hub tensorflow_text sklearn bert-tensorflow==1.0.1 sentencepiece torch tqdm pickle tabulate
  1. Decide what your task is and submit the requisite SLURM Job:
    a) If you want to use our pretrained models, then first download the trained models from:
    https://drive.google.com/file/d/13XHTlN4E8Gd9A9I1LXel1xxytLsRKWTi/view?usp=sharing
    Then unzip the file and move the contents of the unzipped models folder. That would look something like this:
cd story-commonsense-classification
tar -xvzf models.tar.gz
rm models.tar.gz
mv models/* .
rm -rf models

Lastly, submit a Job as follows:

#!/bin/bash
#SBATCH --partition=gpu
#SBATCH --time=0-00:50:00
#SBATCH --gpus=1
#SBATCH --cpus-per-gpu=2
#SBATCH --mem-per-gpu=16GB

pushd ~/story-commonsense-classification


module load python/3.9.7 cuda/11.2.1 cudnn/11.2-v8.1.0
source venv/bin/activate


python3 test.py

b) If you want to train and test your own models, then submit a Job as follows:

#!/bin/bash
#SBATCH --partition=gpu
#SBATCH --time=0-03:45:00
#SBATCH --gpus=1
#SBATCH --cpus-per-gpu=2
#SBATCH --mem-per-gpu=16GB

pushd ~/story-commonsense-classification


module load python/3.9.7 cuda/11.2.1 cudnn/11.2-v8.1.0
source venv/bin/activate

python3 train.py
python3 test.py

story-commonsense-classification's People

Contributors

nishukothari 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.