LM Evaluation Harness Adapter
The LM Evaluation Harness adapter exposes benchmark tasks from
lm-evaluation-harness
through the EvalHub provider lm_evaluation_harness.
Overview
Section titled “Overview”LM Evaluation Harness is one EvalHub provider with many benchmark tasks. Each benchmark is selected by its task ID; a separate provider is not created for each benchmark.
benchmarks: - id: arc_easy provider_id: lm_evaluation_harnessThe adapter runs in the ta-lmes-job container. In a cluster deployment, the
container image must contain both the task definition and every optional
dependency required by that task.
Execution flow
Section titled “Execution flow”- EvalHub resolves the benchmark from the
lm_evaluation_harnessprovider. - The
ta-lmes-jobimage loads the corresponding task fromlm_eval/tasks/. - The adapter downloads or reads the task dataset and runs LM Evaluation Harness.
- The adapter reports benchmark metrics and, when configured, artifacts to EvalHub.
See Configuration for task-specific settings and Benchmarks for catalog and integration guidance.
Adding a benchmark
Section titled “Adding a benchmark”For RHOAI deployments, benchmark integration is more than adding a provider
YAML entry. First confirm that the task exists in lm_eval/tasks/. If it
exists only on the upstream main branch, create a targeted PR against
incubation; do not synchronize all of main into incubation, because the
branches intentionally diverge.
The task, runner image, and TrustyAI Operator image reference must then be updated and validated together. Follow the integration checklist and local validation guidance before registering the benchmark in an EvalHub provider or collection.
Container image
Section titled “Container image”The ta-lmes-job image is built from Dockerfile.lmes-job in the
incubation branch of lm-evaluation-harness. A push to incubation triggers
the repository’s Tekton release pipeline, which builds and publishes the image
to the OpenDataHub registry.
After the image is published, the TrustyAI Operator must be updated to use the released tag or digest. The image reference is controlled by the Operator, not by the benchmark collection YAML alone.