discus
1.0.0
pip install discus
有关最新版本,请进行pip install discus@git+https://github.com/discus-labs/discus
https://discus.ai/docs/index.html
对于ML测试/评估,访问高质量和大型数据集至关重要。铁饼是一个利用LLM的Python库,以生成用户指导数据来解决此关键问题。
跟上我们的Twitter或Discord上的更新。
这里有一些快速的步骤来使铁饼起作用。
安装铁饼后,请确保将其集成到LLM提供商中。例如,
export OPENAI_API_KEY=your-api-key-here我们现在可以开始。首先,按照以下准则创建您的JSON:
config = {
"task_name" : "English2Spanish" ,
"task_type" : "LLM-Instances" ,
"task_explained" : "generate english to spanish translation." , # fill in the blank. "you are trying to _____"
"generated_dataset_name" : "eng2spanish.csv" ,
"model_provider" : "openai" ,
"model_name" : "gpt-3.5-turbo" ,
"number_of_rows" : "1500"
}要运行,导入铁饼。然后,创建一个生成器对象。
from discus import Generator
discus = Generator ( config = "config_file_path" )
generated_data = discus . run ()通过为您的模型提供种子数据集,获得更好的结果。
discus = Generator ( config = "config_file_path" , seed_dataset = "csv_file_path" )
generated_data = discus . run ()铁饼是一个快速发展的项目。我们欢迎各种形式的贡献 - 错误报告,提取请求和改进图书馆的想法。
在GitHub上打开一个问题,以获取错误和请求功能。抓住一个公开问题,并提交拉动请求!铁饼是一个快速发展的项目。 We welcome contributions in all forms - bug reports, pull requests and ideas for improving the library.