proxy_recovery_evaluator
Evaluate soft-mode REINFORCE proxy recoveries for target consistency, numeric metrics, and mechanism-faithful evidence.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- proxy_recovery_evaluator
- description
- Evaluate soft-mode REINFORCE proxy recoveries for target consistency, numeric metrics, and mechanism-faithful evidence.
02 资源文件 2
- 脚本scripts/evaluate_proxy.py3.6 KB
- 脚本tests/test_evaluate_proxy.py2.5 KB
03 SKILL.md 正文
Proxy Recovery Evaluator
Use this skill after a reduced REINFORCE recovery has produced a training trace and recovery result. It checks whether the proxy is acceptable evidence for the paper mechanism under soft mode. Do not use it to bless a recovery that lacks executable command logs or bypasses stochastic score-function training.
Inputs
- Module-plan fast recovery target.
- Recovery result with
metrics,paper_target,is_proxy, andmechanism_checks. - Training trace with
params_before,params_after, and reward metrics. - Generated skill invocation records.
Outputs
accepted: boolean proxy decision.errors: mechanism or metadata failures.metric_gap: recovered metric minus declared target value.mechanism_summary: compact copy of required mechanism booleans.
Workflow
- Require proxy mode for the seeded bandit reduced recovery.
- Confirm recovery target metadata matches the module plan.
- Confirm the declared metric is numeric and reaches the proxy threshold.
- Confirm stochastic sampling, score-function update computation, baseline use, reduced training, and optimizer parameter change.
- Confirm generated skills were called or cross-checked.
- Return concrete errors for missing mechanism evidence.
Validation
Run:
python scripts/evaluate_proxy.py --module-plan module_plan.json --recovery-result recovery_result.json --training-trace training_trace.json --invocations generated_skill_invocations.json
python -m pytest tests
Tests cover both an accepted mechanism-faithful proxy and a rejected high-metric result with no optimizer evidence.
Limitations
The evaluator checks artifact consistency and mechanism evidence; it does not replace the Distiller recovery experiment gate or final attempt validator.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).