Skip to content

feat(inference): expand lm-eval accuracy configuration - #385

Merged
atnair-amd merged 4 commits into
mainfrom
atnair/lm-eval-0-4-12
Sep 9, 2026
Merged

atnair-amd merged 4 commits into
mainfrom
atnair/lm-eval-0-4-12

Conversation

@atnair-amd

Copy link
Copy Markdown
Collaborator

Summary

  • Pin the runtime lm-eval dependency to 0.4.12 and expose its evaluation controls with defaults.
  • Preserve existing Atom accuracy configuration through the legacy task alias and shared regression coverage.

Test plan

  • make fmt-check
  • make lint
  • make ut

Made with Cursor

@atnair-amd atnair-amd self-assigned this Sep 3, 2026
@atnair-amd
atnair-amd force-pushed the atnair/lm-eval-0-4-12 branch from 3c70617 to d5af569 Compare September 3, 2026 23:48
solaiys
solaiys previously requested changes Sep 8, 2026

@solaiys solaiys left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: blocking issue

lm-eval 0.4.12's --tasks is a single comma-separated string (type=str, metavar task1,task2). Splatting task_names() turns tasks: ["hellaswag", "gsm8k"] or task: "hellaswag,gsm8k" into --tasks hellaswag gsm8k, which argparse treats as an unknown positional. Pass ",".join(task.task_names()) as one argument (the historical task.task form). The new unit test currently asserts the broken CLI shape.

Comment thread cvs/lib/inference/utils/lm_eval_job.py Outdated

@hnimra-amd hnimra-amd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not re-filing the --tasks splat. For lm-eval 0.4.12 that matches nargs="+" / SplitArgs, and HarnessCLI inserts run when the first token is --model.

Two schema-default notes below. The device one is the one I would treat as should-fix; num_fewshot is a scoring-contract check.

num_fewshot: Optional[int] = None
batch_size: str = "1"
max_batch_size: Optional[int] = None
device: Optional[str] = "cuda:0"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This default always forwards --device cuda:0 (via _optional_arg when the value is not None). In 0.4.12 --device defaults to unset.

CVS still runs lm_eval as an API client (local-completions / local-chat-completions) on the same node as the server. Pinning that client to GPU 0 is not required for those backends and can contend with the serving job.

Default device to None and omit the flag unless the config sets it.

atnair-amd added a commit that referenced this pull request Sep 8, 2026
Integrate the updated lm-eval 0.4.12 compatibility changes while preserving stack history.

@hnimra-amd hnimra-amd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@amd-droy amd-droy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. thanks Atul.

Atul Nair and others added 4 commits September 9, 2026 11:22
Pin the harness contract and expose its supported evaluation controls while retaining existing Atom task configuration.
Keep documented model-argument defaults idempotent while rejecting values that override CVS-owned transport settings.
Keep boolean chat-template settings and upstream seed forms from changing accuracy task semantics.
@atnair-amd
atnair-amd force-pushed the atnair/lm-eval-0-4-12 branch from 4faf692 to b32af43 Compare September 9, 2026 18:25
@atnair-amd
atnair-amd changed the base branch from atnair/vllm-test-split to main September 9, 2026 18:26
@atnair-amd
atnair-amd dismissed solaiys’s stale review September 9, 2026 18:26

approved by Hamna and Debolina

@atnair-amd
atnair-amd merged commit 0575aa8 into main Sep 9, 2026
@cijohnson
cijohnson deleted the atnair/lm-eval-0-4-12 branch September 15, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants