[quantization] Introduce a script for LLM evaluation#467
Merged
mhs4670go merged 1 commit intoSamsung:mainfrom Feb 9, 2026
Merged
[quantization] Introduce a script for LLM evaluation#467mhs4670go merged 1 commit intoSamsung:mainfrom
mhs4670go merged 1 commit intoSamsung:mainfrom
Conversation
35a94ad to
35b24da
Compare
mhs4670go
reviewed
Feb 5, 2026
| ) -> dict[str, Any]: | ||
| model_to_evaluate = HFLM(model, "causal", tokenizer=tokenizer) | ||
| tasks_list: list[str] = tasks.split(",") | ||
| return evaluator.simple_evaluate(model_to_evaluate, tasks=tasks_list)["results"] |
Contributor
There was a problem hiding this comment.
FYI, there is a visualization API.
from lm_eval.utils import make_table
results = lm_eval.simple_evaluate(...)
print(make_table(results))
Contributor
Author
There was a problem hiding this comment.
Wow. Thank you! I didn't know that.
Torrero
approved these changes
Feb 5, 2026
| import argparse | ||
| from typing import Any | ||
|
|
||
| from lm_eval import evaluator |
There was a problem hiding this comment.
Overall LGTM,
But, could you provide your opinion, please, maybe lm_eval should be added to dependencies of the project
Contributor
There was a problem hiding this comment.
I don't think we would add a dependency on lm_eval. That is why this script is located at just script folder and has no tests.
When we need external dependencies like transformers or lm_eval, it would be good to have dedicated scripts or workflows in internal repo.
This PR introduces an option to run many LLM-related tasks using `lm_eval` package. TICO-DCO-1.0-Signed-off-by: s.malakhov <s.malakhov@partner.samsung.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces an option to run many LLM-related tasks using
lm_evalpackage.To use it please make sure that you have installed lm_eval
The PR gives a chance to range quantization results not only using PPL degradation but also using accuracy on a list of benchmarks.
python tico/quantization/evaluation/script/llm_tasks_eval.py --model "HuggingFaceTB/SmolLM2-135M-Instruct"
Draft: #436
TICO-DCO-1.0-Signed-off-by: s.malakhov s.malakhov@partner.samsung.com