Download harbor/kv-store-R2000-seed49/tests/test.sh from context-language-model/ContextBench: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/datasets/context-language-model/ContextBench/resolve/main/harbor/kv-store-R2000-seed49/tests/test.sh
- Command line
-
hf download hf://datasets/context-language-model/ContextBench/harbor/kv-store-R2000-seed49/tests/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/context-language-model/ContextBench/resolve/main/harbor/kv-store-R2000-seed49/tests/test.sh
595 Bytes
| # Grades the agent's own messages (context snapshots, else trajectory, else final | |
| # report) with the ContextBench graders vendored next to this script. Runs after the | |
| # agent has finished; writes /logs/verifier/reward.json. | |
| set -u | |
| PY=$(command -v python3 || command -v python) || { | |
| echo "ContextBench grading needs python3 in the image; or verify on the host with" "contextbench.harbor.verifiers:ContextBenchVerifier" >&2 | |
| exit 2 | |
| } | |
| PYTHONPATH=/tests/_cb "$PY" -m contextbench.harbor.reward --agent-dir /logs/agent --gold /tests/gold.json --out-dir /logs/verifier | |