Feature/implement load & save for benchmark reports#999
Merged
chakravarthik27 merged 23 commits intorelease/2.0.1from Apr 1, 2024
Merged
Conversation
…ng/loading files and keys
…and updating summary
Prikshit7766
approved these changes
Apr 1, 2024
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.
Description
This pull request introduces a significant upgrade to LangTest's evaluation capabilities, focusing on report management and leaderboards. These enhancements empower you to:
Streamlined Reporting and Tracking: Effortlessly save and load detailed evaluation reports directly from the command line using
langtest eval, enabling efficient performance tracking and comparative analysis over time, with manual file review options in the~/.langtestor./.langtestfolder.Enhanced Leaderboards: Gain valuable insights with the new langtest show-leaderboard command. This command displays existing leaderboards, providing a centralized view of ranked model performance across evaluations.
Average Model Ranking: Leaderboard now include the average ranking for each evaluated model. This metric provides a comprehensive understanding of model performance across various datasets and tests.
How it works:
First, create the
parameter.jsonorparameter.yamlin the working directoryJSON Format
{ "task": "question-answering", "model": { "model": "http://localhost:1234/v1/chat/completions", "hub": "lm-studio" }, "data": [ { "data_source": "MedMCQA" }, { "data_source": "PubMedQA" }, { "data_source": "MMLU" }, { "data_source": "MedQA" } ], "config": { "model_parameters": { "max_tokens": 64 }, "tests": { "defaults": { "min_pass_rate": 1.0 }, "robustness": { "add_typo": { "min_pass_rate": 0.70 } }, "accuracy": { "llm_eval": { "min_score": 0.60 } } } } }Yaml Format
And open the terminal or cmd in your system
Finally, we can know the leaderboard and rank of the model.

To visualize the leaderboard anytime using the CLI command