SaylorTwift HF Staff commited on
Commit
ffabd96
·
verified ·
1 Parent(s): 7189f46

Add HF Jobs how-to for benchmarking a model

Browse files

Adds a short README section and bench/score_with_jobs.{sh,py}: one command scores any /v1/systemone model on the test split with HF Jobs (accuracy, KL, Brier, ECE). See discussion #37 for the full 19-model run.

Files changed (1) hide show
  1. README.md +21 -0
README.md CHANGED
@@ -143,6 +143,27 @@ against it by setting `TYPESAFE_BASE_URL`.
143
  To add a model, score it on `test` with the full distributions and open a
144
  discussion with the numbers and the mode (specialist or general) it used.
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  ### Notes on the rows
147
 
148
  - **Liquid AI d1** was measured on 2026-09-30 through Liquid's API
 
143
  To add a model, score it on `test` with the full distributions and open a
144
  discussion with the numbers and the mode (specialist or general) it used.
145
 
146
+ ### Benchmarking a model with HF Jobs
147
+
148
+ One command scores any model that serves vLLM's `/v1/systemone` (any model
149
+ without a native server works this way; serve it with a current nightly). It
150
+ runs one request per case (state + all five questions) over the `test` split
151
+ and prints accuracy, KL from gold, Brier and ECE:
152
+
153
+ ```bash
154
+ hf jobs run --flavor a100-large --timeout 2h \\
155
+ --env MODEL_ID=your-org/your-model \\
156
+ --volume hf://datasets/LocalLLaMA/typed-decisions:/repo:ro \\
157
+ pytorch/pytorch:2.9.1-cuda12.8-cudnn9-devel \\
158
+ bash /repo/bench/score_with_jobs.sh
159
+ ```
160
+
161
+ - Pick the `--flavor` for the model's size: `l4x1` up to ~2B, `l40sx1` or
162
+ `a100-large` for ~27B, `h200` above. Gated models also need `--secrets HF_TOKEN`.
163
+ - `bench/score_with_jobs.sh` installs vLLM nightly, serves the model, scores all
164
+ 400 cases, and writes `results.json`.
165
+ - Then open a discussion with the numbers and the mode (specialist or general).
166
+
167
  ### Notes on the rows
168
 
169
  - **Liquid AI d1** was measured on 2026-09-30 through Liquid's API