misbah1122/alpaca
收藏资源简介:
Alpaca数据集是一个包含52,000条指令和演示的数据集,这些指令和演示由OpenAI的text-davinci-003引擎生成。该指令数据可用于对语言模型进行指令微调,使语言模型更好地遵循指令。作者基于Self-Instruct框架的数据生成管道进行了以下修改:使用text-davinci-003引擎生成指令数据;编写了新提示,明确向text-davinci-003提供指令生成要求;采用了更激进的批量解码,即一次性生成20条指令,显著降低了数据生成成本;通过丢弃分类和非分类指令之间的差异简化了数据生成管道;每个指令只生成一个实例,而不是像Self-Instruct中那样生成2到3个实例。这产生了一个包含52K示例的指令遵循数据集,成本更低(低于500美元)。在初步研究中,作者还发现生成的52K数据比Self-Instruct发布的数据更多样化。数据集为英文,主要用于指令训练预训练语言模型。
Alpaca is a dataset of 52,000 instructions and demonstrations generated by OpenAIs text-davinci-003 engine. This instruction data can be used to conduct instruction-tuning for language models and make the language model follow instruction better. The authors built on the data generation pipeline from Self-Instruct framework and made the following modifications: The text-davinci-003 engine to generate the instruction data instead of davinci; A new prompt was written that explicitly gave the requirement of instruction generation to text-davinci-003; Much more aggressive batch decoding was used, i.e., generating 20 instructions at once, which significantly reduced the cost of data generation; The data generation pipeline was simplified by discarding the difference between classification and non-classification instructions; Only a single instance was generated for each instruction, instead of 2 to 3 instances as in Self-Instruct. This produced an instruction-following dataset with 52K examples obtained at a much lower cost (less than $500). In a preliminary study, the authors also found that the 52K generated data to be much more diverse than the data released by Self-Instruct. The data in Alpaca are in English, and it is designed for instruction training pretrained language models.




