GithubHelp home page GithubHelp logo

reasoning-machines / cocogen Goto Github PK

View Code? Open in Web Editor NEW
81.0 81.0 11.0 5.82 MB

Language Models of Code are Few-Shot Commonsense Learners (EMNLP 2022)

Python 99.06% Dockerfile 0.04% Shell 0.89%
code-generation commonsense-reasoning few-shot-learning large-language-models reasoning

cocogen's People

Contributors

madaan avatar shuyanzhou avatar urialon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cocogen's Issues

Converter not applied to the prompt before calling openai

Hi,
In the code below from the script src/api/query_openai_over_tasks.py :

if task['input_prompt_code'] in cache:
        logging.info(
            f"Task {task_idx} > Using cached result for {task['input_prompt_code']}")
        codex_response = cache[task['input_prompt_code']]["codex_response"]
    else:
        codex_response = query_codex(task, prompt_text, engine, max_tokens=max_tokens)


    completed_code = get_completed_code(task, codex_response)

    graph = converter.python_to_graph(completed_code)

it seems the converter is applied only after the response is generated from the openai. Can you please verify whether this is correct? It seems the prompts are not getting changed when different prompting schemes are applied before calling openai.

Code structure for proscription gen task

Hi @madaan , Thanks for the great work!

I wonder which code structure you used for proscript to get the best results?

According to fig1(b) is the Node class with children attributes whereas in the repo, I see a different format. Appreciate your comments on this :)

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.