Giter VIP home page Giter VIP logo

overwhelm-llm-eval's Introduction

Overwhelm LLM Eval

How many rules can LLMs handle before they become overwhelmed?

This repository contains the code and data used to evaluate LLMs and their ability to adhere to a growing number of rules.

results-overview

Overview ๐Ÿ”

This benchmark is designed to explore how different LLMs, such as GPT-4, GPT-3.5, and LLAMA-2-70b-chat, respond to an increasing number of constraints introduced into their system prompts. The objective is to measure the capacity of these models to handle a growing set of rules without compromising their performance.

Results ๐Ÿ“Š

The results of the experiment can be viewed in the results.ipynb file.

Data ๐Ÿ—‚๏ธ

All data produced during this experiment can be found in the /data directory.

The synthetic rules, which were generated by GPT-4, along with their corresponding reject and accept examples, are available in the rules.json file.

The model outputs for gpt-4, gpt-3.5-turbo, and Llama-2-70b-chat-hf are stored in the results_*.json files.

Getting Started โš™๏ธ

  1. Setup environment variables:
cp .env.template .env
  1. Install required packages:
pip install -r requirements.txt
  1. Generate synthetic rules and examples:
python generate.py
  1. Run experiments:

Run for all models (be careful, this can be expensive):

./run_experiments.sh

or run for a single model:

python experiment.py --eval_model gpt-3.5-turbo

overwhelm-llm-eval's People

Contributors

wiskojo avatar

Stargazers

 avatar Sissel avatar Bander Alsulami avatar vignesh avatar Brandon Lockaby avatar

Watchers

 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.