HephaestusProject / pytorch-ReCoSa

MIT License
1 stars 0 forks source link

template

Code Coverage Code style: black

Abstract

Table (v0.2.4)

PPL BLEU(4-grams) BLEU(2-grams)
105.34 0.099 0.214

Training history

OpenAPI로 Inference 하는 방법

  curl -s "http://127.0.0.1:8000/hello"
  curl -X POST "http://127.0.0.1:8000/model" -H "Content-Type: application/json" -d "{\"input_text\":\"thanks! \"}"

Usage

Environment

Training & Evaluate

./train.sh
./evaluate.sh

Project structure

.
├── Dockerfile
├── LICENSE
├── README.md
├── apply.sh
|── conf
│   ├── api
│   │   ├── ReCoSa.yml
│   │   └── ReCoSa_AVSD.yml
│   ├── dataset
│   │   ├── DSTC7_AVSD.yml
│   │   ├── ubuntu.yml
│   │   └── ubuntu_test.yml
│   ├── model
│   │   ├── ReCoSa.yml
│   │   └── ReCoSa_test.yml
│   ├── tokenizer
│   │   ├── added_tokens.json
│   │   ├── merges.txt
│   │   ├── special_tokens_map.json
│   │   ├── tokenizer_config.json
│   │   └── vocab.json
│   └── trainer
│       ├── ReCoSa.yml
│       └── ReCoSa_test.yml
├── configs
│   └── deploying
│       └── latest.yaml
├── coverage.xml
├── data
│   ├── DSTC7_AVSD
│   │   ├── dial.dev
│   │   ├── dial.test
│   │   └── dial.train
│   ├── DailyDialog
│   │   ├── dial.test
│   │   ├── dial.train
│   │   └── dial.valid
│   ├── PersonaChat
│   │   ├── dial.test
│   │   ├── dial.train
│   │   └── dial.valid
│   └── Ubuntu
│       ├── LICENSE
│       ├── test.csv
│       ├── train.csv
│       └── valid.csv
├── deploying
│   └── helm
│       ├── Chart.yaml
│       ├── templates
│       │   ├── deployment.yaml
│       │   └── service.yaml
│       └── values.yaml
├── evaluate.py
├── evaluate.sh
├── infer.py
├── lightning_logs
├── requirements.txt
├── server.Dockerfile
├── serving
│   ├── __init__.py
│   └── app_factory.py
├── serving
├── LICENSE
├── README.md
├── requirements.txt
├── src
│   ├── core
│   │   └── build_data.py
│   ├── data.py
│   ├── metric.py
│   ├── model
│   │   ├── net.py
│   │   └── ops.py
│   ├── utils
│   │   └── prepare.py
│   └── utils.py
├── tests
│   ├── resources
│   │   └── Ubuntu
│   │       └── sample.csv
│   ├── __init__.py
│   ├── test_api.py
│   ├── test_data.py
│   ├── test_download.py
│   ├── test_inference.py
│   ├── test_model.py
│   └── test_trainer.py
├── train.py
└── train.sh

License