Git Product home page Git Product logo

evaltest's Introduction

evaltest

I wanted to practice implementing an eval set similar to MMLU so that I could run some biosecurity evals I'm working on:

The current goal is to support ChatGPT and Claude. I don't have the resources to test other LLMs.

The actual biosecurity evals are not in here for security reasons. You should put your own in data/test.csv, and the format should be:

"question?","correct choice","incorrect 1", "incorrect 2", "incorrect 3"
"What is 1+2?","3","4","-3","0"

data/fewshot.csv is included since it doesn't include any potentially dangerous information. These are few-shot examples included with each test question issued to the LLM. The format is the same as data/test.csv, but adds one field which is the example step-by-step reasoning.

When sending the evals to the model, the choices are shuffled.

Developers

This project uses a Python virtualenv and assumes it's in the .venv/ directory. I haven't included any continuous integration scripts because I don't have the resources to run these. Before pushing, you should do, at minimum,

.venv/bin/pip install -r requirements.txt
.venv/bin/pytest .
.venv/bin/mypy . --strict

To run, do

OPENAI_API_KEY="your-key-here" ANTHROPIC_API_KEY="your-other-key-here" .venv/bin/python eval.py

Note that it only queries one of Claude or ChatGPT at a time, and you need to set that option in eval.py.

License

Copyright Juno Woods, PhD 2024

MIT license

evaltest's People

Contributors

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