DIAL-BART0 / README.md
prakharz's picture
updated example
6c96d83
metadata
license: apache-2.0
tags:
  - generated_from_trainer
model-index:
  - name: DIAL_BART0
    results: []
widget:
  - text: >-
      Instruction: Edit the provided response into a response that is fluent and
      coherent to the dialogue context. 


      Input: [CONTEXT] How may I help you? [ENDOFTURN] I left a suitcase on the
      train to London the other day. [RESPONSE] Can describe itit , sir ? It
      will help us find [ENDOFDIALOGUE] [QUESTION] Given this context and
      response provided, the edited response is
  - text: >-
      Instruction: Generate a response that starts with the provided initial
      phrase. 


      Input: [INITIAL_PHRASE] Please describe [CONTEXT] How may I help you?
      [ENDOFTURN] I left a suitcase on the train to London the other day.
      [ENDOFDIALOGUE] [QUESTION] A response with the provided initial phrase is
  - text: >-
      Instruction: Generate a response that starts with the provided initial
      phrase and contains the provided keywords. 


      Input: [INITIAL PHRASE] Please describe [KEYWORDS] color, any documents
      [CONTEXT] How may I help you? [ENDOFTURN] I left a suitcase on the train
      to London the other day. [ENDOFDIALOGUE] [QUESTION] A response with the
      provided initial phrase and keywords is
  - text: >-
      Instruction: What is the intent of the response 


      Input: [CONTEXT] How may I help you? [RESPONSE] I left a suitcase on the
      train to London the other day. [ENDOFDIALOGUE] [OPTIONS] booking,
      reservation change, checkout, lost&found, time information, security,
      schedules [QUESTION] The intent of the response is
  - text: >-
      Instruction: Generate a summary for the following dialog context. 


      Input: [CONTEXT] Ann: Wanna go out? [ENDOFTURN] Kate: Not really, I feel
      sick. [ENDOFTURN] Ann: Drink mint tea, they say it helps. Ok, so we'll
      meet up another time. Take care! [ENDOFTURN] Kate: Thanks! [ENDOFDIALOGUE]
      [QUESTION] For this dialogue, the summary is: 
  - text: >-
      Instruction: Consider the context of the conversation and a document and
      generate an answer accordingly 


      Input:  [CONTEXT] How may I help you? [ENDOFTURN] I left a suitcase on the
      train to London the other day. [ENDOFDIALOGUE] [QUESTION] What is the
      response of the following question: Where was the person going to?
  - text: >-
      Instruction: Generate a response using the provided background knowledge. 


      Input: [KNOWLEDGE] Emailid for cases related to lost and found is
      x@gmail.com [CONTEXT] How may I help you? [ENDOFTURN] I left a suitcase on
      the train to London the other day. [ENDOFDIALOGUE] [QUESTION] Generate a
      response using the information from the background knowledge.

InstructDial

Instruction tuning is an emergent paradigm in NLP wherein natural language instructions are leveraged with language models to induce zero-shot performance on unseen tasks. Instructions have been shown to enable good performance on unseen tasks and datasets in both large and small language models. Dialogue is an especially interesting area to explore instruction tuning because dialogue systems perform multiple kinds of tasks related to language (e.g., natural language understanding and generation, domain-specific interaction), yet instruction tuning has not been systematically explored for dialogue-related tasks. We introduce InstructDial, an instruction tuning framework for dialogue, which consists of a repository of 48 diverse dialogue tasks in a unified text-to-text format created from 59 openly available dialogue datasets. Next, we explore cross-task generalization ability on models tuned on InstructDial across diverse dialogue tasks. Our analysis reveals that InstructDial enables good zero-shot performance on unseen datasets and tasks such as dialogue evaluation and intent detection, and even better performance in a few-shot setting. To ensure that models adhere to instructions, we introduce novel meta-tasks. We establish benchmark zero-shot and few-shot performance of models trained using the proposed framework on multiple dialogue tasks.

Paper

Dial_BART0

BART-large type model trained on InstructDial tasks. This model is a fine-tuned version of yuchenlin/BART0pp on the InstructDial datasets.

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

All tasks in InstructDial framework (including all dialogue eval tasks)

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 9
  • eval_batch_size: 9
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 8
  • total_train_batch_size: 72
  • total_eval_batch_size: 72
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 3.0

Framework versions

  • Transformers 4.20.1
  • Pytorch 1.11.0
  • Datasets 2.3.2
  • Tokenizers 0.12.1