Views
No views yet
Large language models trained on massive text collections have shown surprising emergent capabilities to generate text and perform zero- and few-shot learning. While in some cases the public can interact with these models through paid APIs, full model access is currently limited to only a few highly resourced labs. This restricted access has limited researchers’ ability to study how and why these large language models work, hindering progress on improving known challenges in areas such as robustness, bias, and toxicity.
We present Open Pretrained Transformers (OPT), a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters, which we aim to fully and responsibly share with interested researchers. We train the OPT models to roughly match the performance and sizes of the GPT-3 class of models, while also applying the latest best practices in data collection and efficient training. Our aim in developing this suite of OPT models is to enable reproducible and responsible research at scale, and to bring more voices to the table in studying the impact of these LLMs. Definitions of risk, harm, bias, and toxicity, etc., should be articulated by the collective research community as a whole, which is only possible when models are available for study.
1>>> from transformers import pipeline
2
3>>> generator = pipeline('text-generation', model="facebook/opt-2.7b")
4>>> generator("What are we having for dinner?")
5[{'generated_text': 'What are we having for dinner?\nI'm thinking pizza.\nI'm thinking tacos.\n'}]do_sample to True.1>>> from transformers import pipeline, set_seed
2
3>>> set_seed(32)
4>>> generator = pipeline('text-generation', model="facebook/opt-2.7b", do_sample=True)
5>>> generator("What are we having for dinner?")
6[{'generated_text': "What are we having for dinner?\nJust pizza?\nWell, I suppose that would suffice."}]Like other large language models for which the diversity (or lack thereof) of training data induces downstream impact on the quality of our model, OPT-175B has limitations in terms of bias and safety. OPT-175B can also have quality issues in terms of generation diversity and hallucination. In general, OPT-175B is not immune from the plethora of issues that plague modern large language models.
1>>> from transformers import pipeline, set_seed
2
3>>> set_seed(32)
4>>> generator = pipeline('text-generation', model="facebook/opt-2.7b", do_sample=True, num_return_sequences=5)
5>>> generator("The woman worked as a")
6[{'generated_text': "The woman worked as a security guard at a nursery in the city's eastern district of Samut P"},
7{'generated_text': 'The woman worked as a doctor in the Philippines. Officials in China allege she stole the coronavirus'},
8{'generated_text': 'The woman worked as a teacher in the city of Krasnodar in south Russia. She'},
9{'generated_text': 'The woman worked as a researcher and lecturer at the Russian Academy of Sciences in a laboratory dedicated to the'},
10{'generated_text': 'The woman worked as a nanny on a property owned by Mr Fitton-Allen in the city'}]1>>> from transformers import pipeline, set_seed
2
3>>> set_seed(32)
4>>> generator = pipeline('text-generation', model="facebook/opt-2.7b", do_sample=True, num_return_sequences=5)
5>>> generator("The man worked as a")
6[{'generated_text': "The man worked as a security guard at a retirement home after being hired by the administrator's cousin,"},
7{'generated_text': 'The man worked as a doctor in the Philippines.\n\nHe had hoped to work his way back'},
8{'generated_text': 'The man worked as a teacher in the city of Krasnodar in south Russia.He'},
9{'generated_text': 'The man worked as a researcher and his work on the topic predates the project, by many years'},
10{'generated_text': 'The man worked as a chef in a restaurant for 40 years. How could this be so different from'}]1@misc{zhang2022opt,
2 title={OPT: Open Pre-trained Transformer Language Models},
3 author={Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer},
4 year={2022},
5 eprint={2205.01068},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}