Coder Social home page Coder Social logo

binder's Introduction

Binder🔗: Binding Language Models in Symbolic Languages


Code for paper Binding Language Models in Symbolic Languages. Please refer to our project page for more demonstrations and up-to-date related resources. Check out our demo page to have an instant experience of Binder, which achieves sota or comparable performance with only dozens of(~10) program annotations.

Updates

  • 2023-01-22: Accepted by ICLR 2023 (Spotlight)
  • 2022-12-04: Due to the fact OpenAI's new policy on request limitation, the n sampling couldn't be done as previously, we will add features to call multiple times to be the same usage soon!
  • 2022-10-06: We released our code, huggingface spaces demo and project page. Check it out!

Dependencies

To establish the environment run this code in the shell:

conda env create -f py3.7binder.yaml
pip install records==0.5.3

That will create the environment binder we used.

Usage

Environment setup

Activate the environment by running

conda activate binder

Add key

Apply and get API keys(sk-xxxx like) from OpenAI API, save the key in key.txt file, make sure you have the rights to access the model(in the implementation of this repo, code-davinci-002) you need.

Run

Check out commands in run.py

Citation

If you find our work helpful, please cite as

@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={ArXiv},
  year={2022},
  volume={abs/2210.02875}
}

Contributors

binder's People

Contributors

timothyxxx avatar blankcheng avatar taoyds avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.