Views
No views yet


Instruction: your instruction <USER> user utterance 1 <SYSTEM> system utterance 1 ... <USER> user utterance N <EXTERNAL KNOWLEDGE> your external knowledge<USER> user utterance 1 <SYSTEM> system utterance 1 ... <USER> user utterance N <EXTERNAL KNOWLEDGE> your external knowledgeInstruction: your instruction <USER> user utterance 1 <SYSTEM> system utterance 1 ... <USER> user utterance N<USER> user utterance 1 <SYSTEM> system utterance 1 ... <USER> user utterance N<USER>, <SYSTEM> and <EXTERNAL KNOWLEDGE> are special tokens<USER> and <SYSTEM> ) to get better performance. However, you may not necessary need to exactly follow our format if you do not observe random behavios.repetition_penalty in model.generate(), such as 1.5, to mitigate them. Note that repetition_penalty=1.0 by default.transformers:1
2from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
3
4tokenizer = AutoTokenizer.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0")
5model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0")
6
7input_text = "Answer the following yes/no question by reasoning step-by-step. Can you write 200 words in a single tweet?"
8input_ids = tokenizer(input_text, return_tensors="pt").input_ids
9
10outputs = model.generate(input_ids, max_new_tokens=256)
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))1# pip install accelerate
2from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
3
4tokenizer = AutoTokenizer.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0")
5model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0", device_map="auto")
6
7input_text = "Answer the following yes/no question by reasoning step-by-step. Can you write 200 words in a single tweet?"
8input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
9
10outputs = model.generate(input_ids, max_new_tokens=256)
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))1# pip install accelerate
2import torch
3from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
4
5tokenizer = AutoTokenizer.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0")
6model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0", device_map="auto", torch_dtype=torch.float16)
7
8input_text = "Answer the following yes/no question by reasoning step-by-step. Can you write 200 words in a single tweet?"
9input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
10
11outputs = model.generate(input_ids, max_new_tokens=256)
12print(tokenizer.decode(outputs[0], skip_special_tokens=True))1# pip install bitsandbytes accelerate
2from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
3
4tokenizer = AutoTokenizer.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0")
5model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/dialogstudio-t5-base-v1.0", device_map="auto", load_in_8bit=True)
6
7input_text = "Answer the following yes/no question by reasoning step-by-step. Can you write 200 words in a single tweet?"
8input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
9
10outputs = model.generate(input_ids, max_new_tokens=256)
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))The primary use is research on language models, including: research on zero-shot NLP tasks and in-context few-shot learning NLP tasks, such as dialogue response generation, reasoning, and question answering; advancing fairness and safety research, and understanding limitations of current large language models
Language models, including DialogStudio-T5, can potentially be used for language generation in a harmful way, according to Rae et al. (2021). DialogStudio-T5 should not be used directly in any application, without a prior assessment of safety and fairness concerns specific to the application.
DialogStudio-T5 is fine-tuned on a large corpus of text data that was not filtered for explicit content or assessed for existing biases. As a result the model itself is potentially vulnerable to generating equivalently inappropriate content or replicating inherent biases in the underlying data.
DialogStudio-T5 has not been tested in real world applications.
DialogStudio-T5 should not be applied for any unacceptable use cases, e.g., generation of abusive speech.
These models are based on Flan-T5 and are fine-tuned with instructions for better zero-shot and few-shot performance. There is one fine-tuned DialogStudio model per T5 model size.
1@misc{zhang2023dialogstudio,
2 title={DialogStudio: Towards Richest and Most Diverse Unified Dataset Collection for Conversational AI},
3 author={Jianguo Zhang and Kun Qian and Zhiwei Liu and Shelby Heinecke and Rui Meng and Ye Liu and Zhou Yu and and Huan Wang and Silvio Savarese and Caiming Xiong},
4 year={2023},
5 eprint={2307.10172},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}