Hch Li
commited on
Commit
·
cc2919a
1
Parent(s):
cf7e82a
missing config
Browse files
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Lmcache Benchmark Lite
|
| 3 |
+
emoji: 🥇
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: true
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Start the configuration
|
| 13 |
+
|
| 14 |
+
Most of the variables to change for a default leaderboard are in `src/env.py` (replace the path for your leaderboard) and `src/about.py` (for tasks).
|
| 15 |
+
|
| 16 |
+
Results files should have the following format and be stored as json files:
|
| 17 |
+
```json
|
| 18 |
+
{
|
| 19 |
+
"config": {
|
| 20 |
+
"model_dtype": "torch.float16", # or torch.bfloat16 or 8bit or 4bit
|
| 21 |
+
"model_name": "path of the model on the hub: org/model",
|
| 22 |
+
"model_sha": "revision on the hub",
|
| 23 |
+
"compressin_method": "delete all"
|
| 24 |
+
},
|
| 25 |
+
"results": {
|
| 26 |
+
"task_name": {
|
| 27 |
+
"metric_name": score,
|
| 28 |
+
},
|
| 29 |
+
"task_name2": {
|
| 30 |
+
"metric_name": score,
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Request files are created automatically by this tool.
|
| 37 |
+
|
| 38 |
+
If you encounter problem on the space, don't hesitate to restart it to remove the create eval-queue, eval-queue-bk, eval-results and eval-results-bk created folder.
|
| 39 |
+
|
| 40 |
+
# Code logic for more complex edits
|
| 41 |
+
|
| 42 |
+
You'll find
|
| 43 |
+
- the main table' columns names and properties in `src/display/utils.py`
|
| 44 |
+
- the logic to read all results and request files, then convert them in dataframe lines, in `src/leaderboard/read_evals.py`, and `src/populate.py`
|
| 45 |
+
- the logic to allow or filter submissions in `src/submission/submit.py` and `src/submission/check_validity.py`
|