New evalharness/fingerprint/ package (from evalstone fp_fusion v1.1, 2026-09-07 pruning final): probe battery -> concurrent collection -> five scoring views (verify/attribution/variant/adversarial/robustness), bundled family aliases + 27 reference fingerprints (12 fp_fusion schema). - CLI: 'evalharness fingerprint run ...' (REMAINDER passthrough, single source of arg definitions) + 'fingerprint list' for bundled references - imports rewritten package-relative; direct 'python3 run_fp_fusion.py' execution kept working via package bootstrap - offline analysis/collection scripts made path-independent (previously pinned to a /opt/evalscope path absent on this host) - shell scripts: hardcoded API key -> FP_API_KEY/OPENAI_API_KEY env vars - --reference accepts short names resolved against bundled references/ - pyproject: +httpx dependency, package-data references/*.json - tests/test_fingerprint.py: 10 offline tests (battery definitions, assembly counts, normalization, signals, verdict ladder, CLI wiring) - README: fingerprint section + architecture entry Verified on H20-1: tests 10/10, installed CLI OK, full-protocol run vs vectron GLM-5.3 reproduces baseline (score 0.9451, s_idn 0.846).
21 lines
1.0 KiB
Bash
21 lines
1.0 KiB
Bash
#!/bin/bash
|
||
# 任务2a:批量 verify + attribution(每个模型一个子进程,后台)
|
||
# 用法: bash run_matrix.sh verify|attribution <model> <ref> <shortname>
|
||
# 需在 evalharness 环境下运行。凭据走环境变量,不再硬编码:
|
||
# export FP_API_KEY=sk-xxxx # 或复用 OPENAI_API_KEY
|
||
MODE="$1"; MODEL="$2"; REF="$3"; NAME="$4"
|
||
cd "$(dirname "$0")"
|
||
KEY="${FP_API_KEY:-${OPENAI_API_KEY:-}}"
|
||
API="${FP_API_URL:-https://api.vectron.meta-stone.com/v1}"
|
||
EB="${FP_EXTRA_BODY:-{\"chat_template_kwargs\":{\"enable_thinking\":false}}}"
|
||
if [ -z "$KEY" ]; then echo "ERROR: 未设置 FP_API_KEY/OPENAI_API_KEY" >&2; exit 1; fi
|
||
|
||
mkdir -p /tmp/bfd/$NAME
|
||
python3 run_fp_fusion.py --api-url "$API" --model "$MODEL" \
|
||
--mode "$MODE" --d-samples 25 --baseline-samples 5 --timeout 90 \
|
||
--d-concurrency 1 --text-concurrency 1 \
|
||
--api-key "$KEY" --extra-body "$EB" --reference "$REF" \
|
||
--report-path /tmp/bfd/$NAME/${MODE}.json \
|
||
> /tmp/bfd/$NAME/${MODE}.log 2>&1
|
||
echo "DONE $NAME $MODE exit=$?" >> /tmp/bfd/$NAME/${MODE}.log
|