refactor(evaluator): move metric resolution to to_spec - #133
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughRefactors evaluator: adds submitter-facing EvaluateInputSpec; moves bundled-metric hydration and model-ref resolution into EvaluateJob.to_spec(); EvaluateSpec now rejects unresolved bundled model refs; executors accept EvaluateInputSpec|EvaluateSpec and canonicalize to resolved EvaluateSpec for local runs; tests updated accordingly. ChangesEvaluate Job Spec Compilation Workflow
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@plugins/nemo-evaluator/src/nemo_evaluator/jobs/evaluate.py`:
- Line 200: The parameter annotation for async_sdk currently declares
AsyncNeMoPlatform but the function (around the async_sdk None check at line 213)
treats it as optional; update the signature to use AsyncNeMoPlatform | None for
the async_sdk parameter so type checkers reflect the actual None handling
(locate the function/method that accepts async_sdk and change its type
annotation accordingly).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 2b19b9d9-15f8-4708-aa30-9f76b436a388
📒 Files selected for processing (5)
plugins/nemo-evaluator/src/nemo_evaluator/jobs/evaluate.pyplugins/nemo-evaluator/src/nemo_evaluator/sdk/_executor.pyplugins/nemo-evaluator/src/nemo_evaluator/sdk/http_utils.pyplugins/nemo-evaluator/tests/test_evaluate_job.pyplugins/nemo-evaluator/tests/test_sdk.py
|
73bfcbb to
fdbe198
Compare
Signed-off-by: Sandy Chapman <schapman@nvidia.com>
fdbe198 to
aeaf28d
Compare
|
Closing as superseded by #128. The metric resolution/to_spec work has been folded into the evaluator ref-contract cleanup branch there. |
Summary
Verification
Summary by CodeRabbit
Refactor
New Features
Tests