Giter Club home page Giter Club logo

who_what_benchmark's People

Contributors

alexkoff88 avatar alexsu52 avatar andreyanufr avatar l-bat avatar ljaljushkin avatar

Stargazers

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

Watchers

 avatar  avatar

who_what_benchmark's Issues

Make an API

Hey @andreyanufr,

Can you make an API in your repo?

Here is the proposal:

  • Create a folder named whowhatbench
  • Add __init__.py and evaluate.py inside
  • Create a class Evaluator that receives a source model in the constructor. Expose it in the __init__.py.
  • Add score(optimized_model) method to the Evaluator class that will return the accuracy metric
  • Add simple setup.py to your project

Overall it should look like:

from whowhatbench import Evaluator

base_model = Auto/OVModelForCausalLM.from_pretrined(...)
evaluator = Evaluator(base_model)
... # model optimization process
metric = evaluator.score(optimized_model)

Add examples

The API of the repo allows benchmarking accuracy of many optimization backends including:

  • HuggingFace (4-bit via Bytesandbits)
  • GPTQ
  • LLama.cpp (via bigdl-llm)
  • OpenVINO (via optimum)

I suggest creating examples for all four backends and demonstrating capabilities. We can also do a comparison and publish in readme.
You can use optimized versions of llama-7B from here: https://huggingface.co/TheBloke

Accept list of prompts in API

Can we change API so that it can work with list of prompts instead of JSON files:

prompts = [
"What it PyTorch",
"Who is Mahatma Gandhi",
]
metrics_per_prompt, metrics = evaluator.score(optimized_model, prompts=prompts)

This is more flexible, IMO.

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.