Coder Social home page Coder Social logo

charlesvardeman / adapt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from archiki/adapt

0.0 0.0 0.0 886 KB

Official code for the paper "ADaPT: As-Needed Decomposition and Planning with Language Models"

Home Page: https://allenai.github.io/adaptllm/

License: MIT License

Python 100.00%

adapt's Introduction

ADaPT: As-Needed Decomposition and Planning with Language Models

teaser image

Dependencies

This code uses the OpenAI API, please put your access key in KEY.txt. To run experiments on ALFWorld, and WebShop please install and set up the environments from the source repositories alfworld, webshop respectively. Our code base adds extra functionality on top of ALFWorld, please replace the alfworld/agents/environment/alfred_tw_env.py with the provided in our repository. To run the TextCraft environment, please download the crafting recipes and store them in TextCraft/recipes/.

Installation

The simplest way to run our code is to build separate conda environments.

conda create --name adaptllm --file requirements.txt python=3.7
conda activate adaptllm
cd ADaPT

teaser image

Running ADaPT

To run experiments on specific environments using ADaPT (Sec 5 of our paper) please run the environment specific files with the default parameters. The decomposition depth 'd' can be set using max_depth variable in all files. See examples below.

python run_alfworld.py
python run_textcraft.py
python run_webshop.py

Acknowledgements

We thank the authors and contributors of ReAct for their public code release.

Reference

Please cite our paper if you use our code in your works:

@article{prasad2023adapt,
      author    = "Prasad, Archiki and Koller, Alexander and Hartmann, Mareike and Clark, Peter and Sabharwal, Ashish and Bansal, Mohit and Khot, Tushar",
      title     = "ADaPT: As-Needed Decomposition and Planning with Language Models",
      journal   = "arXiv",
      year      = "2023",}
}

adapt's People

Contributors

archiki 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.