Download tasks/candidate-0674-ml-evaluation/instruction.md from FineEnvs/MiMo-V2.6-RL-harbor-terminal: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal/resolve/5708f7d17ec6ffe77bc9ab4585072b4ac0acfb13/tasks/candidate-0674-ml-evaluation/instruction.md
- Command line
-
hf download hf://datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal@5708f7d17ec6ffe77bc9ab4585072b4ac0acfb13/tasks/candidate-0674-ml-evaluation/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal/resolve/5708f7d17ec6ffe77bc9ab4585072b4ac0acfb13/tasks/candidate-0674-ml-evaluation/instruction.md
You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Task
Repair the frozen TorchMetrics retrieval source tree under /app/vendor/torchmetrics so all four public evaluation paths enforce one consistent top_k contract:
retrieval_average_precisionretrieval_reciprocal_rankRetrievalMAPRetrievalMRR
Required behavior
top_k=Noneevaluates the complete ranking for each query.- A positive integer evaluates only the highest-scored
kdocuments within each query. - Zero, negative integers, non-integral numbers, and other non-integer values must raise
ValueErrorat the public API boundary. - Ranking remains descending by prediction score, preserving each score's relevance label.
- Stateful metrics must group by query index before truncation and preserve
empty_target_actionplusmean,median,min, andmaxaggregation behavior. - Functional and stateful APIs must agree on valid inputs.
Modify the existing production modules rather than adding a replacement evaluator. The intended repair spans the two functional retrieval modules and the two stateful retrieval modules. Do not delete or rewrite the supplied source tree, public cases, or workflow helper.
After repairing the modules, run:
python3 /app/tools/run_retrieval_workflow.py
The command must finish successfully and write /app/evaluation_report.json with schema version retrieval_topk_eval.v1. Runtime networking and package installation are not allowed.