Binder
1.0.0
用符号语言的纸质绑定语言模型代码。请参阅我们的项目页面以获取更多演示和最新的相关资源。请查看我们的演示页面,具有粘合剂的即时体验,该页面可以实现SOTA或可比性的性能,只有数十(〜10)个程序注释。
gpt-3.5-xxx
和gpt-4-xxx
,代码将稍后再进行重构,以支持更多!为了建立环境在外壳中运行此代码:
conda env create -f py3.7binder.yaml
pip install records==0.5.3
这将创建我们使用的环境binder
。
通过运行来激活环境
conda activate binder
从OpenAI API中应用并获取API keys
(SK-XXXX喜欢),将键保存在key.txt
文件中,请确保您有权访问模型(在实现此回购中, code-davinci-002
)。
在run.py
中查看命令
如果您发现我们的工作有帮助,请引用
@article{Binder,
title={Binding Language Models in Symbolic Languages},
author={Zhoujun Cheng and Tianbao Xie and Peng Shi and Chengzu Li and Rahul Nadkarni and Yushi Hu and Caiming Xiong and Dragomir Radev and Mari Ostendorf and Luke Zettlemoyer and Noah A. Smith and Tao Yu},
journal={ICLR},
year={2023},
volume={abs/2210.02875}
}