-
Notifications
You must be signed in to change notification settings - Fork 559
feat: Add leaderboard CLI command #3802
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
Merged
+226
−2
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2f4606c
feat: add leaderboard CLI command with cache-path option
isaac-chung 492c767
test: add comprehensive tests for leaderboard CLI command
isaac-chung a6dfcea
try to fix install
isaac-chung 1add54e
fix: lazy-load leaderboard to avoid requiring deps for CLI
isaac-chung bc94b2c
Update mteb/cli/build_cli.py
isaac-chung 10bb4ac
make lint
isaac-chung dee0d7e
remove AGENTS.md
isaac-chung 8450b96
move import to top of file
isaac-chung 6355415
log the default cache path
isaac-chung 74a2172
Improve leaderboard tests to verify actual cache paths
isaac-chung 37cd876
Combine leaderboard cache tests using pytest parametrize
isaac-chung d4df501
Update make run-leaderboard to use new CLI and remove app.py main block
isaac-chung 2a24b7a
feat: add theme and head parameters to leaderboard CLI
isaac-chung 4e1b72e
fix: suppress leaderboard warnings on CLI launch
isaac-chung 63804e7
test: update leaderboard tests for theme and head params
isaac-chung 8730ef0
Revert "Update make run-leaderboard to use new CLI and remove app.py …
isaac-chung 72f3c4f
Update mteb/cli/build_cli.py
isaac-chung d5f1f06
docs: update leaderboard CLI usage
isaac-chung a1fdff3
update docs to show defaults
isaac-chung 3a478f1
fix: apply ruff formatting
isaac-chung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,35 @@ This section contains information on how to interact with the leaderboard includ | |
| It is possible to completely deploy the leaderboard locally or self-host it. This can e.g. be relevant for companies that might want to | ||
| integrate build their own benchmarks or integrate custom tasks into existing benchmarks. | ||
|
|
||
| Running the leaderboard is quite easy. Simply run: | ||
| The leaderboard can be run in two ways: | ||
|
|
||
| #### Using the CLI Command | ||
|
|
||
| The easiest way to run the leaderboard is using the MTEB CLI: | ||
|
|
||
| ```bash | ||
| mteb leaderboard | ||
| ``` | ||
|
|
||
| You can also specify a custom cache path for model results: | ||
|
|
||
| ```bash | ||
| mteb leaderboard --cache-path results | ||
| ``` | ||
|
|
||
| Additional options: | ||
| - `--host HOST`: Specify the host to run the server on (default: 0.0.0.0) | ||
| - `--port PORT`: Specify the port to run the server on (default: 7860) | ||
| - `--share`: Create a public URL for the leaderboard | ||
|
|
||
| Example with all options: | ||
| ```bash | ||
| mteb leaderboard --cache-path results --port 8080 --share | ||
| ``` | ||
|
|
||
| #### Using Make Command | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would probably delete this since most users don't git clone the repo |
||
|
|
||
| Alternatively, you can use the Makefile: | ||
| ```bash | ||
| make run-leaderboard | ||
| ``` | ||
|
|
||
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.