Code Monkey home page Code Monkey logo

glore's Introduction

GLoRE

A benchmark for evaluating the logical reasoning of LLMs

For more information, please refer to our Arxiv preprint

Datasets included:

We are working on incorporating more logical reasoning datasets!

Setting-Up

pip install evals

Evaluating OpenAI Models

This repository is compatible with the OpenAI Eval library. Please download the Eval package first, and put the contents in this repository data and evals into evals/evals/registry/data/<name_of_your_eval/ and evals/evals/registry/evals/, respectively.

eg. evals/evals/registry/data/logiqa/logiqa.jsonl, evals/evals/registry/evals/logiqa.yaml

  1. export openai api key to the environment

export OPENAI_API_KEY=<your_key>

  1. run eval

oaieval <model_name> <data_name>

eg. oaieval gpt-3.5-turbo logiqa

Evaluating Huggingface Models

python inference.py

Contribute Your Own Dataset

We welcome your datasets incorporated in GLoRe.

Please fill free to drop us issues (in the repo) or emails (address provided in the paper) to let us know.

We would recommend you to convert your dataset into GLoRe format with the scripts provided in example_scripts/, which provides three example conversion scripts for .csv, .tsv, and .json formats respectively. But we will also handle them if you meet trouble during format conversion.

How to Cite

@misc{liu2023glore,
      title={GLoRE: Evaluating Logical Reasoning of Large Language Models}, 
      author={Hanmeng liu and Zhiyang Teng and Ruoxi Ning and Jian Liu and Qiji Zhou and Yue Zhang},
      year={2023},
      eprint={2310.09107},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

glore's People

Contributors

csitfun avatar ruoxining 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.