Code Monkey home page Code Monkey logo

comp5423_group's Introduction

COMP5423 Group Project

In this project, we construct a dialogue system based on the project datasets. The system implement the two options provided in the project requirements:

  • A chatbot based on the BART model which is trained by our group.
  • A chatbot based on a pre-trained large language model.

The system structure can be divided into three parts:

  • A web interface to showcase our system.
  • Two chatbots and a http server to provide the dialogue service.
  • A BART model finetune and inference framework to show how we train and use the model.
  • A Qwen-max llm model with local knowledege as a baseline model to compare.

Model Weight Files

According to the requirements, the model weight files belong to the large files, it is stored in the Google Drive. You should download the three files listed below and put them into the /model path in the source code directory.

Requirements

The required packages are listed in requirements.txt. You can find the file in the source code directory. Suppose you use Anaconda to manage the Python dependencies, you can install them by running:

conda create -n chatbot python=3.9.7
conda activate chatbot
pip install -r requirements.txt

Quickstart

Dialogue System

The Dialogue system consists of two parts: chatbot service and web interface.

  1. The chatbot service is provided using http server.
    python httpserver.py
  2. Web Interface The system provide a static html web interface, find the html file under the path /UI in the source code directory. Open it using the browser (Chrome is highly recomended here).

BART Model Fine-Tuning

python -u main.py --mode train

Or

sh finetune.sh

Note that the output trained model weight files will be saved in the path /model.

Inference

python -u main.py --mode inference --load_model --model_path ./model/

Or

sh inference.sh

Load model from /model and get result.txt in /data

comp5423_group's People

Contributors

buitender avatar caopu333 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.