From c8262f0f527005aa4b1493769796b736b2f8ba9d Mon Sep 17 00:00:00 2001 From: mohansree14 Date: Sat, 22 Aug 2026 20:36:11 +0100 Subject: [PATCH] docs: fix broken code examples in evaluating-a-custom-model.mdx - quote the unquoted tasks value in the Python API example (was a SyntaxError: tasks=truthfulqa:mc, -> tasks="truthfulqa:mc",) - close the unterminated task string in the CLI example Fixes #760 --- docs/source/evaluating-a-custom-model.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/evaluating-a-custom-model.mdx b/docs/source/evaluating-a-custom-model.mdx index df9b3ea17..969feb59d 100644 --- a/docs/source/evaluating-a-custom-model.mdx +++ b/docs/source/evaluating-a-custom-model.mdx @@ -59,7 +59,7 @@ You can evaluate your custom model using either the command-line interface or th lighteval custom \ "google-translate" \ "examples/custom_models/google_translate_model.py" \ - "wmt20:fr-de \ + "wmt20:fr-de" \ --max-samples 10 ``` @@ -94,7 +94,7 @@ model_config = CustomModelConfig( # Create and run the pipeline pipeline = Pipeline( - tasks=truthfulqa:mc, + tasks="truthfulqa:mc", pipeline_parameters=pipeline_params, evaluation_tracker=evaluation_tracker, model_config=model_config