Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Binoculars as a new metric #644

Open
MayankChaturvedi opened this issue Oct 20, 2024 · 0 comments
Open

[FR] Binoculars as a new metric #644

MayankChaturvedi opened this issue Oct 20, 2024 · 0 comments

Comments

@MayankChaturvedi
Copy link

Binocular is a metric similar to perplexity [read about binocular]. Binocular uses two language models with same tokenization to detect the LLM generated text (or data contamination).

Currently the evaluate library doesn't include binocular in its long list of metrics. Something like the following could help the library be more useful

from evaluate import load
binocular = load("binocular", module_type="metric")
results = binocular.compute(predictions=predictions, observer_model='tiiuae/falcon-7b-instruct', performer_model='tiiuae/falcon-7b')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant