Skip to content

[eval] Keep endpoint benchmark extras torch-free - #55

Merged
rjpower merged 3 commits into
mainfrom
weaver/audit-evalchemy-s-benchmark-spec
Jul 27, 2026
Merged

[eval] Keep endpoint benchmark extras torch-free#55
rjpower merged 3 commits into
mainfrom
weaver/audit-evalchemy-s-benchmark-spec

Conversation

@weaverbot

@weaverbot weaverbot commented Jul 27, 2026

Copy link
Copy Markdown

Keep all per-benchmark endpoint and grading extras torch-free. Six benchmarks previously installed PyTorch: BigCodeBench and CruxEval only cleaned CUDA caches, alpaca_eval wrapped generation in no_grad, MixEval used torch-backed data and RNG helpers, and LiveBench and MTBench reached torch-heavy vendored local-model adapters while selecting conversation templates or grading.

Make those operations optional while retaining torch-backed cleanup, seeding, and model loading when local inference is installed. The vllm extra now carries FastChat's accelerate dependency. LiveBench endpoint mode uses the same model-specific adapter registry and alias normalization without importing its local torch loaders.

Validate all 15 non-empty benchmark extras in isolated environments and dynamically import all 17 empty-extra benchmarks from the lean install. The remaining torch dependency is reachable only through evalchemy[vllm].

The audit record is available at https://loom.oa.dev/s/hts94mwg.

Six benchmark extras installed PyTorch for cleanup, no-grad wrappers, data containers, or eager vendored local-model imports even when evaluating a served endpoint.

Make those imports optional and keep FastChat's local adapters on the vllm extra. Expand lean and isolated-extra checks to exercise every benchmark without torch.
@weaverbot weaverbot added the agent-generated Automated failure tracking label Jul 27, 2026
@loom-oa-dev

loom-oa-dev Bot commented Jul 27, 2026

Copy link
Copy Markdown

Working on this in loom: https://loom.oa.dev/s/hts94mwg

Import LiveBench API and local-model symbols from their concrete modules. This removes the lazy module attribute shim while keeping the benchmark's endpoint imports torch-free.
Comment thread eval/chat_benchmarks/LiveBench/eval_instruct.py Outdated
@rjpower

rjpower commented Jul 27, 2026

Copy link
Copy Markdown

FYI @penfever part of making evalchemy easy to do a uvx install on

Load local inference modules only when torch is installed so endpoint code can use the same adapter registry and model aliases. Keep the missing local-inference extra failure explicit.
@rjpower
rjpower merged commit adf37c2 into main Jul 27, 2026
8 checks passed
@rjpower
rjpower deleted the weaver/audit-evalchemy-s-benchmark-spec branch July 27, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-generated Automated failure tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants