You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/quicktour.mdx
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ To evaluate `GPT-2` on the Truthful QA benchmark with [🤗
27
27
```bash
28
28
lighteval accelerate \
29
29
"model_name=openai-community/gpt2" \
30
-
"leaderboard|truthfulqa:mc|0|0"
30
+
"leaderboard|truthfulqa:mc|0"
31
31
```
32
32
33
33
Here, we first choose a backend (either `accelerate`, `nanotron`, `endpoint`, or `vllm`), and then specify the model and task(s) to run.
@@ -38,12 +38,9 @@ Valid key-value pairs correspond with the backend configuration, and are detaile
38
38
The syntax for the task specification might be a bit hard to grasp at first. The format is as follows:
39
39
40
40
```txt
41
-
{suite}|{task}|{num_few_shot}|{0 for strict `num_few_shots`, or 1 to allow a truncation if context size is too small}
41
+
{suite}|{task}|{num_few_shot}
42
42
```
43
43
44
-
If the fourth value is set to 1, lighteval will check if the prompt (including the few-shot examples) is too long for the context size of the task or the model.
45
-
If so, the number of few shot examples is automatically reduced.
46
-
47
44
Tasks have a function applied at the sample level and one at the corpus level. For example,
48
45
- an exact match can be applied per sample, then averaged over the corpus to give the final score
49
46
- samples can be left untouched before applying Corpus BLEU at the corpus level
@@ -52,7 +49,7 @@ etc.
52
49
If the task you are looking at has a sample level function (`sample_level_fn`) which can be parametrized, you can pass parameters in the CLI.
0 commit comments