andreyanufr / who_what_benchmark Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hey @andreyanufr,
Can you make an API in your repo?
Here is the proposal:
whowhatbench
__init__.py
and evaluate.py insideEvaluator
that receives a source model in the constructor. Expose it in the __init__.py
.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)
The API of the repo allows benchmarking accuracy of many optimization backends including:
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.