Skip to content

refactor(rwkv): restore analogy-principle compliance for scoring and task prompt - #1382

Closed
Cai-z-us wants to merge 41 commits into
huggingface:mainfrom
rwkv-rs:refactor/rwkv-scoring-principle-compliance
Closed

refactor(rwkv): restore analogy-principle compliance for scoring and task prompt#1382
Cai-z-us wants to merge 41 commits into
huggingface:mainfrom
rwkv-rs:refactor/rwkv-scoring-principle-compliance

Conversation

@Cai-z-us

@Cai-z-us Cai-z-us commented Sep 8, 2026

Copy link
Copy Markdown

Summary

  • Revert RWKV-introduced math_verify scoring, field:xxx task tags, and the task_prompt override feature back to upstream LightEval equivalents in generic (non-RWKV) task files and pipeline code — none of these had an upstream/authoritative prototype and they touched shared, non-RWKV code paths (对照性原则 / 无关性原则).
  • Relocate the RWKV math/short-answer judge (mirroring Albatross's eval_math500.py verify_one) into a new rwkv_free_response.py, gated by task name, alongside the renamed rwkv_single_choice.py (formerly rwkv_answer_extractor.py, mirroring Albatross's eval_gpqa_diamond.py).
  • Delete the dead task_prompt feature (rwkv_prompt.py + its dedicated tests), which was unused outside its own test suite, and a self-referential field:xxx tagging test with no production consumer.
  • Deduplicate the truncation-summary aggregation shared between Pipeline.evaluate() and RWKVPipeline.evaluate() into Pipeline._finalize_metrics().

Test plan

  • uv run pytest tests/unit/rwkv/ — 163 passed
  • uv run pytest tests/unit/ — 583 passed, 2 skipped
  • uv run ruff check / ruff format --check on all touched files

Cai-z-us and others added 30 commits August 24, 2026 00:14
Signed-off-by: Caizus <18930215187@163.com>
Serialize identical Hugging Face dataset cache writes across concurrent RWKV evaluation processes while preserving parallel loading for distinct datasets.
Require exactly one field marker per publishable task, publish singular task.field, strip marker tags, and make field part of canonical publication identity.
Complete native RWKV G1j evaluation and publication pipeline.
Cai-z-us and others added 11 commits September 5, 2026 08:55
Remove framework-specific Scoreboard publication from the evaluator and retain native producer facts with standard LightEval outputs.
refactor(rwkv): align evaluation changes with upstream contracts
fix(rwkv): preserve verified rollout answer details
…task prompt

Revert the RWKV-introduced math_verify scoring, field:xxx task tags, and
task_prompt override feature back to their upstream LightEval equivalents
across generic (non-RWKV) task definitions and pipeline code, since they
had no upstream/authoritative prototype and touched shared, non-RWKV code
paths. Relocate the RWKV-specific math judge (mirroring Albatross's
eval_math500.py verify_one) into rwkv_free_response.py, gated by task name,
alongside the renamed rwkv_single_choice.py (formerly rwkv_answer_extractor.py,
mirroring Albatross's eval_gpqa_diamond.py). Delete the dead task_prompt
feature (rwkv_prompt.py and its tests) which was unused outside its own
tests, and the self-referential field:xxx tagging test that had no
production consumer. Deduplicate the truncation-summary aggregation shared
between Pipeline.evaluate() and RWKVPipeline.evaluate() into
Pipeline._finalize_metrics().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Cai-z-us

Cai-z-us commented Sep 8, 2026

Copy link
Copy Markdown
Author

Opened against the wrong repository by mistake (gh CLI defaulted to the fork parent). Closing — the actual PR targets our fork at rwkv-rs/lighteval-rwkv. Apologies for the noise.

@Cai-z-us Cai-z-us closed this Sep 8, 2026
@Cai-z-us
Cai-z-us deleted the refactor/rwkv-scoring-principle-compliance branch September 8, 2026 15:30
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.

1 participant