Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/adding-a-custom-task.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Once your file is created you can then run the evaluation with the following com

```bash
lighteval accelerate \
"pretrained=HuggingFaceH4/zephyr-7b-beta" \
"model_name=HuggingFaceH4/zephyr-7b-beta" \
"community|{custom_task}|{fewshots}|{truncate_few_shot}" \
--custom-tasks {path_to_your_custom_task_file}
```
8 changes: 4 additions & 4 deletions docs/source/quicktour.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To evaluate `GPT-2` on the Truthful QA benchmark with [🤗

```bash
lighteval accelerate \
"pretrained=gpt2" \
"model_name=openai-community/gpt2" \
"leaderboard|truthfulqa:mc|0|0"
```

Expand Down Expand Up @@ -59,7 +59,7 @@ When specifying a path to file, it should start with `./`.

```bash
lighteval accelerate \
"pretrained=gpt2" \
"model_name=openai-community/gpt2" \
./path/to/lighteval/examples/tasks/recommended_set.txt
# or, e.g., "leaderboard|truthfulqa:mc|0|0|,leaderboard|gsm8k|3|1"
```
Expand All @@ -79,7 +79,7 @@ You can then evaluate a model using data parallelism on 8 GPUs like follows:
```bash
accelerate launch --multi_gpu --num_processes=8 -m \
lighteval accelerate \
"pretrained=gpt2" \
"model_name=openai-community/gpt2" \
"leaderboard|truthfulqa:mc|0|0"
```

Expand All @@ -92,7 +92,7 @@ To evaluate a model using pipeline parallelism on 2 or more GPUs, run:

```bash
lighteval accelerate \
"pretrained=gpt2,model_parallel=True" \
"model_name=openai-community/gpt2,model_parallel=True" \
"leaderboard|truthfulqa:mc|0|0"
```

Expand Down
Loading