Coder Social home page Coder Social logo

openxaiproject / neuralpipeline_dstc8 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaist-ailab/neuralpipeline_dstc8

11.0 1.0 0.0 117.79 MB

Dockerfile 0.02% Python 84.33% HTML 0.28% Perl 0.18% Jsonnet 0.43% OpenEdge ABL 14.71% Makefile 0.02% Batchfile 0.03% Shell 0.01%

neuralpipeline_dstc8's Introduction

NeuralPipeline_DSTC8

Our code is developed on the ConvLab github page (https://github.com/ConvLab/ConvLab).

Environment setting

conda version : 4.7.10 python version : 3.6.5

Before creating conda environment, please edit env.yml to fit on your conda root path. For example, '/home/jglee/anaconda'.

conda env create -f env.yml
conda activate neural_pipeline

How to train

The working directory is $ROOT/Convlab. The description below follows the working directory.

cd ConvLab # (working directory)
cd data/multiwoz
unzip total_v4.zip
unzip val_v4.zip
cd ../../  # (working directory)
python -m torch.distributed.launch --nproc_per_node=${#OfGPUs, e.g.2} convlab/modules/e2e/multiwoz/Transformer/train.py --dataset_path=./data/multiwoz/ --dataset_cache=./dataset_cache --model_checkpoint=gpt2 --model_version=v4 --lm_coef=2.0 --max_history=20 --gradient_accumulation_steps=4

-m torch.distributed.launch --nproc_per_node=${#OfGPUs} part is to use multi GPUs.

Please refer to huggingface's TransferTransfo (https://github.com/huggingface/transfer-learning-conv-ai.)

save folder path: /runs/${DATES}_${HOSTNAME} e.g. Mar03_13-31-00_hostname

How to test on ConvLab

In convlab/modules/e2e/multiwoz/Transformer/Transformer.py, the Transformer class manages our algorithm.

The weight files we fine-tuned will be downloaded into /models folder when running

python run.py submission.json submission${SUBMISSION_NUMBER e.g.4} eval

If you want to evaluate your own fine-tuned weights, please handle the "model_checkpoint" on the right submission name (e.g. submission4) in 'convlab/spec/submission.json'.

Credit

Our code is based on huggingface's TransferTransfo (https://github.com/huggingface/transfer-learning-conv-ai.)

neuralpipeline_dstc8's People

Contributors

jeonggwanlee avatar dh95 avatar

Stargazers

 avatar Hyukdong Kim avatar Soyeon Kim avatar  avatar Dahee Kwon avatar DJ Eom avatar  avatar  avatar Bumjin Park avatar Seongwoo Lim avatar Sohee Cho avatar

Watchers

James Cloos 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.