EvalPort: portable interchange for SwiftEval results

Open
#10,249 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
python

Research direction

Start with SwiftEval.run() and get_task_result() in swift/pipelines/eval/eval.py, then review EvalArguments in swift/arguments/eval_args.py and the existing append_to_jsonl flow. Determine whether a converter is wanted for the eval_report output and how the Native, OpenCompass, and VLMEvalKit results should map to EvalPort ResultSets; done means the expected scope and output format are agreed and verified across those backends.

Written by the indexing model from the issue text.

Description

Hi ms-swift team — I maintain EvalPort (https://github.com/adhabnr-ux/evalport), an open JSON-Schema spec for portable LLM eval test cases, graders, and result sets.

swift/pipelines/eval/eval.py's SwiftEval.run()/get_task_result() wraps EvalScope (Native/OpenCompass/VLMEvalKit backends), builds a {dataset: {metric: score}} dict per backend, and appends it plus run metadata (model, adapters, time) to eval_result.jsonl via append_to_jsonl — this is close to an EvalPort ResultSet with per-dataset GraderResults, and run-level metadata already separated out in EvalArguments (swift/arguments/eval_args.py). A converter from that eval_report dict to EvalPort's ResultSet would let swift eval runs across the three backends be compared in one common format instead of three backend-specific report shapes. Just flagging the fit, not asking you to prioritize it.

Schemas: https://github.com/adhabnr-ux/evalport/tree/main/spec/schemas

— Sahi, independent contributor (not affiliated with ms-swift)

Dominant language
Python
Stars
16.2k
Forks
1.8k
Avg merge
1d 14h
Merged PRs (30d)
68

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelscope/ms-swift

All issues in modelscope/ms-swift

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.