README: add weights-download section + cross-link to corpus v1/v2 dataset repos
Browse files
README.md
CHANGED
|
@@ -63,6 +63,29 @@ legacy `checkpoint/MLPMetric.pt`) and the data JSONs at `data/`. Override with
|
|
| 63 |
env vars `MODEL_CKPT`, `MODEL_ARGS`, `DATA_DIR`, `POOL_PATH` if you lay things
|
| 64 |
out differently.
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
## Running locally
|
| 67 |
|
| 68 |
```bash
|
|
|
|
| 63 |
env vars `MODEL_CKPT`, `MODEL_ARGS`, `DATA_DIR`, `POOL_PATH` if you lay things
|
| 64 |
out differently.
|
| 65 |
|
| 66 |
+
## Downloading the trained weights directly
|
| 67 |
+
|
| 68 |
+
The `MLPMetricFull.pt` (~709 MB slim checkpoint) shipped in this Space *is* the
|
| 69 |
+
released model — you can pull it with `huggingface_hub`:
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from huggingface_hub import hf_hub_download
|
| 73 |
+
ckpt = hf_hub_download("spaces/luisrui/ModelLens", "checkpoint/MLPMetricFull.pt")
|
| 74 |
+
args = hf_hub_download("spaces/luisrui/ModelLens", "checkpoint/args.json")
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
To load it without launching the Gradio app, see `inference_lib.py` and
|
| 78 |
+
`recommend.py` in this repo; the slim checkpoint expects `strict=False` loading
|
| 79 |
+
(3 inference-unused parent-class buffers are intentionally dropped — see
|
| 80 |
+
`slim_full_checkpoint.py`).
|
| 81 |
+
|
| 82 |
+
## Training corpus
|
| 83 |
+
|
| 84 |
+
This model was trained on:
|
| 85 |
+
|
| 86 |
+
- [`luisrui/ModelLens-corpus-v2`](https://huggingface.co/datasets/luisrui/ModelLens-corpus-v2) — 1.81M rows, 47k models, expanded with HELM / LiveBench / OpenCompass (recommended)
|
| 87 |
+
- [`luisrui/ModelLens-corpus-v1`](https://huggingface.co/datasets/luisrui/ModelLens-corpus-v1) — 1.54M rows, 47k models, R1–R6 cleaning pipeline applied (cleaner but smaller)
|
| 88 |
+
|
| 89 |
## Running locally
|
| 90 |
|
| 91 |
```bash
|